diff options
-rw-r--r-- | src/java/net/sf/antcontrib/math/MathTask.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/java/net/sf/antcontrib/math/MathTask.java b/src/java/net/sf/antcontrib/math/MathTask.java index e792b09..b861aa8 100644 --- a/src/java/net/sf/antcontrib/math/MathTask.java +++ b/src/java/net/sf/antcontrib/math/MathTask.java @@ -118,7 +118,9 @@ public class MathTask public Operation createOperation() { if (locOperation != null || operation != null) - throw new BuildException("Doh!!!"); + 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."); this.operation = new Operation(); this.operation.setStrict(strict); this.operation.setDatatype(datatype); |