I've tried the fork="yes" option, and it still used the CLASSPATH in the environment PLUS the one defined in the javac command.
I haven't verified that my problem occurs with the java task as shown below... only the javac task. Thanks, Rod Freier ACS Web Team [EMAIL PROTECTED] 801-581-4981 -----Original Message----- From: Martin [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 05, 2002 5:09 PM To: Ant Users List Subject: Re: javac classpath issues 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
