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 classname="org.codehaus.classworlds.Launcher" fork="yes" failonerror="${maven.failonerror}" dir="${basedir}">
    <jvmarg value="-Xmx384m"/>
    <classpath>
      <pathelement location="${maven.home}/core/boot/classworlds-1.1.jar"/>
    </classpath>
    <sysproperty key="classworlds.conf" value="${maven.home}/bin/m2.conf"/>
    <sysproperty key="maven.home" value="${maven.home}"/>
    <arg line="${maven.target}"/>
  </java>
</target>


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 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 this message.

Any disclosure, copying, or distribution of this message, or the taking of any 
action based on it, is strictly prohibited. [v.E.1]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to