--- Eddie Bush <[EMAIL PROTECTED]> wrote: > Maybe the <if> task is what I am after. I don't see that though. Any > ideas where I could snag a copy of it? Is it difficult to install such > things?
It's part of the ant-contrib project on Sourceforge. You can pick up a nightly jar at: http://gump.covalent.net/jars/latest/ant-contrib/ To use the tasks, do one of: include the jar-file in your CLASSPATH; put it in ANT_HOME/lib; or add a nested <classpath> element to the <taskdef> to point to where the jar-file lives. Then include the following in your build file (optionally, with the nested <classpath>): <taskdef resource="net/sf/antcontrib/antcontrib.properties"/> This will define all the tasks included in the jar: <if>, <foreach>, <trycatch>, <switch>, <propertycopy>, <osfamily>. Since it's a nightly not a release jar, I don't think it includes any documentation, so you may want to pick up the source and run the target that builds them (looks to be Javadoc docs): http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/ant-contrib/ant-contrib/ But, basically, the <if> task is: <if> some condition... <then> some task(s) </then> [optional] <else> some other task(s) </else> </if> Diane ===== ([EMAIL PROTECTED]) __________________________________________________ Do You Yahoo!? Yahoo! Shopping - Mother's Day is May 12th! http://shopping.yahoo.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
