module_writelatex-git-bridge.xml 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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 refid="library.org.eclipse.jgit-3.5.1.201410131835-r.classpath"/>
  16. <path refid="library.org.eclipse.jgit.http.server-3.5.1.201410131835-r.classpath"/>
  17. <path refid="library.javax.servlet-api-3.1.0.classpath"/>
  18. <path refid="library.jetty-all-9.2.3.v20140905.classpath"/>
  19. </path>
  20. <path id="writelatex-git-bridge.runtime.production.module.classpath">
  21. <pathelement location="${writelatex-git-bridge.output.dir}"/>
  22. <path refid="library.org.eclipse.jgit-3.5.1.201410131835-r.classpath"/>
  23. <path refid="library.org.eclipse.jgit.http.server-3.5.1.201410131835-r.classpath"/>
  24. <path refid="library.javax.servlet-api-3.1.0.classpath"/>
  25. <path refid="library.jetty-all-9.2.3.v20140905.classpath"/>
  26. </path>
  27. <path id="writelatex-git-bridge.module.classpath">
  28. <path refid="${module.jdk.classpath.writelatex-git-bridge}"/>
  29. <pathelement location="${writelatex-git-bridge.output.dir}"/>
  30. <path refid="library.org.eclipse.jgit-3.5.1.201410131835-r.classpath"/>
  31. <path refid="library.org.eclipse.jgit.http.server-3.5.1.201410131835-r.classpath"/>
  32. <path refid="library.javax.servlet-api-3.1.0.classpath"/>
  33. <path refid="library.jetty-all-9.2.3.v20140905.classpath"/>
  34. <pathelement location="${idea.home}/lib/hamcrest-core-1.3.jar"/>
  35. <pathelement location="${idea.home}/lib/hamcrest-library-1.3.jar"/>
  36. <pathelement location="${idea.home}/lib/junit-4.11.jar"/>
  37. </path>
  38. <path id="writelatex-git-bridge.runtime.module.classpath">
  39. <pathelement location="${writelatex-git-bridge.testoutput.dir}"/>
  40. <pathelement location="${writelatex-git-bridge.output.dir}"/>
  41. <path refid="library.org.eclipse.jgit-3.5.1.201410131835-r.classpath"/>
  42. <path refid="library.org.eclipse.jgit.http.server-3.5.1.201410131835-r.classpath"/>
  43. <path refid="library.javax.servlet-api-3.1.0.classpath"/>
  44. <path refid="library.jetty-all-9.2.3.v20140905.classpath"/>
  45. <pathelement location="${idea.home}/lib/hamcrest-core-1.3.jar"/>
  46. <pathelement location="${idea.home}/lib/hamcrest-library-1.3.jar"/>
  47. <pathelement location="${idea.home}/lib/junit-4.11.jar"/>
  48. </path>
  49. <patternset id="excluded.from.module.writelatex-git-bridge">
  50. <patternset refid="ignored.files"/>
  51. </patternset>
  52. <patternset id="excluded.from.compilation.writelatex-git-bridge">
  53. <patternset refid="excluded.from.module.writelatex-git-bridge"/>
  54. </patternset>
  55. <path id="writelatex-git-bridge.module.sourcepath">
  56. <dirset dir="${module.writelatex-git-bridge.basedir}">
  57. <include name="src"/>
  58. </dirset>
  59. </path>
  60. <path id="writelatex-git-bridge.module.test.sourcepath">
  61. <dirset dir="${module.writelatex-git-bridge.basedir}">
  62. <include name="test"/>
  63. </dirset>
  64. </path>
  65. <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"/>
  66. <target name="compile.module.writelatex-git-bridge.production" depends="register.custom.compilers" description="Compile module writelatex-git-bridge; production classes">
  67. <mkdir dir="${writelatex-git-bridge.output.dir}"/>
  68. <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">
  69. <compilerarg line="${compiler.args.writelatex-git-bridge}"/>
  70. <bootclasspath refid="writelatex-git-bridge.module.bootclasspath"/>
  71. <classpath refid="writelatex-git-bridge.module.production.classpath"/>
  72. <src refid="writelatex-git-bridge.module.sourcepath"/>
  73. <patternset refid="excluded.from.compilation.writelatex-git-bridge"/>
  74. </javac2>
  75. <copy todir="${writelatex-git-bridge.output.dir}">
  76. <fileset dir="${module.writelatex-git-bridge.basedir}/src">
  77. <patternset refid="compiler.resources"/>
  78. <type type="file"/>
  79. </fileset>
  80. </copy>
  81. </target>
  82. <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">
  83. <mkdir dir="${writelatex-git-bridge.testoutput.dir}"/>
  84. <javac2 destdir="${writelatex-git-bridge.testoutput.dir}" debug="${compiler.debug}" nowarn="${compiler.generate.no.warnings}" memorymaximumsize="${compiler.max.memory}" fork="true" executable="${module.jdk.bin.writelatex-git-bridge}/javac">
  85. <compilerarg line="${compiler.args.writelatex-git-bridge}"/>
  86. <bootclasspath refid="writelatex-git-bridge.module.bootclasspath"/>
  87. <classpath refid="writelatex-git-bridge.module.classpath"/>
  88. <src refid="writelatex-git-bridge.module.test.sourcepath"/>
  89. <patternset refid="excluded.from.compilation.writelatex-git-bridge"/>
  90. </javac2>
  91. <copy todir="${writelatex-git-bridge.testoutput.dir}">
  92. <fileset dir="${module.writelatex-git-bridge.basedir}/test">
  93. <patternset refid="compiler.resources"/>
  94. <type type="file"/>
  95. </fileset>
  96. </copy>
  97. </target>
  98. <target name="clean.module.writelatex-git-bridge" description="cleanup module">
  99. <delete dir="${writelatex-git-bridge.output.dir}"/>
  100. <delete dir="${writelatex-git-bridge.testoutput.dir}"/>
  101. </target>
  102. </project>