Try this
set CLASSPATH=MyProject\bin
ant.bat -lib "MyProject\lib" -file build.xml
If I remember correctly, the -lib parameter is used to only add jar files to
the classpath. you can't use it to add class files to the classpath
java 6 supports using wildcards in the class path.
so you coul
Hi,
I am trying to launch Ant v1.8.1 on Windows using Java 1.6.0_24.
I have some JARs and class files that I need to reference from my build.xml.
I tried a few combinations of CLASSPATH (please don't throw stones!) and -lib
arguments. None of can do what I want 100%.
In my dreams:
ant.bat -li
Stefan Bodewig wrote on 15/07/2011 04:24:46:
> Is Quentin.jar on the CLASSPATH or loaded via or similar
> measures during the build process? If so Java's classloader probably
> still has a lock on it and Windows won't delete it until Ant exits.
>
I thought I'd been round that, but you're righ