|
1 | 1 | <project name="asmack" default="compile" basedir=".">
|
2 | 2 |
|
3 |
| -<property file="local.properties" /> |
4 | 3 | <property name="jar.suffix" value="" />
|
5 | 4 | <property name="build.all" value="false" />
|
| 5 | +<property file="local.properties" /> |
6 | 6 |
|
7 |
| -<condition property="build-1.1"> |
8 |
| - <available file="${sdk-location}/platforms/android-1.1/android.jar" /> |
9 |
| -</condition> |
10 |
| - |
11 |
| -<condition property="build-1.5"> |
12 |
| - <and> |
13 |
| - <istrue value="${build.all}" /> |
14 |
| - <available file="${sdk-location}/platforms/android-1.5/android.jar" /> |
15 |
| - </and> |
| 7 | +<condition property="build-4"> |
| 8 | + <available file="${sdk-location}/platforms/android-4/android.jar" /> |
16 | 9 | </condition>
|
17 | 10 |
|
18 |
| -<condition property="build-1.6"> |
19 |
| - <and> |
20 |
| - <istrue value="${build.all}" /> |
21 |
| - <available file="${sdk-location}/platforms/android-1.6/android.jar" /> |
22 |
| - </and> |
| 11 | +<condition property="build-5"> |
| 12 | + <available file="${sdk-location}/platforms/android-5/android.jar" /> |
23 | 13 | </condition>
|
24 | 14 |
|
25 |
| -<condition property="build-2.0"> |
26 |
| - <and> |
27 |
| - <istrue value="${build.all}" /> |
28 |
| - <available file="${sdk-location}/platforms/android-2.0/android.jar" /> |
29 |
| - </and> |
| 15 | +<condition property="build-6"> |
| 16 | + <available file="${sdk-location}/platforms/android-6/android.jar" /> |
30 | 17 | </condition>
|
31 | 18 |
|
32 |
| -<condition property="build-2.0.1"> |
33 |
| - <and> |
34 |
| - <istrue value="${build.all}" /> |
35 |
| - <available file="${sdk-location}/platforms/android-2.0.1/android.jar" /> |
36 |
| - </and> |
| 19 | +<condition property="build-7"> |
| 20 | + <available file="${sdk-location}/platforms/android-7/android.jar" /> |
37 | 21 | </condition>
|
38 | 22 |
|
39 | 23 | <target name="compile-jse" description="Compile for java se">
|
|
65 | 49 | />
|
66 | 50 | </target>
|
67 | 51 |
|
68 |
| -<target name="compile-a201" description="Compile for android 2.0.1" if="build-2.0.1"> |
69 |
| - <delete dir="build/classes" failonerror="false" /> |
70 |
| - <mkdir dir="build/classes" /> |
71 |
| - <mkdir dir="build/classes/trunk" /> |
72 |
| - <javac |
73 |
| - target="1.5" |
74 |
| - srcdir="build/src/trunk" |
75 |
| - destdir="build/classes/trunk" |
76 |
| - classpath="lib/xmlpull_1_1_3_4c.jar" |
77 |
| - bootclasspath="${sdk-location}/platforms/android-2.0.1/android.jar" |
78 |
| - debug="true" |
79 |
| - debuglevel="source,lines" |
80 |
| - /> |
81 |
| - <copy todir="build/classes/trunk"><fileset dir="build/src/trunk" includes="META-INF/**" /></copy> |
82 |
| - <jar |
83 |
| - basedir="build/classes/trunk" |
84 |
| - destfile="build/asmack-android-2.0.1${jar.suffix}.jar" |
85 |
| - filesonly="true" |
86 |
| - level="9" |
87 |
| - /> |
88 |
| - <zip |
89 |
| - basedir="build/src/trunk" |
90 |
| - destfile="build/asmack-android-2.0.1-source${jar.suffix}.zip" |
91 |
| - filesonly="true" |
92 |
| - level="9" |
93 |
| - /> |
94 |
| -</target> |
95 |
| - |
96 |
| -<target name="compile-a20" description="Compile for android 2.0" if="build-2.0"> |
| 52 | +<target name="compile-a7" description="Compile for android API level 7" if="build-7"> |
97 | 53 | <delete dir="build/classes" failonerror="false" />
|
98 | 54 | <mkdir dir="build/classes" />
|
99 | 55 | <mkdir dir="build/classes/trunk" />
|
|
102 | 58 | srcdir="build/src/trunk"
|
103 | 59 | destdir="build/classes/trunk"
|
104 | 60 | classpath="lib/xmlpull_1_1_3_4c.jar"
|
105 |
| - bootclasspath="${sdk-location}/platforms/android-2.0/android.jar" |
| 61 | + bootclasspath="${sdk-location}/platforms/android-7/android.jar" |
106 | 62 | debug="true"
|
107 | 63 | debuglevel="source,lines"
|
108 | 64 | />
|
109 | 65 | <copy todir="build/classes/trunk"><fileset dir="build/src/trunk" includes="META-INF/**" /></copy>
|
110 | 66 | <jar
|
111 | 67 | basedir="build/classes/trunk"
|
112 |
| - destfile="build/asmack-android-2.0${jar.suffix}.jar" |
| 68 | + destfile="build/asmack-android-7${jar.suffix}.jar" |
113 | 69 | filesonly="true"
|
114 | 70 | level="9"
|
115 | 71 | />
|
116 | 72 | <zip
|
117 | 73 | basedir="build/src/trunk"
|
118 |
| - destfile="build/asmack-android-2.0-source${jar.suffix}.zip" |
| 74 | + destfile="build/asmack-android-7-source${jar.suffix}.zip" |
119 | 75 | filesonly="true"
|
120 | 76 | level="9"
|
121 | 77 | />
|
122 | 78 | </target>
|
123 | 79 |
|
124 |
| -<target name="compile-a16" description="Compile for android 1.6" if="build-1.6"> |
| 80 | +<target name="compile-a6" description="Compile for android API level 6" if="build-6"> |
125 | 81 | <delete dir="build/classes" failonerror="false" />
|
126 | 82 | <mkdir dir="build/classes" />
|
127 | 83 | <mkdir dir="build/classes/trunk" />
|
|
130 | 86 | srcdir="build/src/trunk"
|
131 | 87 | destdir="build/classes/trunk"
|
132 | 88 | classpath="lib/xmlpull_1_1_3_4c.jar"
|
133 |
| - bootclasspath="${sdk-location}/platforms/android-1.6/android.jar" |
| 89 | + bootclasspath="${sdk-location}/platforms/android-6/android.jar" |
134 | 90 | debug="true"
|
135 | 91 | debuglevel="source,lines"
|
136 | 92 | />
|
137 | 93 | <copy todir="build/classes/trunk"><fileset dir="build/src/trunk" includes="META-INF/**" /></copy>
|
138 | 94 | <jar
|
139 | 95 | basedir="build/classes/trunk"
|
140 |
| - destfile="build/asmack-android-1.6${jar.suffix}.jar" |
| 96 | + destfile="build/asmack-android-6${jar.suffix}.jar" |
141 | 97 | filesonly="true"
|
142 | 98 | level="9"
|
143 | 99 | />
|
144 | 100 | <zip
|
145 | 101 | basedir="build/src/trunk"
|
146 |
| - destfile="build/asmack-android-1.6-source${jar.suffix}.zip" |
| 102 | + destfile="build/asmack-android-6-source${jar.suffix}.zip" |
147 | 103 | filesonly="true"
|
148 | 104 | level="9"
|
149 | 105 | />
|
150 | 106 | </target>
|
151 | 107 |
|
152 |
| -<target name="compile-a15" description="Compile for android 1.5" if="build-1.5"> |
| 108 | +<target name="compile-a5" description="Compile for android API level 5" if="build-5"> |
153 | 109 | <delete dir="build/classes" failonerror="false" />
|
154 | 110 | <mkdir dir="build/classes" />
|
155 | 111 | <mkdir dir="build/classes/trunk" />
|
|
158 | 114 | srcdir="build/src/trunk"
|
159 | 115 | destdir="build/classes/trunk"
|
160 | 116 | classpath="lib/xmlpull_1_1_3_4c.jar"
|
161 |
| - bootclasspath="${sdk-location}/platforms/android-1.5/android.jar" |
| 117 | + bootclasspath="${sdk-location}/platforms/android-5/android.jar" |
162 | 118 | debug="true"
|
163 | 119 | debuglevel="source,lines"
|
164 | 120 | />
|
165 | 121 | <copy todir="build/classes/trunk"><fileset dir="build/src/trunk" includes="META-INF/**" /></copy>
|
166 | 122 | <jar
|
167 | 123 | basedir="build/classes/trunk"
|
168 |
| - destfile="build/asmack-android-1.5${jar.suffix}.jar" |
| 124 | + destfile="build/asmack-android-5${jar.suffix}.jar" |
169 | 125 | filesonly="true"
|
170 | 126 | level="9"
|
171 | 127 | />
|
172 | 128 | <zip
|
173 | 129 | basedir="build/src/trunk"
|
174 |
| - destfile="build/asmack-android-1.5-source${jar.suffix}.zip" |
| 130 | + destfile="build/asmack-android-5-source${jar.suffix}.zip" |
175 | 131 | filesonly="true"
|
176 | 132 | level="9"
|
177 | 133 | />
|
178 | 134 | </target>
|
179 | 135 |
|
180 |
| -<target name="compile-a11" description="Compile for android 1.1" if="build-1.1"> |
| 136 | +<target name="compile-a4" description="Compile for android API level 4" if="build-4"> |
181 | 137 | <delete dir="build/classes" failonerror="false" />
|
182 | 138 | <mkdir dir="build/classes" />
|
183 | 139 | <mkdir dir="build/classes/trunk" />
|
|
186 | 142 | srcdir="build/src/trunk"
|
187 | 143 | destdir="build/classes/trunk"
|
188 | 144 | classpath="lib/xmlpull_1_1_3_4c.jar"
|
189 |
| - bootclasspath="${sdk-location}/platforms/android-1.1/android.jar" |
| 145 | + bootclasspath="${sdk-location}/platforms/android-4/android.jar" |
190 | 146 | debug="true"
|
191 | 147 | debuglevel="source,lines"
|
192 | 148 | />
|
193 | 149 | <copy todir="build/classes/trunk"><fileset dir="build/src/trunk" includes="META-INF/**" /></copy>
|
194 | 150 | <jar
|
195 | 151 | basedir="build/classes/trunk"
|
196 |
| - destfile="build/asmack-android-1.1${jar.suffix}.jar" |
| 152 | + destfile="build/asmack-android-4${jar.suffix}.jar" |
197 | 153 | filesonly="true"
|
198 | 154 | level="9"
|
199 | 155 | />
|
200 | 156 | <zip
|
201 | 157 | basedir="build/src/trunk"
|
202 |
| - destfile="build/asmack-android-1.1-source${jar.suffix}.zip" |
| 158 | + destfile="build/asmack-android-4-source${jar.suffix}.zip" |
203 | 159 | filesonly="true"
|
204 | 160 | level="9"
|
205 | 161 | />
|
|
208 | 164 | <target
|
209 | 165 | name="compile"
|
210 | 166 | description="Compile for all targets"
|
211 |
| - depends="compile-jse,compile-a201,compile-a20,compile-a16,compile-a15,compile-a11" |
| 167 | + depends="compile-jse,compile-a7,compile-a6,compile-a5,compile-a4" |
212 | 168 | />
|
213 | 169 |
|
214 | 170 | </project>
|
|
0 commit comments