i have ant condition this:
<condition property="create_stub"> <and> <available file="${create_stub_command_file}" property="stub_script.present" /> <isset property="packaged_stub_file"/> </and> </condition>
my understanding is: if create_stub_command_file
present set stub_script.present=true
. not sure
<isset property="packaged_stub_file"/>
what doing? , how change overall condition. i.e in case condition block evaluate true?
equivolent pseudo code:
if (file($create_stub_command_file).exists) property["stub_script.present"] := true end if (file($create_stub_command_file).exists , property["property["stub_script.present"] != null) property["create_stub"] := true end
forgive errors... find condition blocks tricky , need lots of testing. you're best advised keep them simple. ant not programming language.
Comments
Post a Comment