Advertisement
Guest User

Untitled

a guest
Apr 1st, 2015
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. <property name="Version" value="" />
  2. <target name="checksoftwareversion1.1">
  3. <condition property="version1.1">
  4. <if>
  5. <endswith string="${Version}" with="1.1" />
  6. <then>
  7. <echo message="Version is ${Version}" />
  8. </then>
  9. </if>
  10. </condition>
  11. </target>
  12. <target name="checksoftwareversion1.2">
  13. <condition property="version1.2">
  14. <if>
  15. <endswith string="${Version}" with="1.2" />
  16. <then>
  17. <echo message="Version is ${Version}" />
  18. </then>
  19. </if>
  20. </condition>
  21. </target>
  22.  
  23. <target name="runA" if="version1.1">
  24. </target>
  25. <target name="runB" if="version1.2">
  26. </target>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement