On 3/2/07, Andrew Close <[EMAIL PROTECTED]> wrote:
we currently have a file included with our projects called 'jar.list'.
this file contains a list of JAR files that the project depends upon.
i.e.
apache-ant-1.7.0.jar
productA.jar
productB.jar
etc.jar
i'd like to be able to convert the contents of this file into a
path-like structure:
<path id="my.dependencies">
<pathelement location="lib/apache-ant-1.7.0.jar"/>
<pathelement location="lib/productA.jar"/>
<pathelement location="lib/productB.jar"/>
<pathelement location="lib/etc.jar"/>
</path>
i've looked at FileSet/FileList and LoadFile/LoadProperties, but they
don't appear to be quite what i'm looking for. is there another task
that does this? or am i just not seeing/understanding how to do it
with the core tasks?
<path> <fileset dir="lib" includesfile="jar.list" /> </path> should work.
It does assume all the jars in jar.list are under lib/, with relative
paths. --DD
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]