java-error-prone-add-build.xml.patch
1 | From ecb976ffdfc6d43668fdec65b1289dcfdb230c76 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 | 84 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
8 | 1 file changed, 84 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..187e820 |
14 | --- /dev/null |
15 | +++ b/build.xml |
16 | @@ -0,0 +1,84 @@ |
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="check-api-compile" depends="annotation-jar,annotations-jar"> |
32 | + <mkdir dir="${classes.dir}/check_api" /> |
33 | + <javac includeantruntime="false" srcdir="check_api/src/main/java/" destdir="${classes.dir}/check_api" classpath="@refidclasspath"> |
34 | + <classpath path="${env.CLASSPATH}" /> |
35 | + <classpath path="${jar.dir}/errorprone-annotation-1.0.9.jar" /> |
36 | + <classpath path="${jar.dir}/errorprone-annotations-1.0.9.jar" /> |
37 | + </javac> |
38 | + </target> |
39 | + |
40 | + <target name="annotations-compile"> |
41 | + <mkdir dir="${classes.dir}/annotations" /> |
42 | + <javac includeantruntime="false" srcdir="annotations/src/main/java/" destdir="${classes.dir}/annotations" classpath="@refidclasspath" /> |
43 | + </target> |
44 | + |
45 | + <target name="ant-compile" depends="core-jar"> |
46 | + <mkdir dir="${classes.dir}/ant" /> |
47 | + <javac includeantruntime="false" srcdir="ant/src/main/java/" destdir="${classes.dir}/ant" classpath="@refidclasspath"> |
48 | + <classpath path="${env.CLASSPATH}" /> |
49 | + <classpath path="${jar.dir}/errorprone-1.0.9.jar" /> |
50 | + </javac> |
51 | + </target> |
52 | + |
53 | + <target name="compile" depends="annotation-jar,check-api-jar"> |
54 | + <mkdir dir="${classes.dir}/core" /> |
55 | + <javac includeantruntime="false" srcdir="core/src/main/java/" destdir="${classes.dir}/core" classpath="@refidclasspath"> |
56 | + <classpath path="${env.CLASSPATH}" /> |
57 | + <classpath path="${jar.dir}/errorprone-annotation-1.0.9.jar" /> |
58 | + <classpath path="${jar.dir}/errorprone-check-api-1.0.9.jar" /> |
59 | + </javac> |
60 | + </target> |
61 | + |
62 | + <target name="annotation-jar" depends="annotation-compile"> |
63 | + <mkdir dir="${jar.dir}" /> |
64 | + <exec executable="jar"> |
65 | + <arg line="-cf ${jar.dir}/errorprone-annotation-1.0.9.jar -C ${classes.dir}/annotation ." /> |
66 | + </exec> |
67 | + </target> |
68 | + |
69 | + <target name="annotations-jar" depends="annotations-compile"> |
70 | + <mkdir dir="${jar.dir}" /> |
71 | + <exec executable="jar"> |
72 | + <arg line="-cf ${jar.dir}/errorprone-annotations-1.0.9.jar -C ${classes.dir}/annotations ." /> |
73 | + </exec> |
74 | + </target> |
75 | + |
76 | + <target name="ant-jar" depends="ant-compile"> |
77 | + <mkdir dir="${jar.dir}" /> |
78 | + <exec executable="jar"> |
79 | + <arg line="-cf ${jar.dir}/errorprone-ant-1.0.9.jar -C ${classes.dir}/ant ." /> |
80 | + </exec> |
81 | + </target> |
82 | + |
83 | + <target name="core-jar" depends="compile"> |
84 | + <mkdir dir="${jar.dir}" /> |
85 | + <exec executable="jar"> |
86 | + <arg line="-cf ${jar.dir}/errorprone-1.0.9.jar -C ${classes.dir}/core ." /> |
87 | + </exec> |
88 | + </target> |
89 | + |
90 | + <target name="check-api-jar" depends="check-api-compile"> |
91 | + <mkdir dir="${jar.dir}" /> |
92 | + <exec executable="jar"> |
93 | + <arg line="-cf ${jar.dir}/errorprone-check-api-1.0.9.jar -C ${classes.dir}/check_api ." /> |
94 | + </exec> |
95 | + </target> |
96 | + |
97 | + |
98 | + <target name="jar" depends="annotation-jar,annotations-jar,ant-jar,core-jar,check-api-jar"> |
99 | + </target> |
100 | +</project> |
101 | -- |
102 | 2.12.2 |
103 | |
104 |