Here is what I am doing:
<preGoal name="native:compile">
<!-- This is win32 only artifact -->
<j:if test="${osname == 'win32'}">
<!-- Run resource compiler -->
<ant:mkdir dir="target/native"/>
<ant:exec executable="rc" outputproperty="output">
<arg line="/fo target/native/${pom.artifactId}.res native/${pom.artifactId}.rc"/>
</ant:exec>
<ant:fail if="${output != ''}"/> <-- Note: 2 single quotes != '' because rc returns nothing on success.
Brett Porter wrote:
<ant:fail /> ?
On Mon, 17 Jan 2005 15:42:58 -0800, baleineca <[EMAIL PROTECTED]> wrote:
Hi,
I would like to instruct maven to stop building if an ant:exec task fails inside a preGoal (<preGoal name="native:compile">).
Any suggestion?
Thanks!
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
