java-j2objc-add-build.xml.patch
1 | From 00bba583a1e68b7829520e26c939cb1b9f15fd76 Mon Sep 17 00:00:00 2001 |
2 | From: Julien Lepiller <julien@lepiller.eu> |
3 | Date: Sun, 9 Apr 2017 19:18:02 +0200 |
4 | Subject: [PATCH] add build.xml |
5 | |
6 | --- |
7 | build.xml | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
8 | 1 file changed, 61 insertions(+) |
9 | create mode 100644 build.xml |
10 | |
11 | diff --git a/build.xml b/build.xml |
12 | new file mode 100644 |
13 | index 0000000..7dc5f60 |
14 | --- /dev/null |
15 | +++ b/build.xml |
16 | @@ -0,0 +1,61 @@ |
17 | +<project basedir="."> |
18 | + <property name="classes.dir" value="${basedir}/build/classes" /> |
19 | + <property name="jar.dir" value="${basedir}/build/jar" /> |
20 | + <property name="build.sysclasspath" value="first" /> |
21 | + <property environment="env" /> |
22 | + <path id="classpath"> |
23 | + <pathelement location="${env.CLASSPATH}" /> |
24 | + </path> |
25 | + |
26 | + <target name="annotation-compile"> |
27 | + <mkdir dir="${classes.dir}/annotation" /> |
28 | + <javac includeantruntime="false" srcdir="annotation/src/main/java/" destdir="${classes.dir}/annotation" classpath="@refidclasspath" /> |
29 | + </target> |
30 | + |
31 | + <target name="annotations-compile"> |
32 | + <mkdir dir="${classes.dir}/annotations" /> |
33 | + <javac includeantruntime="false" srcdir="annotations/src/main/java/" destdir="${classes.dir}/annotations" classpath="@refidclasspath" /> |
34 | + </target> |
35 | + |
36 | + <target name="ant-compile"> |
37 | + <mkdir dir="${classes.dir}/ant" /> |
38 | + <javac includeantruntime="false" srcdir="ant/src/main/java/" destdir="${classes.dir}/ant" classpath="@refidclasspath" /> |
39 | + </target> |
40 | + |
41 | + <target name="compile"> |
42 | + <mkdir dir="${classes.dir}/core" /> |
43 | + <javac includeantruntime="false" srcdir="core/src/main/java/" destdir="${classes.dir}/core" classpath="@refidclasspath" /> |
44 | + </target> |
45 | + |
46 | + <target name="annotation-jar" depends="annotation-compile"> |
47 | + <mkdir dir="${jar.dir}" /> |
48 | + <exec executable="jar"> |
49 | + <arg line="-cf ${jar.dir}/errorprone-annotation-1.0.9.jar -C ${classes.dir}/annotation ." /> |
50 | + </exec> |
51 | + </target> |
52 | + |
53 | + <target name="annotations-jar" depends="annotations-compile"> |
54 | + <mkdir dir="${jar.dir}" /> |
55 | + <exec executable="jar"> |
56 | + <arg line="-cf ${jar.dir}/errorprone-annotations-1.0.9.jar -C ${classes.dir}/annotations ." /> |
57 | + </exec> |
58 | + </target> |
59 | + |
60 | + <target name="ant-jar" depends="ant-compile"> |
61 | + <mkdir dir="${jar.dir}" /> |
62 | + <exec executable="jar"> |
63 | + <arg line="-cf ${jar.dir}/errorprone-ant-1.0.9.jar -C ${classes.dir}/ant ." /> |
64 | + </exec> |
65 | + </target> |
66 | + |
67 | + <target name="core-jar" depends="compile"> |
68 | + <mkdir dir="${jar.dir}" /> |
69 | + <exec executable="jar"> |
70 | + <arg line="-cf ${jar.dir}/errorprone-1.0.9.jar -C ${classes.dir}/core ." /> |
71 | + </exec> |
72 | + </target> |
73 | + |
74 | + |
75 | + <target name="jar" depends="annotation-jar,annotations-jar,ant-jar,core-jar"> |
76 | + </target> |
77 | +</project> |
78 | -- |
79 | 2.12.2 |
80 | |
81 |