mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-02 05:09:13 -05:00
331 lines
No EOL
15 KiB
XML
331 lines
No EOL
15 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project name="writelatex-git-bridge" default="all">
|
|
|
|
<!-- Compiler options -->
|
|
|
|
<property name="compiler.debug" value="on"/>
|
|
<property name="compiler.generate.no.warnings" value="off"/>
|
|
<property name="compiler.args" value=""/>
|
|
<property name="compiler.max.memory" value="700m"/>
|
|
<patternset id="ignored.files">
|
|
<exclude name="**/CVS/**"/>
|
|
<exclude name="**/SCCS/**"/>
|
|
<exclude name="**/RCS/**"/>
|
|
<exclude name="**/rcs/**"/>
|
|
<exclude name="**/.DS_Store/**"/>
|
|
<exclude name="**/.svn/**"/>
|
|
<exclude name="**/.pyc/**"/>
|
|
<exclude name="**/.pyo/**"/>
|
|
<exclude name="**/*.pyc/**"/>
|
|
<exclude name="**/*.pyo/**"/>
|
|
<exclude name="**/.git/**"/>
|
|
<exclude name="**/*.hprof/**"/>
|
|
<exclude name="**/_svn/**"/>
|
|
<exclude name="**/.hg/**"/>
|
|
<exclude name="**/*.lib/**"/>
|
|
<exclude name="**/*~/**"/>
|
|
<exclude name="**/__pycache__/**"/>
|
|
<exclude name="**/.bundle/**"/>
|
|
<exclude name="**/*.rbc/**"/>
|
|
</patternset>
|
|
<patternset id="library.patterns">
|
|
<include name="*.zip"/>
|
|
<include name="*.apk"/>
|
|
<include name="*.war"/>
|
|
<include name="*.egg"/>
|
|
<include name="*.ear"/>
|
|
<include name="*.ane"/>
|
|
<include name="*.swc"/>
|
|
<include name="*.jar"/>
|
|
</patternset>
|
|
<patternset id="compiler.resources">
|
|
<exclude name="**/?*.java"/>
|
|
<exclude name="**/?*.form"/>
|
|
<exclude name="**/?*.class"/>
|
|
<exclude name="**/?*.groovy"/>
|
|
<exclude name="**/?*.scala"/>
|
|
<exclude name="**/?*.flex"/>
|
|
<exclude name="**/?*.kt"/>
|
|
<exclude name="**/?*.clj"/>
|
|
</patternset>
|
|
|
|
|
|
<!-- Project Libraries -->
|
|
|
|
<path id="library.hamcrest-core-1.3.classpath">
|
|
<pathelement location="${basedir}/libs/hamcrest-core-1.3.jar"/>
|
|
</path>
|
|
|
|
<path id="library.hamcrest-library-1.3.classpath">
|
|
<pathelement location="${basedir}/libs/hamcrest-library-1.3.jar"/>
|
|
</path>
|
|
|
|
<path id="library.javax.servlet-api-3.1.0.classpath">
|
|
<pathelement location="${basedir}/libs/javax.servlet-api-3.1.0.jar"/>
|
|
</path>
|
|
|
|
<path id="library.jetty-all-9.2.3.v20140905.classpath">
|
|
<pathelement location="${basedir}/libs/jetty-all-9.2.3.v20140905.jar"/>
|
|
</path>
|
|
|
|
<path id="library.junit-4.11.classpath">
|
|
<pathelement location="${basedir}/libs/junit-4.11.jar"/>
|
|
</path>
|
|
|
|
<path id="library.org.eclipse.jgit-3.5.1.201410131835-r.classpath">
|
|
<pathelement location="${basedir}/libs/org.eclipse.jgit-3.5.1.201410131835-r.jar"/>
|
|
</path>
|
|
|
|
<path id="library.org.eclipse.jgit.http.server-3.5.1.201410131835-r.classpath">
|
|
<pathelement location="${basedir}/libs/org.eclipse.jgit.http.server-3.5.1.201410131835-r.jar"/>
|
|
</path>
|
|
|
|
<path id="library.gson-2.3.classpath">
|
|
<pathelement location="${basedir}/libs/gson-2.3.jar"/>
|
|
</path>
|
|
|
|
<path id="library.async-http-client-1.8.14.classpath">
|
|
<pathelement location="${basedir}/libs/async-http-client-1.8.14.jar"/>
|
|
</path>
|
|
|
|
<path id="library.slf4j-api-1.7.7.classpath">
|
|
<pathelement location="${basedir}/libs/slf4j-api-1.7.7.jar"/>
|
|
</path>
|
|
|
|
<path id="library.slf4j-nop-1.7.7.classpath">
|
|
<pathelement location="${basedir}/libs/slf4j-nop-1.7.7.jar"/>
|
|
</path>
|
|
|
|
<path id="library.sqlite-jdbc-3.7.2.classpath">
|
|
<pathelement location="${basedir}/libs/sqlite-jdbc-3.7.2.jar"/>
|
|
</path>
|
|
|
|
<!-- Modules -->
|
|
|
|
|
|
<!-- Module writelatex-git-bridge -->
|
|
|
|
<dirname property="module.writelatex-git-bridge.basedir" file="${ant.file}"/>
|
|
|
|
|
|
|
|
<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="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 refid="library.hamcrest-core-1.3.classpath"/>
|
|
<path refid="library.hamcrest-library-1.3.classpath"/>
|
|
<path refid="library.junit-4.11.classpath"/>
|
|
<path refid="library.gson-2.3.classpath"/>
|
|
<path refid="library.async-http-client-1.8.14.classpath"/>
|
|
<path refid="library.slf4j-api-1.7.7.classpath"/>
|
|
<path refid="library.slf4j-nop-1.7.7.classpath"/>
|
|
<path refid="library.sqlite-jdbc-3.7.2.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 refid="library.hamcrest-core-1.3.classpath"/>
|
|
<path refid="library.hamcrest-library-1.3.classpath"/>
|
|
<path refid="library.junit-4.11.classpath"/>
|
|
<path refid="library.gson-2.3.classpath"/>
|
|
<path refid="library.async-http-client-1.8.14.classpath"/>
|
|
<path refid="library.slf4j-api-1.7.7.classpath"/>
|
|
<path refid="library.slf4j-nop-1.7.7.classpath"/>
|
|
<path refid="library.sqlite-jdbc-3.7.2.classpath"/>
|
|
</path>
|
|
|
|
<path id="writelatex-git-bridge.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 refid="library.hamcrest-core-1.3.classpath"/>
|
|
<path refid="library.hamcrest-library-1.3.classpath"/>
|
|
<path refid="library.junit-4.11.classpath"/>
|
|
<path refid="library.gson-2.3.classpath"/>
|
|
<path refid="library.async-http-client-1.8.14.classpath"/>
|
|
<path refid="library.slf4j-api-1.7.7.classpath"/>
|
|
<path refid="library.slf4j-nop-1.7.7.classpath"/>
|
|
<path refid="library.sqlite-jdbc-3.7.2.classpath"/>
|
|
</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"/>
|
|
<path refid="library.hamcrest-core-1.3.classpath"/>
|
|
<path refid="library.hamcrest-library-1.3.classpath"/>
|
|
<path refid="library.junit-4.11.classpath"/>
|
|
<path refid="library.gson-2.3.classpath"/>
|
|
<path refid="library.async-http-client-1.8.14.classpath"/>
|
|
<path refid="library.slf4j-api-1.7.7.classpath"/>
|
|
<path refid="library.slf4j-nop-1.7.7.classpath"/>
|
|
<path refid="library.sqlite-jdbc-3.7.2.classpath"/>
|
|
</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" description="Compile module writelatex-git-bridge; production classes">
|
|
<mkdir dir="${writelatex-git-bridge.output.dir}"/>
|
|
<javac destdir="${writelatex-git-bridge.output.dir}" debug="${compiler.debug}" nowarn="${compiler.generate.no.warnings}" memorymaximumsize="${compiler.max.memory}" fork="true">
|
|
<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"/>
|
|
</javac>
|
|
|
|
<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="compile.module.writelatex-git-bridge.production" description="compile module writelatex-git-bridge; test classes" unless="skip.tests">
|
|
<mkdir dir="${writelatex-git-bridge.testoutput.dir}"/>
|
|
<javac destdir="${writelatex-git-bridge.testoutput.dir}" debug="${compiler.debug}" nowarn="${compiler.generate.no.warnings}" memorymaximumsize="${compiler.max.memory}" fork="true">
|
|
<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"/>
|
|
</javac>
|
|
|
|
<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>
|
|
|
|
<target name="clean.modules" depends="clean.module.writelatex-git-bridge">
|
|
<delete dir="${module.writelatex-git-bridge.basedir}/out" />
|
|
</target>
|
|
|
|
<target name="init" description="Build initialization">
|
|
<!-- Perform any build initialization in this target -->
|
|
</target>
|
|
|
|
<target name="clean" depends="clean.modules" description="cleanup all">
|
|
<delete dir="${module.writelatex-git-bridge.basedir}/bin" />
|
|
</target>
|
|
|
|
<target name="build.modules" depends="init, clean, compile.module.writelatex-git-bridge" description="build all modules"/>
|
|
|
|
<target name="init.artifacts">
|
|
<property name="artifacts.temp.dir" value="${basedir}/__artifacts_temp"/>
|
|
<property name="artifact.output.writelatex-git-bridge:jar" value="${basedir}/out/artifacts/writelatex_git_bridge_jar"/>
|
|
<mkdir dir="${artifacts.temp.dir}"/>
|
|
<property name="temp.jar.path.writelatex-git-bridge.jar" value="${artifacts.temp.dir}/writelatex-git-bridge.jar"/>
|
|
</target>
|
|
|
|
<target name="artifact.writelatex-git-bridge:jar" depends="init.artifacts, compile.module.writelatex-git-bridge, compile.module.writelatex-git-bridge" description="Build 'writelatex-git-bridge:jar' artifact">
|
|
<property name="artifact.temp.output.writelatex-git-bridge:jar" value="${artifacts.temp.dir}/writelatex_git_bridge_jar"/>
|
|
<mkdir dir="${artifact.temp.output.writelatex-git-bridge:jar}"/>
|
|
<jar destfile="${temp.jar.path.writelatex-git-bridge.jar}" duplicate="preserve" filesetmanifest="mergewithoutmain">
|
|
<zipfileset dir="${writelatex-git-bridge.output.dir}"/>
|
|
<zipfileset dir="${writelatex-git-bridge.testoutput.dir}"/>
|
|
<zipfileset excludes="META-INF/**/*" src="${basedir}/libs/org.eclipse.jgit.http.server-3.5.1.201410131835-r.jar"/>
|
|
<zipfileset excludes="META-INF/**/*" src="${basedir}/libs/junit-4.11.jar"/>
|
|
<zipfileset excludes="META-INF/**/*" src="${basedir}/libs/javax.servlet-api-3.1.0.jar"/>
|
|
<zipfileset excludes="META-INF/**/*" src="${basedir}/libs/hamcrest-core-1.3.jar"/>
|
|
<zipfileset excludes="META-INF/**/*" src="${basedir}/libs/org.eclipse.jgit-3.5.1.201410131835-r.jar"/>
|
|
<zipfileset excludes="META-INF/**/*" src="${basedir}/libs/jetty-all-9.2.3.v20140905.jar"/>
|
|
<zipfileset excludes="META-INF/**/*" src="${basedir}/libs/hamcrest-library-1.3.jar"/>
|
|
<zipfileset excludes="META-INF/**/*" src="${basedir}/libs/gson-2.3.jar"/>
|
|
<zipfileset excludes="META-INF/**/*" src="${basedir}/libs/async-http-client-1.8.14.jar"/>
|
|
<zipfileset excludes="META-INF/**/*" src="${basedir}/libs/slf4j-api-1.7.7.jar"/>
|
|
<zipfileset excludes="META-INF/**/*" src="${basedir}/libs/slf4j-nop-1.7.7.jar"/>
|
|
<zipfileset excludes="META-INF/**/*" src="${basedir}/libs/sqlite-jdbc-3.7.2.jar"/>
|
|
</jar>
|
|
<copy file="${temp.jar.path.writelatex-git-bridge.jar}" tofile="${artifact.temp.output.writelatex-git-bridge:jar}/writelatex-git-bridge.jar"/>
|
|
</target>
|
|
|
|
<target name="build.all.artifacts" depends="artifact.writelatex-git-bridge:jar" description="Build all artifacts">
|
|
<mkdir dir="${artifact.output.writelatex-git-bridge:jar}"/>
|
|
<copy todir="${artifact.output.writelatex-git-bridge:jar}">
|
|
<fileset dir="${artifact.temp.output.writelatex-git-bridge:jar}"/>
|
|
</copy>
|
|
|
|
<!-- Delete temporary files -->
|
|
<delete dir="${artifacts.temp.dir}"/>
|
|
</target>
|
|
|
|
<target name="test.unit" depends="compile.module.writelatex-git-bridge.tests">
|
|
<junit>
|
|
<classpath>
|
|
<path refid="writelatex-git-bridge.module.classpath"/>
|
|
<pathelement location="${writelatex-git-bridge.testoutput.dir}"/>
|
|
</classpath>
|
|
<batchtest>
|
|
<fileset dir="${writelatex-git-bridge.testoutput.dir}">
|
|
</fileset>
|
|
</batchtest>
|
|
<formatter type="brief" usefile="false"/>
|
|
</junit>
|
|
</target>
|
|
|
|
<target name="test.system" depends="package">
|
|
<property name="executable-full-path"
|
|
location="${module.writelatex-git-bridge.basedir}/test/system"/>
|
|
<exec executable="${executable-full-path}/main.sh" />
|
|
</target>
|
|
|
|
<target name="test" depends="test.unit, test.system, clean" />
|
|
|
|
<target name="package" depends="build.all.artifacts">
|
|
<mkdir dir="${module.writelatex-git-bridge.basedir}/bin" />
|
|
<copy file="${artifact.output.writelatex-git-bridge:jar}/writelatex-git-bridge.jar" tofile="${module.writelatex-git-bridge.basedir}/bin/writelatex-git-bridge.jar" />
|
|
</target>
|
|
|
|
<target name="all" depends="build.modules, test.unit, package, clean.modules, test.system" description="build all"/>
|
|
</project> |