com.partnersoft.v3x.apps.Propagate
Class ResourceFilePropagator
java.lang.Object
com.partnersoft.v3x.apps.Propagate.ResourceFilePropagator
- All Implemented Interfaces:
- FilePropagator
public class ResourceFilePropagator
- extends java.lang.Object
- implements FilePropagator
A FilePropagator for files that are program resources (binary code,
libraries, images, etc.), and therefore should just be recopied when out of
date.
|
Method Summary |
boolean |
outOfDate(java.io.File master,
java.io.File slave)
|
void |
update(java.io.File master,
java.io.File slave)
Updates the slave from the master. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceFilePropagator
public ResourceFilePropagator()
outOfDate
public boolean outOfDate(java.io.File master,
java.io.File slave)
- Specified by:
outOfDate in interface FilePropagator
update
public void update(java.io.File master,
java.io.File slave)
throws java.io.IOException
- Description copied from interface:
FilePropagator
- Updates the slave from the master. In general, assumes that outOfDate()
or equivalent is called first (i.e., only updates if necessary)
- Specified by:
update in interface FilePropagator
- Throws:
java.io.IOException