I'm new to ant, and I want to require a file name if something other than the default target is used, so the call syntax would be something like this:
ant specifictarget -Dfile=myfile
I use ant contrib to give me extra functionality, so I have this:
<if>
<equals arg1="${file}" arg2="" />
<then>
</then>
</if>
I believe that if the file is not specified, it can be equal to an empty string. Obviously, this did not work, and I did not find any examples on Google or the correct syntax in the manual.
What syntax should I use?
source
share