You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by jk...@apache.org on 2006/03/27 23:21:09 UTC
svn commit: r389278 -
/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ConditionTask.java
Author: jkf
Date: Mon Mar 27 13:21:07 2006
New Revision: 389278
URL: http://svn.apache.org/viewcvs?rev=389278&view=rev
Log:
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.
Modified:
ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ConditionTask.java
Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ConditionTask.java
URL: http://svn.apache.org/viewcvs/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ConditionTask.java?rev=389278&r1=389277&r2=389278&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ConditionTask.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/ConditionTask.java Mon Mar 27 13:21:07 2006
@@ -85,12 +85,12 @@
public void execute() throws BuildException {
if (countConditions() > 1) {
throw new BuildException("You must not nest more than one "
- + "condition into "
- + getTaskName());
+ + "condition into <"
+ + getTaskName() + ">");
}
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) {
throw new BuildException("The property attribute is required.");
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org