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 1.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. <target name="init-private">
  12. <echo>Downloading private files, if this fails please pass username and</echo>
  13. <echo>password to ant using -Dusername=... -Dpassword=...</echo>
  14. <get src="http://www.dmdirc.com/private/clover.license" dest="lib/clover.license" username="${username}" password="${password}"/>
  15. <get dest="installer/signing/" username="${username}" password="${password}">
  16. <url url="http://www.dmdirc.com/private/DMDirc.cer"/>
  17. <url url="http://www.dmdirc.com/private/DMDirc.pvk"/>
  18. <url url="http://www.dmdirc.com/private/DMDirc.spc"/>
  19. </get>
  20. </target>
  21. <target name="-post-clean">
  22. <delete dir="modules/plugins/build"/>
  23. <delete dir="modules/plugins/dist"/>
  24. <delete dir="modules/parser/build"/>
  25. <delete dir="modules/parser/dist"/>
  26. <delete dir="modules/util/build"/>
  27. <delete dir="modules/util/dist"/>
  28. </target>
  29. <target name="-bundle-slf4j">
  30. <jar destfile="${dist.jar}" update="true">
  31. <zipfileset src="lib/slf4j-api-1.6.4.jar" includes="org/slf4j/**/*"/>
  32. </jar>
  33. </target>
  34. <target name="-pre-init" depends="-init-private-properties"/>
  35. <target name="-post-compile" depends="-write-version, build-plugins"/>
  36. <target name="-post-test-run" depends="-do-test-reports"/>
  37. <target name="-post-jar" depends="-update-bundled-plugins,-bundle-slf4j"/>
  38. </project>