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.xml 2.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project name="DMDirc" default="default" basedir=".">
  3. <description>Builds, tests, and runs the project DMDirc.</description>
  4. <import file="nbproject/build-impl.xml"/>
  5. <import file="build-installer.xml"/>
  6. <import file="build-plugins.xml"/>
  7. <import file="build-reports.xml"/>
  8. <import file="build-tests.xml"/>
  9. <import file="build-versioning.xml"/>
  10. <import file="build-properties.xml"/>
  11. <import file="build-ivy.xml"/>
  12. <target name="init-private">
  13. <echo>Downloading private files, if this fails please pass username and</echo>
  14. <echo>password to ant using -Dusername=... -Dpassword=...</echo>
  15. <get src="http://www.dmdirc.com/private/clover.license" dest="lib/clover.license" username="${username}" password="${password}"/>
  16. <get dest="installer/signing/" username="${username}" password="${password}">
  17. <url url="http://www.dmdirc.com/private/DMDirc.cer"/>
  18. <url url="http://www.dmdirc.com/private/DMDirc.pvk"/>
  19. <url url="http://www.dmdirc.com/private/DMDirc.spc"/>
  20. </get>
  21. <get dest="addons.api.key" username="${username}" password="${password}" src="http://www.dmdirc.com/private/addons.api.key"/>
  22. <!-- Re-evaluate as the license is probably here now -->
  23. <condition property="clover.installed">
  24. <and>
  25. <available classname="com.cenqua.clover.CloverInstr"/>
  26. <available file="lib/clover.license"/>
  27. </and>
  28. </condition>
  29. </target>
  30. <target name="-post-clean">
  31. <delete dir="modules/plugins/build"/>
  32. <delete dir="modules/plugins/dist"/>
  33. <delete dir="modules/parser/build"/>
  34. <delete dir="modules/parser/dist"/>
  35. <delete dir="modules/util/build"/>
  36. <delete dir="modules/util/dist"/>
  37. </target>
  38. <target name="-bundle-slf4j">
  39. <jar destfile="${dist.jar}" update="true">
  40. <zipfileset src="lib/slf4j-api-1.6.4.jar" includes="org/slf4j/**/*"/>
  41. </jar>
  42. </target>
  43. <target name="-pre-init" depends="-init-dependencies,-init-private-properties"/>
  44. <target name="-post-compile" depends="-write-version, build-plugins"/>
  45. <target name="-post-test-run" depends="-do-test-reports"/>
  46. <target name="-post-jar" depends="-update-bundled-plugins,-bundle-slf4j"/>
  47. </project>