Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
-
All
Description
I noticed that AntBuilder doesn't handle ConditionTask (FYI,
ConditionTask does not extend Task).
This breaks with a groovy script such as:
ant = new AntBuilder();
//ant.condition("property":"output")
{contains([string:"hi",substring:"hi"])};
// Note that equals is a keyword in Java, so pass in Equals (uppercase)
ant.condition("property":"output")
;
//ant.condition("property":"output")
;
ant.echo("\${output}")
-------------------------
A patch (diff -u) is in the attachment