You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

property.xml 1.3 kB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?xml version="1.0"?>
  2. <project name="property-test" basedir="." default="test1">
  3. <target name="test1">
  4. <property environment="testenv"/>
  5. </target>
  6. <target name="test2">
  7. <property name="testprop1" value="aa"/>
  8. <property file="property1.properties"/>
  9. <echo message="testprop1=${testprop1}, testprop3=${testprop3}, testprop4=${testprop4}"/>
  10. </target>
  11. <target name="test3">
  12. <property file="property2.properties"/>
  13. </target>
  14. <target name="test4">
  15. <property name="http.port" value="999" />
  16. <property file="property3.properties"/>
  17. <echo message="http.url is ${http.url}"/>
  18. </target>
  19. <target name="test5">
  20. <property name="http.port" value="999" />
  21. <property url="${test5.url}"/>
  22. <echo message="http.url is ${http.url}"/>
  23. </target>
  24. <target name="prefix.success">
  25. <property file="property3.properties" prefix="server1"/>
  26. </target>
  27. <target name="prefix.fail">
  28. <property name="someprop" value="value" prefix="prefix"/>
  29. </target>
  30. <!-- caused an endless loop, PR 21825 -->
  31. <target name="testCircularReference">
  32. <property file="property4.properties"/>
  33. </target>
  34. <target name="thisIsNotACircularReference">
  35. <property file="property5.properties"/>
  36. <echo>b is ${b}</echo>
  37. </target>
  38. </project>