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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ Copyright (c) 2006-2017 DMDirc Developers
  4. ~
  5. ~ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
  6. ~ documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
  7. ~ rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
  8. ~ permit persons to whom the Software is furnished to do so, subject to the following conditions:
  9. ~
  10. ~ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
  11. ~ Software.
  12. ~
  13. ~ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  14. ~ WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
  15. ~ OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
  16. ~ OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  17. -->
  18. <project name="DMDirc Plugins" default="default" basedir=".">
  19. <description>Builds, packages and tests DMDirc plugins.</description>
  20. <!-- Resolve the relative directory -->
  21. <property name="dmdircOutput" location="${plugins.dmdirc.build.dir}"/>
  22. <target name="init-dependencies"/>
  23. <target name="compile">
  24. <exec executable="gradlew" dir="." failonerror="true" resolveexecutable="true" osfamily="unix">
  25. <arg value="--parallel"/>
  26. <arg value="--refresh-dependencies"/>
  27. <arg value="compileJava"/>
  28. </exec>
  29. <exec executable="cmd" dir="." failonerror="true" osfamily="windows">
  30. <arg value="/c"/>
  31. <arg value="gradlew.bat"/>
  32. <arg value="--parallel"/>
  33. <arg value="--refresh-dependencies"/>
  34. <arg value="compileJava"/>
  35. </exec>
  36. </target>
  37. <target name="jar">
  38. <exec executable="gradlew" dir="." failonerror="true" resolveexecutable="true" osfamily="unix">
  39. <arg value="--parallel"/>
  40. <arg value="--refresh-dependencies"/>
  41. <arg value="jar"/>
  42. </exec>
  43. <exec executable="cmd" dir="." failonerror="true" osfamily="windows">
  44. <arg value="/c"/>
  45. <arg value="gradlew.bat"/>
  46. <arg value="--parallel"/>
  47. <arg value="--refresh-dependencies"/>
  48. <arg value="jar"/>
  49. </exec>
  50. </target>
  51. <target name="clean">
  52. <exec executable="gradlew" dir="." failonerror="true" resolveexecutable="true" osfamily="unix">
  53. <arg value="--parallel"/>
  54. <arg value="clean"/>
  55. </exec>
  56. <exec executable="cmd" dir="." failonerror="true" osfamily="windows">
  57. <arg value="/c"/>
  58. <arg value="gradlew.bat"/>
  59. <arg value="--parallel"/>
  60. <arg value="clean"/>
  61. </exec>
  62. </target>
  63. <target name="with.clover"/>
  64. <target name="compile-for-tests" depends="compile">
  65. <exec executable="gradlew" dir="." failonerror="true" resolveexecutable="true" osfamily="unix">
  66. <arg value="--parallel"/>
  67. <arg value="--refresh-dependencies"/>
  68. <arg value="compileTestJava"/>
  69. </exec>
  70. <exec executable="cmd" dir="." failonerror="true" osfamily="windows">
  71. <arg value="/c"/>
  72. <arg value="gradlew.bat"/>
  73. <arg value="--parallel"/>
  74. <arg value="--refresh-dependencies"/>
  75. <arg value="compileTestJava"/>
  76. </exec>
  77. </target>
  78. </project>