ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Manocchio <>
Subject RE: Copy task and filesets
Date Fri, 03 Aug 2001 20:31:22 GMT
I believe a fileset must include a single base directory, whereby I 
want to include many jar files from multiple directories.  A path element
allows me to group many files under a single "id".

-----Original Message-----
From: Matthew Inger []
Sent: Friday, August 03, 2001 12:45 PM
Subject: Re: Copy task and filesets

Dan Manocchio wrote:

>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/" /> 
>	...
>  </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.
you are declaring a <path> element above, why not just declare a
<fileset> instead?  Then reference the fileset.  I don't believe you
can use a <path> as a patternset.

Matt Inger (
Sedona Corporation
455 S. Gulph Road, Suite 300
King of Prussia, PA 19406
(484) 679-2213
"Self-respect - the secure feeling that no one,
 as yet, is suspicious." -H.L. Mencken 

View raw message