ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: pulling .jars from a path?
Date Wed, 15 Jan 2003 08:42:41 GMT
On Tue, 14 Jan 2003, <tek1@pobox.com> wrote:

> is it possible to pull all the .jars listed in a path as a fileset
> (for inclusion in the "lib" nested element of the "war" task)?

<fileset>s in Ant (currently) have to be rooted in a common base
directory.  This is generally not true for an arbitrary collection of
files, at least on OSes with multiple file system roots (read
drives).

If you are on a system with a single file system root - assuming "/"
for the rest here - you could (1) <pathconvert> your path to a comma
separated list and (2) use that as the includes attribute in a
<fileset> with dir="/".

Stefan

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message