diff options
author | Jaikiran Pai <jaikiran@apache.org> | 2018-08-26 16:00:14 +0530 |
---|---|---|
committer | Jaikiran Pai <jaikiran@apache.org> | 2018-08-26 16:00:14 +0530 |
commit | 87b252f740999c88701b38b387ac6de4617fb6bf (patch) | |
tree | b9c430e4f84aaf362259fcb7cf9c4f937e9d9638 /src/main/org | |
parent | 33e2efec43a86d5a08d01436c4b18649100d7e05 (diff) | |
parent | 21de7add9a935c4ae61716cce269f58db26e949a (diff) | |
download | ant-87b252f740999c88701b38b387ac6de4617fb6bf.tar.gz |
Merge 1.9.x branch into master
Diffstat (limited to 'src/main/org')
-rw-r--r-- | src/main/org/apache/tools/ant/taskdefs/AugmentReference.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/org/apache/tools/ant/taskdefs/AugmentReference.java b/src/main/org/apache/tools/ant/taskdefs/AugmentReference.java index 637795f37..7402d4482 100644 --- a/src/main/org/apache/tools/ant/taskdefs/AugmentReference.java +++ b/src/main/org/apache/tools/ant/taskdefs/AugmentReference.java @@ -17,6 +17,7 @@ */ package org.apache.tools.ant.taskdefs; +import org.apache.tools.ant.BuildException; import org.apache.tools.ant.Project; import org.apache.tools.ant.RuntimeConfigurable; import org.apache.tools.ant.Task; @@ -48,7 +49,7 @@ public class AugmentReference extends Task implements TypeAdapter { log("project reference " + id + "=" + String.valueOf(result), Project.MSG_DEBUG); return result; } - throw new IllegalStateException("Unknown reference \"" + id + "\""); + throw new BuildException("Unknown reference \"" + id + "\""); } /** @@ -63,7 +64,7 @@ public class AugmentReference extends Task implements TypeAdapter { RuntimeConfigurable wrapper = getWrapper(); id = wrapper.getId(); if (id == null) { - throw new IllegalStateException(getTaskName() + " attribute 'id' unset"); + throw new BuildException(getTaskName() + " attribute 'id' unset"); } wrapper.setAttribute("id", null); wrapper.removeAttribute("id"); |