[prev in list] [next in list] [prev in thread] [next in thread]
List: ant-user
Subject: RE: <property refid=> question
From: Dominique Devienne <DDevienne () lgc ! com>
Date: 2003-02-27 15:48:22
[Download RAW message or body]
You can already compose <fileset>s inside a <path>... See the doc. --DD
-----Original Message-----
From: Steve Cohen [mailto:SCohen@sportvision.com]
Sent: Thursday, February 27, 2003 9:23 AM
To: Ant Users List
Subject: RE: <property refid=> question
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
fileset.
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
path.
-----Original Message-----
From: Dominique Devienne [mailto:DDevienne@lgc.com]
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>
or:
<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 [mailto:webhiker@tiscali.fr]
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" />
</path>
<copy todir="${jar.dir}/lib">
<path refid="gui.external.classpath"/>
</copy>
Thanks
WH
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic