Browse Source

Regression test started failing because text of buildexception changed.

Re-inserted <> around the taks name which were lost in the process of 
making condition more flexible.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@389278 13f79535-47bb-0310-9956-ffa450edef68
master
Jacobus Martinus Kruithof 19 years ago
parent
commit
43637af7d1
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      src/main/org/apache/tools/ant/taskdefs/ConditionTask.java

+ 4
- 4
src/main/org/apache/tools/ant/taskdefs/ConditionTask.java View File

@@ -85,12 +85,12 @@ public class ConditionTask extends ConditionBase {
public void execute() throws BuildException { public void execute() throws BuildException {
if (countConditions() > 1) { if (countConditions() > 1) {
throw new BuildException("You must not nest more than one " throw new BuildException("You must not nest more than one "
+ "condition into "
+ getTaskName());
+ "condition into <"
+ getTaskName() + ">");
} }
if (countConditions() < 1) { if (countConditions() < 1) {
throw new BuildException("You must nest a condition into "
+ getTaskName());
throw new BuildException("You must nest a condition into <"
+ getTaskName() + ">");
} }
if (property == null) { if (property == null) {
throw new BuildException("The property attribute is required."); throw new BuildException("The property attribute is required.");


Loading…
Cancel
Save