Hi,

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/classes12.zip" /> 
        
        ...
      
  </path>


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}">
        ????
    </copy>

I tried using a nested fileset:

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

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

Any help would be appreciated.

Thanks,

Dan.

Reply via email to