CRCDifferent is a selector in which files can be selected based on CRC comparison in source and target directories. Files are removed of the fileset if and only if their CRC is identical.
| Attribute | Description | Type | Requirement | Default value |
|---|---|---|---|---|
| targetdir | The base directory to look for the files to compare against. The precise location depends on a combination of this attribute and the |
File | Required | No default value |
None
<!-- Selector has to be declared in build.xml -->
<typedef name="CRCDifferent" classname="com.phenix.pct.CRCDifferent" />
<target name="copy">
<copy todir="DestDir">
<fileset dir="build">
<custom classname="com.phenix.pct.CRCDifferent">
<param name="targetdir" value="DestDir" />
</custom>
</fileset>
</copy>
</target>
Will only copy files whose CRC has changed.