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.

build-tests.xml 1.4KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project basedir=".">
  3. <target name="-init-clover-initstring" unless="clover.init.string">
  4. <property name="clover.init.string" location=".clover/clover.db"/>
  5. </target>
  6. <target name="-init-clover" depends="-init-clover-initstring">
  7. <path id="clover.classpath">
  8. <fileset dir="lib/test" includes="*clover*.jar"/>
  9. <fileset dir="${clover.search.path}" includes="*clover*.jar"/>
  10. </path>
  11. <taskdef resource="cloverlib.xml" classpathref="clover.classpath"/>
  12. <taskdef resource="cloverjunitlib.xml" classpathref="clover.classpath"/>
  13. <condition property="clover.installed">
  14. <and>
  15. <available classname="com.atlassian.clover.CloverInstr"/>
  16. <or>
  17. <available file="lib/clover.license"/>
  18. <available file="${clover.search.path}/clover.license"/>
  19. <available file="${clover.license.path}"/>
  20. </or>
  21. </and>
  22. </condition>
  23. </target>
  24. <target name="with.clover" depends="-init-clover" if="clover.installed"
  25. description="Set up Clover to instrument tests.">
  26. <clover-env/>
  27. <clover-setup initstring="${clover.init.string}"/>
  28. </target>
  29. <target name="compile-for-tests" depends="clean,with.clover,compile"/>
  30. </project>