I need to be able de get the result code when executing a java program using maven. I tryed using the "java" ant task, but as maven is usint version 1.5.3 the resultproperty and errorproperty are not available (only available in ant 1.6).
Does anyone has a solution ? Thank's Here is what I try to do : <project xmlns:j="jelly:core" xmlns:ant="jelly:ant"> <goal name="runabc"> <ant:java classname="a.b.c" fork="true" failonerror="true" output="c:/log.txt"> <ant:arg value="abc"/> <ant:classpath refid="my.classpath"/> </ant:java> <!-- how to get the resultproperty (as ant 1.6 is doesn't work with maven) ? --> <j:if test="${resultproperty!='0'}"> <attainGoal name="mail"/> </j:if> <!-- if java task fail ie resultproperty!=0 send a mail --> </goal> </project> Nicolas FRANK --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]