axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran" <stev...@iseran.com>
Subject Re: cvs commit: xml-axis/java/tools/org/apache/axis/tools/ant/foreach ForeachTask.java
Date Wed, 11 Sep 2002 20:12:59 GMT

----- Original Message -----
From: <dims@apache.org>
To: <xml-axis-cvs@apache.org>
Sent: Wednesday, September 11, 2002 11:42 AM
Subject: cvs commit: xml-axis/java/tools/org/apache/axis/tools/ant/foreach
ForeachTask.java


> dims        2002/09/11 11:42:21
>
>   Modified:    java/tools/org/apache/axis/tools/ant/foreach
>                         ForeachTask.java
>   Log:
>   Bail out if the execute fails...
>
>   Revision  Changes    Path
>   1.6       +3 -1
xml-axis/java/tools/org/apache/axis/tools/ant/foreach/ForeachTask.java
>
>   Index: ForeachTask.java
>   ===================================================================
>   RCS file:
/home/cvs/xml-axis/java/tools/org/apache/axis/tools/ant/foreach/ForeachTask.
java,v
>   retrieving revision 1.5
>   retrieving revision 1.6
>   diff -u -r1.5 -r1.6
>   --- ForeachTask.java 11 Sep 2002 17:29:28 -0000 1.5
>   +++ ForeachTask.java 11 Sep 2002 18:42:21 -0000 1.6
>   @@ -185,7 +185,9 @@
>            String args = "-buildfile " + properties.get("file");
>            Commandline.Argument arguments = callee2.createArg();
>            arguments.setLine(args);
>   -        callee2.execute();
>   +        if (callee2.executeJava() != 0) {
>   +            throw new BuildException("Execution of ANT Task failed");
>   +        }
>        }

or set failonerror=true and let the task do the work


Mime
View raw message