Rod-
I always set my own classpath e.g.
<java classname="test.Main" >
<arg value="-h"/>
<classpath>
<pathelement location="dist/test.jar"/>
<pathelement path="${java.class.path}"/>
</classpath>
</java>
(Run a class in this JVM with test.jar on the classpath)
since I dont know if I can depend on the classpath environment ..
Regards
Martin Gainty
______________________________________________
801-560-0191
_____________GMT-7__________________
----- Original Message -----
From: "Freier, Rod" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 04, 2003 9:56 PM
Subject: javac classpath issues
The documentation seemed a little fuzzy on this:
When I use the classpath parameter of the javac task, the actual
classpath used is the one specified in the environment's CLASSPATH
variable PLUS whatever is specified in this parameter.
Is that the correct behavior?
It turns out I need to ignore the CLASSPATH environment variable in the
shell in which ant was run and give it a completely different classpath.
I can do this by simply setting the CLASSPATH environment variable to
blank right before I run ant, but that's inconvenient.
Is there a way to get it to ignore the environment CLASSPATH entirely?
Thanks,
Rod Freier
ACS Web Team
[EMAIL PROTECTED]
801-581-4981
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]