Hi, Hopefully this is an easy question: I'd llike to be able to detect when a maven build fails when called from a script. It's actually an ant script using the exec task as follows:
Unix version <exec dir="${pom.dir}" executable="sh" failonerror="true"> <arg line="mvn -f ${pom.name} ${abfo.command}" /> </exec> Windows version <exec dir="${pom.dir}" executable="cmd.exe" failonerror= "true"> <arg line="/c mvn -f ${pom.name} ${abfo.command}" /> </exec> The failonerror is pointless because mvn didn't break - so any ideas on how I detect the build failure? Cheers - Ashley --- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. Please refer to http://www.db.com/en/content/eu_disclosures.htm for additional EU corporate and regulatory disclosures.