ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hol...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional PropertyFile.java
Date Wed, 31 Oct 2001 22:50:21 GMT
holtdl      01/10/31 14:50:21

  Modified:    src/main/org/apache/tools/ant/taskdefs/optional
                        PropertyFile.java
  Log:
  Fix increment/decrement bug.
  PR: 4549
  
  Revision  Changes    Path
  1.10      +2 -2      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/PropertyFile.java
  
  Index: PropertyFile.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/PropertyFile.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- PropertyFile.java	2001/10/28 21:30:18	1.9
  +++ PropertyFile.java	2001/10/31 22:50:21	1.10
  @@ -546,10 +546,10 @@
                   newValue = value;
               }
               else if (m_operation == Operation.INCREMENT_OPER) {
  -                newValue += value;
  +                newValue = ++value;
               }
               else if (m_operation == Operation.DECREMENT_OPER) {
  -                newValue -= value;
  +                newValue = --value;
               }
               m_value = fmt.format(newValue);
           }
  
  
  

--
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