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:

  1. a list of urls download task
  2. 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

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -