ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Manocchio <>
Subject Copy task and filesets
Date Fri, 03 Aug 2001 15:52:56 GMT

I would like to copy a number of jar files from one directory to another.
The jar files are already specified in a "path" task (since I'm using them
in my CLASSPATH) as follows:

  <path id="project.class.path">
    <pathelement location="${env.TOOLS_HOME}/junit3.6/junit.jar" /> 
    <pathelement location="${env.ORACLE_HOME}/jdbc/lib/" /> 

In order to copy these files, I'd like to use the "copy" task but this
does not support the aforementioned "path" element:

    <copy todir="${install.lib}">

I tried using a nested fileset:

      <fileset dir="${env.TOOLS_HOME}">
          <patternset id="project.class.path" />

but fileset requires a base directory which would force me to repeat
every jar file from my path task.

Any help would be appreciated.



View raw message