Browse Source

Fix increment/decrement bug.

PR: 4549
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269849 13f79535-47bb-0310-9956-ffa450edef68
master
Diane Holt 23 years ago
parent
commit
4706d9616b
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/main/org/apache/tools/ant/taskdefs/optional/PropertyFile.java

+ 2
- 2
src/main/org/apache/tools/ant/taskdefs/optional/PropertyFile.java View File

@@ -546,10 +546,10 @@ public class PropertyFile extends Task
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);
}


Loading…
Cancel
Save