ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "EJ Ciramella" <>
Subject RE: calling maven2 files from ant
Date Thu, 08 Jun 2006 15:30:47 GMT
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:

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
     [java] 	at org.codehaus.classworlds.Launcher.mainWithExitCode(
     [java] 	at org.codehaus.classworlds.Launcher.main(

Total time: 0 seconds

Here is my task:

   <java classname="org.codehaus.classworlds.Launcher" fork="true">
     <arg line="-Dclassworlds.conf=${maven.home}/bin/m2.conf -Dmaven.home=${maven.home}
     <classpath refid="maven.classpath"/>

These are the same params that exist in the mvn.bat file.  What am I missing?

-----Original Message-----
From: [] 
Sent: Tuesday, June 06, 2006 1:08 AM
Subject: AW: calling maven2 files from ant

<exec> / <java> ?


>-----Urspr√ľngliche Nachricht-----
>Von: EJ Ciramella [] 
>Gesendet: Montag, 5. Juni 2006 23:39
>An: Ant Users List
>Betreff: calling maven2 files from ant
>Without some really hacky scripty goodness, is there a clever 
>way to call maven2 with an ant script?
>I'm working on getting a maven 2 based project up and running 
>under cruisecontrol and I've taken advantage of lots of little 
>ant benefits.
>Some things simply don't work using maven 2 directly, but 
>having ant call into maven would make things much easier.

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message