ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Cohen" <>
Subject RE: <property refid=> question
Date Thu, 27 Feb 2003 15:23:08 GMT
It looks like that is what he is trying to avoid - having to repeatedly
re-specify the contents of his path.  Sounds like what is needed is a
task that does the opposite of <pathconvert> i.e. convert a path to a

Of course, that puts me in mind of a workaround:
First define his path as a fileset.  That you can provide a refid for,
usable by copy.  Then convert that to a path using <pathconvert>.  Now
you have two entities, one a fileset, the other a path, pointing at the
same set of files.

The only trouble with this would be if ordering was important in the

-----Original Message-----
From: Dominique Devienne [] 
Sent: Thursday, February 27, 2003 9:10 AM
To: 'Ant Users List'
Subject: RE: <property refid=> question

How about:

       <copy todir="${jar.dir}/lib">
         <fileset file="${jaxb.home}/jaxb-libs.jar" />
         <fileset file="${log4j.home}/log4j-1.2.5.jar" />


       <copy file="${jaxb.home}/jaxb-libs.jar"
             tofile="${jar.dir}/lib/jaxb-libs.jar" />
       <copy file="${log4j.home}/log4j-1.2.5.jar"
             tofile="${jar.dir}/lib/log4j-1.2.5.jar" />

-----Original Message-----
From: webhiker [] 
Sent: Thursday, February 27, 2003 5:55 AM
To: Ant Users List
Subject: Re: <property refid=> question

I'm having a somewhat related problem trying to copy all the files in a 
<path>, to a specified directory.
But there is no way I can see to get a <copy> task to accept a refid.
Anyone have any idea how to do this?

Something along the lines of :

       <path id="gui.external.classpath">
         <pathelement location="${jaxb.home}/jaxb-libs.jar" />
         <pathelement location="${log4j.home}/log4j-1.2.5.jar" />

       <copy todir="${jar.dir}/lib">
          <path refid="gui.external.classpath"/>


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message