EJ Ciramella wrote:
I'm trying with the <java> task, but I keep getting this:Execute:Java13CommandLauncher: Executing 'C:\Program Files\Java\jdk1.5.0_05\jre\bin\java.exe' with arguments: '-classpath' 'E:\buildtools\maven-2.0.3\core\boot\classworlds-1.1.jar;E:\buildtools\maven-2.0.3\bin\m2.conf' 'org.codehaus.classworlds.Launcher' '-Dclassworlds.conf=E:/buildtools/maven-2.0.3/bin/m2.conf' '-Dmaven.home=E:/buildtools/maven-2.0.3' 'compile' The ' characters around the executable and arguments are not part of the command. [java] java.lang.Exception: classworlds configuration not specified nor found in the classpath [java] at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:423) [java] at org.codehaus.classworlds.Launcher.main(Launcher.java:375) BUILD SUCCESSFUL Total time: 0 seconds
The information is there. you arent passing down the configuration as far as they can tell
-D defines have to come before the program classname if they are to be picked up by the JVM. Use the <sysproperty> element.
also, set failonerror=true for halting ant if java fails. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
