stevel      01/12/07 23:32:34

  Modified:    src/main/org/apache/tools/ant/taskdefs ExecTask.java
  Log:
  Removing a redundant check.
  
  Revision  Changes    Path
  1.24      +2 -3      
jakarta-ant/src/main/org/apache/tools/ant/taskdefs/ExecTask.java
  
  Index: ExecTask.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/ExecTask.java,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- ExecTask.java     2001/12/03 20:24:50     1.23
  +++ ExecTask.java     2001/12/08 07:32:34     1.24
  @@ -194,9 +194,8 @@
        */
       protected void maybeSetResultPropertyValue(int result) {
           String res=Integer.toString(result);
  -        if(resultProperty!=null
  -           && project.getProperty(resultProperty) == null) {
  -                project.setNewProperty(resultProperty,res);
  +        if(resultProperty!=null) {
  +            project.setNewProperty(resultProperty,res);
           }
       }
       
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to