This is a small piece of code, please take a look at it, then follow the description ....
<condition property="${param1}"> <or> <istrue value="win-x86"/> <istrue value= "win-x86-client"/> <istrue value= "win-x64"/> </or> </condition> <target name="Mytarget" if="${param1}"> <echo message="executing windows family build:::${param1}"/> </target> <target name="print.name" > <antcall target="win-x86-build"> <param name="param1" value="${platform.id}"/> </antcall> </target>
I want ever the platform.id file to contain any Windows family name, it should print the message EXECUTING WINDOWS FAMILY BUILD
, but the problem is that it prints this message, even if it is a unix family.
I think that either I am not checking the state properly, or I am making some other mistake.
Can someone help me with this please?
source share