diff options
author | mattinger <[email protected]> | 2006-08-09 19:04:11 +0000 |
---|---|---|
committer | mattinger <[email protected]> | 2006-08-09 19:04:11 +0000 |
commit | 9a33c83d62c95d0930501fe298eb5446666beb35 (patch) | |
tree | f31dc3e83138aaee3ad61562d602431087b9b7ba | |
parent | 6c234d85a0e8b4748df56201e6fe5790a2b0cfbe (diff) |
fixing short form operation so that the order in which the short form arguments are set doesn't matter.
git-svn-id: file:///home/sven/projects/JOGL/temp/ant-contrib/svn/ant-contrib-code/trunk/ant-contrib@15 32d7a393-a5a9-423c-abd3-5d954feb1f2f
-rw-r--r-- | src/java/net/sf/antcontrib/math/MathTask.java | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/java/net/sf/antcontrib/math/MathTask.java b/src/java/net/sf/antcontrib/math/MathTask.java index bdcc12d..e792b09 100644 --- a/src/java/net/sf/antcontrib/math/MathTask.java +++ b/src/java/net/sf/antcontrib/math/MathTask.java @@ -107,16 +107,12 @@ public class MathTask public void setOperand1(String operand1) { - Numeric n = new Numeric(); - n.setValue(operand1); - getLocalOperation().addConfiguredNumeric(n); + getLocalOperation().setArg1(operand1); } public void setOperand2(String operand2) { - Numeric n = new Numeric(); - n.setValue(operand2); - getLocalOperation().addConfiguredNumeric(n); + getLocalOperation().setArg2(operand2); } public Operation createOperation() |