0

If I put my 3rd party jars in libs/ then I can build my project using ant. However, I can't figure out how to change that location to something else. For example, if I put my jars in libs/main I can't get my build to find them. I've tried the following properties with no luck:

  • jar.libs.dir=libs/main
  • external.libs.dir=libs/main

I tried putting those in both the xml and in the ant.properties files with no luck. What property can I set to override the libs directory?

lowellk
  • 2,049
  • 4
  • 21
  • 26

1 Answers1

0

If you asked because of Ant addon task not working :
Use ANT_ARGS for that purpose, i.e. use in it a batchfile/shellscript to run your ant script,
see that answer for more details.
Otherwise if compilation of sources fails use <javac> with nested <classpath> :

<javac ...>
  <classpath>
    <pathelement location="lib/"/>
    <pathelement path=".../"/>
  </classpath>
</javac>

examples here => http://ant.apache.org/manual/using.html
and here => https://stackoverflow.com/a/722787/130683

Community
  • 1
  • 1
Rebse
  • 10,307
  • 2
  • 38
  • 66
  • Where am I to put this javac declaration? I was hoping to just override a path, not copy and modify the existing compile task. – lowellk Jul 31 '12 at 21:43