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 executable="${mvn.exe}" failonerror="true">
<arg line="install"/>
</exec>
</target>
</project>
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 <goal>.
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.bat, probably
need full path etc.
So this is not a solution for me :(
Regards,
Irrisor
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]