RE: calling Maven goal from ant

2007-01-18 Thread Morgovsky, Alexander \(US - Glen Mills\)
Maybe you can use the MavenEmbedder? -Original Message- From: Irrisor [mailto:[EMAIL PROTECTED] Sent: Thursday, January 11, 2007 9:33 AM To: Morgovsky, Alexander (US - Glen Mills) Cc: users@maven.apache.org Subject: Re: calling Maven goal from ant Thanks for your answer

Re: calling Maven goal from ant

2007-01-11 Thread Siegfried Goeschl
Hi folks, under Windows you loose the result code from the Maven invocation - therefore I use the following snippet to invoken maven target name=-mvn:invoke property name=maven.home value=${env.CM_HOME}/tools/maven2 / property name=maven.failonerror value=true / java

Re: calling Maven goal from ant

2007-01-11 Thread Irrisor
Thanks for your answer. But... Morgovsky, Alexander (US - Glen Mills) wrote: In the Ant file, create an exec task and spawn a shell and execute something like mvn goal. this won't work as on the target machine maven is probably not installed and even if it is installed might need invocation

Re: calling Maven goal from ant

2007-01-11 Thread Dan Tran
this works for me project name=sample default=maven !-- we want to exec mvn on Unix systems, and mvn.bat on windows -- condition property=maven.extension value=.bat else= os family=windows/ /condition property name=mvn.exe value=mvn${maven.extension}/ target name=maven exec