The following snippet will "stage" the
set of jar files in the dist directory to a release
directory; note the use of "<srcfile/>"
and "<targetfile/>" elements that can
be used to construct a command line for <ccapply>,
as well as the "<globmapper>" which
turns the source jar into the full path of its destination:
<property name="dir.dist" value="dist"/>
<property name="dir.rel" value="X:\ReleaseVOB"/>
<ca:ccapply relative="true" force="true">
<arg value="checkin"/>
<arg line="-nc -rm -from"/>
<srcfile/>
<targetfile/>
<fileset dir="${dir.dist}" casesensitive="yes">
<include name="**/*.jar"/>
</fileset>
<globmapper from="*" to="${dir.rel}*"/>
</ca:ccapply> |