ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <ste...@apache.org>
Subject Re: calling maven2 files from ant
Date Fri, 09 Jun 2006 08:57:44 GMT
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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message