You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by tek1 <te...@pobox.com> on 2003/01/14 20:08:34 UTC
pulling .jars from a path?
hello.
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)?
the reason why is because i'm using a build.properties to make references
to .jars on the filesystem as follows:
build.properties
------------
velocity.lib=${velocity.home}/velocity-dep-1.3.1-rc2.jar
commons-lang.lib=${commons-lang.home}/commons-lang-1.0.1.jar
build.classpath=${velocity.lib}:${commons-lang.lib}
the .jars listed above (in ${build.classpath}) are needed in the /lib
directory of the webapp, so looking for a way to reference the .jars as a
fileset, instead of listing each xxx.lib entry as a "lib" nested element in
the war task.
thank you.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: pulling .jars from a path?
Posted by tek1 <te...@pobox.com>.
hi stefan.
i will give your suggestion a try. thanks.
At 09:42 03/01/15 +0100, you wrote:
>On Tue, 14 Jan 2003, <te...@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: <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: pulling .jars from a path?
Posted by Stefan Bodewig <bo...@apache.org>.
On Tue, 14 Jan 2003, <te...@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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>