IDEMPIERE-1618 building server and client product gives error Java returned: 13

This commit is contained in:
Thomas Bayen 2015-08-11 08:31:32 -05:00
parent 13af00a840
commit d533d83b24
1 changed files with 12 additions and 1 deletions

View File

@ -20,7 +20,7 @@
<echo message="${equinox.launcher.jar}"/> <echo message="${equinox.launcher.jar}"/>
<echo message="${repository}"/> <echo message="${repository}"/>
<echo message="${destination}"/> <echo message="${destination}"/>
<java jar="${equinox.launcher.jar}" fork="true" failonerror="true" > <java outputproperty="javaoutput" resultproperty="javaresult" jar="${equinox.launcher.jar}" fork="true" failonerror="false" >
<arg value="-application"/> <arg value="-application"/>
<arg value="org.eclipse.equinox.p2.director"/> <arg value="org.eclipse.equinox.p2.director"/>
<arg value="-repository"/> <arg value="-repository"/>
@ -43,5 +43,16 @@
<arg value="-roaming"/> <arg value="-roaming"/>
<!-- jvmarg value="-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=y"/ --> <!-- jvmarg value="-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=y"/ -->
</java> </java>
<!-- IDEMPIERE-1618: This block gives an error message on console. Else errors here are hard
to identify for unexperienced users because the java runs in a fork and gives no output to
stdout. Messages are still in the latest logfile in ECLIPSE_HOME/configuration
(or buckminster) - thanks to CarlosRuiz for this hint.
-->
<echo message="${javaresult}" />
<fail message="result: ${javaresult}\n${javaoutput}">
<condition>
<not><equals arg1="${javaresult}" arg2="0"/></not>
</condition>
</fail>
</target> </target>
</project> </project>