diff options
author | mattinger <[email protected]> | 2006-08-09 19:13:04 +0000 |
---|---|---|
committer | mattinger <[email protected]> | 2006-08-09 19:13:04 +0000 |
commit | f1fefdafe8c70b4f2f2eae46d484ef5ccdc9f6a5 (patch) | |
tree | bb3a9c9d2834d827845b3ebe12fbd74a650b25a1 | |
parent | 9a33c83d62c95d0930501fe298eb5446666beb35 (diff) |
git-svn-id: file:///home/sven/projects/JOGL/temp/ant-contrib/svn/ant-contrib-code/trunk/ant-contrib@16 32d7a393-a5a9-423c-abd3-5d954feb1f2f
-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); |