DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=40511>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=40511 ------- Additional Comments From [EMAIL PROTECTED] 2006-09-14 13:40 ------- Some discussions on the feature: http://marc.theaimsgroup.com/?t=115809515200003&r=1&w=2 http://marc.theaimsgroup.com/?t=115814234100004&r=1&w=2 ToDo: testcases, doc Example usage: <project default="cond"> <target name="cond"> <script language="beanshell"> import org.apache.tools.ant.*; import org.apache.tools.ant.taskdefs.condition.Condition; public class TestCondition extends Task { private Condition condition; public void add(Condition c) { if (condition != null) { throw new BuildException("Only one condition"); } this.condition = c; } public void execute() { if (condition == null) { throw new BuildException("No condition to test"); } log("Condition is " + condition.eval()); } } project.addTaskDefinition("testcondition", TestCondition.class); </script> <testcondition> <equals arg1="a" arg2="b"/> </testcondition> </target> </project> -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]