I have build.xml for use with ant, and I'm trying to put a condition on the target:
First, I set a property here, which works fine:
<condition property="isWindows"> <os family="windows"/> </condition>
Then I try to use it for the purpose:
<target name="-post-jar"> <condition property="isWindows" value="true"> <property name="launch4j.dir" location="launch4j" /> </condition> <move file="${dist.jar.dir}" tofile="myFile"/> </target>
I get an error: “the condition does not support the nested element“ property. ”There are questions: how to correctly place the condition inside the target and why is the error related to the“ nested ”property?
source share