com.partnersoft.v3x.apps.Propagate
Class ResourceFilePropagator

java.lang.Object
  extended by 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.


Constructor Summary
ResourceFilePropagator()
           
 
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
 

Constructor Detail

ResourceFilePropagator

public ResourceFilePropagator()
Method Detail

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