| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- <?xml version="1.0" encoding="UTF-8"?>
- <project name="module_writelatex-git-bridge" default="compile.module.writelatex-git-bridge">
- <dirname property="module.writelatex-git-bridge.basedir" file="${ant.file.module_writelatex-git-bridge}"/>
-
- <property name="module.jdk.home.writelatex-git-bridge" value="${project.jdk.home}"/>
- <property name="module.jdk.bin.writelatex-git-bridge" value="${project.jdk.bin}"/>
- <property name="module.jdk.classpath.writelatex-git-bridge" value="${project.jdk.classpath}"/>
-
- <property name="compiler.args.writelatex-git-bridge" value="-encoding UTF-8 -source 1.6 ${compiler.args}"/>
-
- <property name="writelatex-git-bridge.output.dir" value="${module.writelatex-git-bridge.basedir}/out/production/writelatex-git-bridge"/>
- <property name="writelatex-git-bridge.testoutput.dir" value="${module.writelatex-git-bridge.basedir}/out/test/writelatex-git-bridge"/>
-
- <path id="writelatex-git-bridge.module.bootclasspath">
- <!-- Paths to be included in compilation bootclasspath -->
- </path>
-
- <path id="writelatex-git-bridge.module.production.classpath">
- <path refid="${module.jdk.classpath.writelatex-git-bridge}"/>
- <path refid="library.org.eclipse.jgit-3.5.1.201410131835-r.classpath"/>
- <path refid="library.org.eclipse.jgit.http.server-3.5.1.201410131835-r.classpath"/>
- <path refid="library.javax.servlet-api-3.1.0.classpath"/>
- <path refid="library.jetty-all-9.2.3.v20140905.classpath"/>
- </path>
-
- <path id="writelatex-git-bridge.runtime.production.module.classpath">
- <pathelement location="${writelatex-git-bridge.output.dir}"/>
- <path refid="library.org.eclipse.jgit-3.5.1.201410131835-r.classpath"/>
- <path refid="library.org.eclipse.jgit.http.server-3.5.1.201410131835-r.classpath"/>
- <path refid="library.javax.servlet-api-3.1.0.classpath"/>
- <path refid="library.jetty-all-9.2.3.v20140905.classpath"/>
- </path>
-
- <path id="writelatex-git-bridge.module.classpath">
- <path refid="${module.jdk.classpath.writelatex-git-bridge}"/>
- <pathelement location="${writelatex-git-bridge.output.dir}"/>
- <path refid="library.org.eclipse.jgit-3.5.1.201410131835-r.classpath"/>
- <path refid="library.org.eclipse.jgit.http.server-3.5.1.201410131835-r.classpath"/>
- <path refid="library.javax.servlet-api-3.1.0.classpath"/>
- <path refid="library.jetty-all-9.2.3.v20140905.classpath"/>
- <pathelement location="${idea.home}/lib/hamcrest-core-1.3.jar"/>
- <pathelement location="${idea.home}/lib/hamcrest-library-1.3.jar"/>
- <pathelement location="${idea.home}/lib/junit-4.11.jar"/>
- </path>
-
- <path id="writelatex-git-bridge.runtime.module.classpath">
- <pathelement location="${writelatex-git-bridge.testoutput.dir}"/>
- <pathelement location="${writelatex-git-bridge.output.dir}"/>
- <path refid="library.org.eclipse.jgit-3.5.1.201410131835-r.classpath"/>
- <path refid="library.org.eclipse.jgit.http.server-3.5.1.201410131835-r.classpath"/>
- <path refid="library.javax.servlet-api-3.1.0.classpath"/>
- <path refid="library.jetty-all-9.2.3.v20140905.classpath"/>
- <pathelement location="${idea.home}/lib/hamcrest-core-1.3.jar"/>
- <pathelement location="${idea.home}/lib/hamcrest-library-1.3.jar"/>
- <pathelement location="${idea.home}/lib/junit-4.11.jar"/>
- </path>
-
-
- <patternset id="excluded.from.module.writelatex-git-bridge">
- <patternset refid="ignored.files"/>
- </patternset>
-
- <patternset id="excluded.from.compilation.writelatex-git-bridge">
- <patternset refid="excluded.from.module.writelatex-git-bridge"/>
- </patternset>
-
- <path id="writelatex-git-bridge.module.sourcepath">
- <dirset dir="${module.writelatex-git-bridge.basedir}">
- <include name="src"/>
- </dirset>
- </path>
-
- <path id="writelatex-git-bridge.module.test.sourcepath">
- <dirset dir="${module.writelatex-git-bridge.basedir}">
- <include name="test"/>
- </dirset>
- </path>
-
-
- <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"/>
-
- <target name="compile.module.writelatex-git-bridge.production" depends="register.custom.compilers" description="Compile module writelatex-git-bridge; production classes">
- <mkdir dir="${writelatex-git-bridge.output.dir}"/>
- <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">
- <compilerarg line="${compiler.args.writelatex-git-bridge}"/>
- <bootclasspath refid="writelatex-git-bridge.module.bootclasspath"/>
- <classpath refid="writelatex-git-bridge.module.production.classpath"/>
- <src refid="writelatex-git-bridge.module.sourcepath"/>
- <patternset refid="excluded.from.compilation.writelatex-git-bridge"/>
- </javac2>
-
- <copy todir="${writelatex-git-bridge.output.dir}">
- <fileset dir="${module.writelatex-git-bridge.basedir}/src">
- <patternset refid="compiler.resources"/>
- <type type="file"/>
- </fileset>
- </copy>
- </target>
-
- <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">
- <mkdir dir="${writelatex-git-bridge.testoutput.dir}"/>
- <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">
- <compilerarg line="${compiler.args.writelatex-git-bridge}"/>
- <bootclasspath refid="writelatex-git-bridge.module.bootclasspath"/>
- <classpath refid="writelatex-git-bridge.module.classpath"/>
- <src refid="writelatex-git-bridge.module.test.sourcepath"/>
- <patternset refid="excluded.from.compilation.writelatex-git-bridge"/>
- </javac2>
-
- <copy todir="${writelatex-git-bridge.testoutput.dir}">
- <fileset dir="${module.writelatex-git-bridge.basedir}/test">
- <patternset refid="compiler.resources"/>
- <type type="file"/>
- </fileset>
- </copy>
- </target>
-
- <target name="clean.module.writelatex-git-bridge" description="cleanup module">
- <delete dir="${writelatex-git-bridge.output.dir}"/>
- <delete dir="${writelatex-git-bridge.testoutput.dir}"/>
- </target>
- </project>
|