I'm trying to copy a list of files from one directory to another. I do
NOT want to use a filter, I want to explicity state in a list the files
to copy. The list should take the form of a comma delimited string. I'd
like to do something like what's shown below ( though, its obviously
not legal ):
<property name="file.list" value = "myjar.jar, myjar2.jar,
myjar9.jar"/>
<copy todir= "${jar.deploy.dest}">
<filelist dir="${central.jar.repository}" files="${file.list}"/>
</copy>
many thanks in advance.
JavaEnquirer - 20 Dec 2005 18:27 GMT
Answered my own question. Something like this if I remember right:
<property name="file.list" value = "myjar.jar, myjar2.jar,
myjar9.jar"/>
<copy todir="${jar.deploy.dest}">
<fileset dir="${central.jar.repository}" includes="${file.list}"/>
</copy>
Tajonis - 20 Dec 2005 18:59 GMT
try this so that way a property is not needed
<copy todir="${to.dir}">
<fileset dir="${from.dir}">
<include name="*.jar,*.zip">
</fileset>
</copy>