ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sbaill...@apache.org
Subject cvs commit: jakarta-ant/proposal/sandbox/junit/src/main/org/apache/tools/ant/taskdefs/optional/junit ClientElement.java
Date Sun, 27 Jan 2002 18:27:47 GMT
sbailliez    02/01/27 10:27:47

  Modified:    proposal/sandbox/junit/src/main/org/apache/tools/ant/taskdefs/optional/junit
                        ClientElement.java
  Log:
  Throw exception for invalid return code
  
  Revision  Changes    Path
  1.4       +4 -1      jakarta-ant/proposal/sandbox/junit/src/main/org/apache/tools/ant/taskdefs/optional/junit/ClientElement.java
  
  Index: ClientElement.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/sandbox/junit/src/main/org/apache/tools/ant/taskdefs/optional/junit/ClientElement.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ClientElement.java	27 Jan 2002 14:06:39 -0000	1.3
  +++ ClientElement.java	27 Jan 2002 18:27:47 -0000	1.4
  @@ -137,9 +137,12 @@
           execute.setAntRun(project);
   
           log(RES.getString("task.process-cmdline.log", cmd.toString()), Project.MSG_VERBOSE);
  -        int retVal;
  +        int retVal = 0;
           try {
               retVal = execute.execute();
  +            if (retVal != 0){
  +                throw new BuildException("task.process-failed.error");
  +            }
           } catch (IOException e) {
               String msg = RES.getString("task.process-failed.error");
               throw new BuildException(msg, e);
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message