You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Matthew Inger <ma...@sedonacorp.com> on 2001/08/03 18:44:50 UTC
Re: Copy task and filesets
Dan Manocchio wrote:
>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.
>
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 (matt.inger@sedonacorp.com)
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