ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Avlesh Singh <avl...@gmail.com>
Subject Re: Process File?
Date Thu, 06 Aug 2009 02:05:26 GMT
Well, no text file be read and processed in this manner. However, you can
always create a JAVA property file, and have key value pairs which you can
use inside ANT targets.

<property file="dependency.properties" />
<jar>
     <zipfileset src="${libpath}/${jar_1}" />
     <zipfileset src="${libpath}/${jar_2}" />
</jar>

and, your dependency properties might look like this -
jar_1 = my-dependency-jar-1.jar
jar_2 = my-dependency-jar-2.jar
jar_3 = my-dependency-jar-3.jar
...

Cheers
Avlesh

On Thu, Aug 6, 2009 at 1:41 AM, Sam <ntkn@esamir.com> wrote:

> I was wondering if this was feasible in ant.
>
> I was thinking of having the list of dependencies listed somewhere say in:
>  ant/dependencylist.txt for example.
>
> I'd like to have ant read the text file and build a fileset then for each
> entry in the depenendancy.txt I'd pass a line to my jar target.
>
> ie.
> <jar>
>    .... usual parameters
>   <zipfileset src="${libpath}/jarfilereferencedinDependency.txt" />
>   <zipfileset src="${libpath}/jarfilereferencedinDependency.txt" />
> </jar>
>
> --
> Sam
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message