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

test-build-script.xml 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <!-- ========================================================================= -->
  2. <!-- Copyright (c) 2005 Contributors -->
  3. <!-- All rights reserved. -->
  4. <!-- This program and the accompanying materials are made available -->
  5. <!-- under the terms of the Eclipse Public License v 2.0 -->
  6. <!-- which accompanies this distribution and is available at -->
  7. <!-- https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt -->
  8. <!-- -->
  9. <!-- Contributors: (See CVS checkin's) -->
  10. <!-- Wes Isberg initial implementation -->
  11. <!-- ========================================================================= -->
  12. <project name="test-build-script" default="all" basedir=".">
  13. <property name="modules.dir" location="${basedir}/.."/>
  14. <import file="${modules.dir}/build/build-properties.xml"/>
  15. <target name="all" depends="failures"/>
  16. <target name="failures" depends="init-properties">
  17. <delete file="${aj.failure.file}"/>
  18. <echo message="-> no false negative (no file)"/>
  19. <antcall target="fail-if-failures"/>
  20. <touch file="${aj.failure.file}"/>
  21. <echo message="-> no false negative (empty file)"/>
  22. <antcall target="fail-if-failures"/>
  23. <echo message="-> no false negative (unset Property)"/>
  24. <report-if-failed text="not error text" property="unsetProperty"/>
  25. <antcall target="fail-if-failures"/>
  26. <echo message="-> true negative (set Property)"/>
  27. <property name="setProperty" value="."/>
  28. <report-if-failed text="error text" property="setProperty"/>
  29. <antcall target="fail-if-failures"/>
  30. <loadfile property="emit" srcfile="${aj.failure.file}"/>
  31. <echo message="-> file contents: ${emit}"/>
  32. </target>
  33. </project>