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. But

Re: calling Maven goal from ant

2007-01-11 Thread Dan Tran
this works for me On 1/11/07, Irrisor <[EMAIL PROTECTED]> wrote: 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 . this won't work as

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 . this won't work as on the target machine maven is probably not installed and even if it is installed might need invocation via mvn

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 failonerror="${maven.failonerror}" dir="${basedir}"> Morgovsky, Alexander (US - Glen Mills) wrote: In the A

calling Maven goal from ant

2007-01-11 Thread Morgovsky, Alexander \(US - Glen Mills\)
In the Ant file, create an exec task and spawn a shell and execute something like mvn . This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete

calling Maven goal from ant

2007-01-10 Thread Irrisor
Hi Maven Users and Developers, can I call a Maven 2.0 goal from an ant file? I know Antlib for Maven 2.0 but it does not seem to have an 'execute goal' target... otherwise using that single maven jar would be really nice. TIA, Regards, Irrisor -