diff options
Diffstat (limited to 'src/java/net/sf/antcontrib/math/MathTask.java')
-rw-r--r-- | src/java/net/sf/antcontrib/math/MathTask.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/java/net/sf/antcontrib/math/MathTask.java b/src/java/net/sf/antcontrib/math/MathTask.java index b861aa8..3250a62 100644 --- a/src/java/net/sf/antcontrib/math/MathTask.java +++ b/src/java/net/sf/antcontrib/math/MathTask.java @@ -118,9 +118,7 @@ public class MathTask public Operation createOperation() { if (locOperation != null || operation != null) - throw new BuildException("An operation must be specified"); - if (locOperation != null && operation != null) - throw new BuildException("You cannot specify an <operation> subelement when using the 'operation' attribute."); + throw new BuildException("Only 1 operation can be specified"); this.operation = new Operation(); this.operation.setStrict(strict); this.operation.setDatatype(datatype); |