module_writelatex-git-bridge.xml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project name="module_writelatex-git-bridge" default="compile.module.writelatex-git-bridge">
  3. <dirname property="module.writelatex-git-bridge.basedir" file="${ant.file.module_writelatex-git-bridge}"/>
  4. <property name="module.jdk.home.writelatex-git-bridge" value="${project.jdk.home}"/>
  5. <property name="module.jdk.bin.writelatex-git-bridge" value="${project.jdk.bin}"/>
  6. <property name="module.jdk.classpath.writelatex-git-bridge" value="${project.jdk.classpath}"/>
  7. <property name="compiler.args.writelatex-git-bridge" value="-encoding UTF-8 -source 1.6 ${compiler.args}"/>
  8. <property name="writelatex-git-bridge.output.dir" value="${module.writelatex-git-bridge.basedir}/out/production/writelatex-git-bridge"/>
  9. <property name="writelatex-git-bridge.testoutput.dir" value="${module.writelatex-git-bridge.basedir}/out/test/writelatex-git-bridge"/>
  10. <path id="writelatex-git-bridge.module.bootclasspath">
  11. <!-- Paths to be included in compilation bootclasspath -->
  12. </path>
  13. <path id="writelatex-git-bridge.module.production.classpath">
  14. <path refid="${module.jdk.classpath.writelatex-git-bridge}"/>
  15. </path>
  16. <path id="writelatex-git-bridge.runtime.production.module.classpath">
  17. <pathelement location="${writelatex-git-bridge.output.dir}"/>
  18. </path>
  19. <path id="writelatex-git-bridge.module.classpath">
  20. <path refid="${module.jdk.classpath.writelatex-git-bridge}"/>
  21. <pathelement location="${writelatex-git-bridge.output.dir}"/>
  22. </path>
  23. <path id="writelatex-git-bridge.runtime.module.classpath">
  24. <pathelement location="${writelatex-git-bridge.testoutput.dir}"/>
  25. <pathelement location="${writelatex-git-bridge.output.dir}"/>
  26. </path>
  27. <patternset id="excluded.from.module.writelatex-git-bridge">
  28. <patternset refid="ignored.files"/>
  29. </patternset>
  30. <patternset id="excluded.from.compilation.writelatex-git-bridge">
  31. <patternset refid="excluded.from.module.writelatex-git-bridge"/>
  32. </patternset>
  33. <path id="writelatex-git-bridge.module.sourcepath">
  34. <dirset dir="${module.writelatex-git-bridge.basedir}">
  35. <include name="src"/>
  36. </dirset>
  37. </path>
  38. <target name="compile.module.writelatex-git-bridge" depends="compile.module.writelatex-git-bridge.production,compile.module.writelatex-git-bridge.tests" description="Compile module writelatex-git-bridge"/>
  39. <target name="compile.module.writelatex-git-bridge.production" depends="register.custom.compilers" description="Compile module writelatex-git-bridge; production classes">
  40. <mkdir dir="${writelatex-git-bridge.output.dir}"/>
  41. <javac2 destdir="${writelatex-git-bridge.output.dir}" debug="${compiler.debug}" nowarn="${compiler.generate.no.warnings}" memorymaximumsize="${compiler.max.memory}" fork="true" executable="${module.jdk.bin.writelatex-git-bridge}/javac">
  42. <compilerarg line="${compiler.args.writelatex-git-bridge}"/>
  43. <bootclasspath refid="writelatex-git-bridge.module.bootclasspath"/>
  44. <classpath refid="writelatex-git-bridge.module.production.classpath"/>
  45. <src refid="writelatex-git-bridge.module.sourcepath"/>
  46. <patternset refid="excluded.from.compilation.writelatex-git-bridge"/>
  47. </javac2>
  48. <copy todir="${writelatex-git-bridge.output.dir}">
  49. <fileset dir="${module.writelatex-git-bridge.basedir}/src">
  50. <patternset refid="compiler.resources"/>
  51. <type type="file"/>
  52. </fileset>
  53. </copy>
  54. </target>
  55. <target name="compile.module.writelatex-git-bridge.tests" depends="register.custom.compilers,compile.module.writelatex-git-bridge.production" description="compile module writelatex-git-bridge; test classes" unless="skip.tests"/>
  56. <target name="clean.module.writelatex-git-bridge" description="cleanup module">
  57. <delete dir="${writelatex-git-bridge.output.dir}"/>
  58. <delete dir="${writelatex-git-bridge.testoutput.dir}"/>
  59. </target>
  60. </project>