Progress® OpenEdge® Compilation Tools

RCodeSelector

Description

RCodeSelector is a selector in which files can be selected based on CRC or MD5 comparison in source and target directories. Files are removed of the fileset if and only if their CRC or MD5 are identical.

Parameters

Attribute Description Type Requirement Default value
dir The base directory to look for the files to compare against. The precise location depends on a combination of this attribute and the <mapper> element, if any. File One of dir or lib is required No default value
lib The procedure library to look for the files to compare against. File No default value
mode Use MD5 or CRC to compare r-code String Optional CRC

Parameters as nested elements

None

Examples

<!-- Selector has to be declared in build.xml -->
<target name="copy">
  <copy todir="destDir" includeEmptyDirs="false">
    <fileset dir="sourceDir1" includes="**/*.r">
      <RCodeSelector dir="sourceDir2" mode="md5" />
    </fileset>
  </copy>
</target>
Will copy *.r files from sourceDir1 to destDir, excluding any r-code whose MD5 is identical in sourceDir1 and sourceDir2