On 15 maj 2006, at 15.59, <[EMAIL PROTECTED]>
<[EMAIL PROTECTED]> wrote:
Inside the buildfile you could use <path>s, e.g.
<path id="classpath">
<fileset dir="lib" excludes="dont-use-this.jar"/> </path> <java
.... classpathref="classpath"/>
I have tested this. It does not work. I tested by
creating a dummy class, and installing it's jar in the
standard ant library directory. Even when I explicitly tell
ant to ignore this jar in the way you suggested, using the
javac task in another project finds the class.
Why do you put libs in ANT_HOME/lib ?
All classes there are added to Ants classpath by Ants launcher class.
And
only tasks and external libraries for tasks make little sence here.
Jan
Because the ant library folder is the obvious place to put custom
ant tasks. Then, when
building the next version, I will have trouble because javac might
find a previous version
of any implementation classes used, so I explicitly have to remove
the installed previous jar
version from the class path. For some tasks there are options to work
around this,
but for running a recursive ant for testing, I've found no obvious
way to work around this
except writing a custom launch script.
For testing, I intend to use a perl script to generate a testing
directory, with an ant build file,
and then invoke ant on that file.
-------------------------------------
This sig is dedicated to the advancement of Nuclear Power
Tommy Nordgren
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]