Condition doesn't support the nested "if" element in Ant-contrib -


goal: if software version 1.1, run target runa, else runb. actually, there many targets needs run based on software version. below simpler extract of ant xml file.

<property name="version" value="" /> <target name="checksoftwareversion1.1">     <condition property="version1.1">         <if>             <endswith string="${version}" with="1.1" />             <then>                 <echo message="version ${version}" />             </then>         </if>     </condition> </target>  <target name="checksoftwareversion1.2">     <condition property="version1.2">         <if>             <endswith string="${version}" with="1.2" />             <then>                 <echo message="version ${version}" />             </then>         </if>     </condition> </target>  <target name="runa" if="version1.1"> </target> <target name="runb" if="version1.2"> </target> 

getting exception: condition doesn't support nested "if" element. clue on how solving or may better approach.. thanks


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -