您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

build.xml 2.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. <available file="/bin/bash" property="has.bash"/>
  5. <import file="nbproject/build-impl.xml"/>
  6. <import file="build-installer.xml"/>
  7. <import file="build-jar.xml"/>
  8. <import file="build-plugins.xml"/>
  9. <import file="build-reports.xml"/>
  10. <import file="build-tests.xml"/>
  11. <import file="build-versioning.xml"/>
  12. <target name="-submodules" depends="-submodules-bash, -submodules-default"/>
  13. <target name="-check-use">
  14. <!-- Use script iff:
  15. - bash is available
  16. - submodule.update is set to true
  17. -->
  18. <condition property="use.bash.submodule">
  19. <and>
  20. <equals arg1="${submodule.update}" arg2="true" />
  21. <equals arg1="${has.bash}" arg2="true" />
  22. </and>
  23. </condition>
  24. <!-- Use git's built in commands iff:
  25. - submodule.update is set to true
  26. - bash is not available
  27. -->
  28. <condition property="use.default.submodule">
  29. <and>
  30. <equals arg1="${submodule.update}" arg2="true" />
  31. <equals arg1="${has.bash}" arg2="false" />
  32. </and>
  33. </condition>
  34. </target>
  35. <target name="-submodules-bash" depends="-check-use" if="use.bash.submodule">
  36. <exec executable="/bin/bash">
  37. <arg value="updateSubModules.sh"/>
  38. </exec>
  39. </target>
  40. <target name="-submodules-default" depends="-check-use" if="use.default.submodule">
  41. <exec executable="git">
  42. <arg value="submodule"/>
  43. <arg value="init"/>
  44. </exec>
  45. <exec executable="git">
  46. <arg value="submodule"/>
  47. <arg value="update"/>
  48. </exec>
  49. </target>
  50. <target name="-pre-init" depends="-submodules"/>
  51. <target name="-post-compile" depends="-write-version, build-plugins, -addpluginlibs"/>
  52. <target name="-post-test-run" depends="-do-test-reports"/>
  53. <target name="-post-jar" depends="-addjarlibs,-update-bundled-plugins"/>
  54. </project>