java - How to use Ant to download/unpack jars from a single list of jars? -
how can use ant download , unpack java jars while specifying list of jars once? key here having 1 list of jars , generating:
- a list of urls download task
- a classpath/fileset of same jars locally
i'd specify list of jars once.
<property name="dependency.lib.dir" location="dependencies" /> <mkdir dir="${dependency.lib.dir}" /> <get dest="${dependency.lib.dir}"> <url url="http://server1/lib1.jar"/> <url url="http://server2/lib2.jar"/> </get> <fileset id="dependency.libs" dir="${dependency.lib.dir}"> <include name="*.jar" /> </fileset> <path id="project.debug.classpath"> <fileset refid="dependency.libs" /> </path>
you can add additional sub-elements <path>
if have local lib directory.
Comments
Post a Comment