ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant Main.java
Date Fri, 18 Jun 2004 13:42:04 GMT
mbenson     2004/06/18 06:42:04

  Modified:    src/main/org/apache/tools/ant/taskdefs Execute.java
               src/main/org/apache/tools/ant Main.java
  Log:
  Exit status fixes.
  
  Revision  Changes    Path
  1.82      +2 -2      ant/src/main/org/apache/tools/ant/taskdefs/Execute.java
  
  Index: Execute.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/Execute.java,v
  retrieving revision 1.81
  retrieving revision 1.82
  diff -u -r1.81 -r1.82
  --- Execute.java	27 Apr 2004 18:14:54 -0000	1.81
  +++ Execute.java	18 Jun 2004 13:42:03 -0000	1.82
  @@ -575,7 +575,7 @@
        */
       public static boolean isFailure(int exitValue) {
           if (Os.isFamily("openvms")) {
  -            // odd exit value signals failure
  +            // even exit value signals failure
               return (exitValue % 2) == 0;
           } else {
               // non zero exit value signals failure
  
  
  
  1.108     +1 -1      ant/src/main/org/apache/tools/ant/Main.java
  
  Index: Main.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/Main.java,v
  retrieving revision 1.107
  retrieving revision 1.108
  diff -u -r1.107 -r1.108
  --- Main.java	17 Jun 2004 20:33:13 -0000	1.107
  +++ Main.java	18 Jun 2004 13:42:04 -0000	1.108
  @@ -189,7 +189,7 @@
                   exitCode = 0;
               } catch (ExitStatusException ese) {
                   exitCode = ese.getStatus();
  -                if (exitCode > 0) {
  +                if (exitCode != 0) {
                       throw ese;
                   }
               }
  
  
  

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


Mime
View raw message