summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authormattinger <[email protected]>2006-08-09 19:14:24 +0000
committermattinger <[email protected]>2006-08-09 19:14:24 +0000
commit37e5a83c8db9c18975e85bbe13c4a340ff8ab7b9 (patch)
tree852f958968b857ca65888fd37db71b2b19278e64 /src
parentf1fefdafe8c70b4f2f2eae46d484ef5ccdc9f6a5 (diff)
git-svn-id: file:///home/sven/projects/JOGL/temp/ant-contrib/svn/ant-contrib-code/trunk/ant-contrib@17 32d7a393-a5a9-423c-abd3-5d954feb1f2f
Diffstat (limited to 'src')
-rw-r--r--src/java/net/sf/antcontrib/math/MathTask.java4
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);