You could use the textfile if you write the dependencies as include-patterns.
dependencies.txt ---------------- lib/foo.jar lib/bar.jar lib/spring/*.jar <fileset dir="." includesfile="dependencies.txt"/> Or use Ivy, which additionally loads the artefacts from a repository. Jan >-----Ursprüngliche Nachricht----- >Von: Sam [mailto:n...@esamir.com] >Gesendet: Mittwoch, 5. August 2009 22:12 >An: Ant Users List >Betreff: Process File? > >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 > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org