Hello David!
dghga> I am attempting to compile Fortress, however I am getting the following
dghga> problem:
dghga> cannot resolve symbol
dghga> [javac] symbol : class TestCase
The main hint in this mail: run
ant xxx -debug
or better still
ant xxx -debug > log
this is going to give you tons of info,
including the classpath that was actually used
for the failed <javac> run.
dghga> Any thoughts on what I am doing wrong?
dghga> The question is where does everyone
dghga> else have their junit.jar located?
I have mine in $ANT_HOME/lib. I'm on Win2K and run ant
via ant.bat that lives in $ANT_HOME/bin (the latter is
in my system %PATH%). This script ($ANT_HOME/bin/ant.bat)
does a fine job of adding all jars it finds in $ANT_HOME/lib
to the initial classpath. BTW this ant.bat is the best
.bat launcher for java applications I have ever seen.
Good to learn from it, or just copy and paste :-)
As an idea: probably better not to _both_ put junit.jar
into $ANT_HOME/lib and specifying the location with a
property..
Hint: there is no magic in how avalon build.xml scripts
load property files: just look at the top of the script
it has a bunch of <property file="xxx"/> directives.
That's it :-)
The -debug log should also give you a detailed info
on property values.
I personally used to have _tons_ of trouble with ant
builds in the beginning, but somehow now I they have
gone, so I just wish you good luck!
- Anton
P.S. Indeed it is quite puzzling why checkJUnit passed
(as you see it uses the "cp" property which in effect
equals to "test.class.path") but the compilation failed.
I hope however that the relined advices will help you
to get afloat. Maybe you currently have two junit.jar
in the classpath and one of them is broken?
(Yes indeed, how unlikely it seems I have once run
into this problem, I plainly had a corrupted .jar,
I got it by extracting from an archieve via not
a very standard tool and looks like that got it
corrupted -- was "fun" to track the problem too :-)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]