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 <n...@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-unsubscr...@ant.apache.org > For additional commands, e-mail: user-h...@ant.apache.org > >