1 |
commit: 916cb599804839aa12f2cb1d54d788f9e1e2c369 |
2 |
Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 30 23:12:55 2015 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 30 23:12:55 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=916cb599 |
7 |
|
8 |
dev-java/httpcomponents-core: Clean up old xml files. |
9 |
|
10 |
Package-Manager: portage-2.2.18 |
11 |
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org> |
12 |
|
13 |
.../files/httpcomponents-core-4.2.4-build.xml | 74 ----- |
14 |
.../httpcomponents-core-4.2.4-httpcore-build.xml | 281 ------------------- |
15 |
...ttpcomponents-core-4.2.4-httpcore-nio-build.xml | 307 --------------------- |
16 |
3 files changed, 662 deletions(-) |
17 |
|
18 |
diff --git a/dev-java/httpcomponents-core/files/httpcomponents-core-4.2.4-build.xml b/dev-java/httpcomponents-core/files/httpcomponents-core-4.2.4-build.xml |
19 |
deleted file mode 100644 |
20 |
index 1ebbeed..0000000 |
21 |
--- a/dev-java/httpcomponents-core/files/httpcomponents-core-4.2.4-build.xml |
22 |
+++ /dev/null |
23 |
@@ -1,74 +0,0 @@ |
24 |
-<?xml version="1.0" encoding="UTF-8"?> |
25 |
- |
26 |
-<!-- ====================================================================== --> |
27 |
-<!-- Ant build file (http://ant.apache.org/) for Ant 1.6.2 or above. --> |
28 |
-<!-- ====================================================================== --> |
29 |
- |
30 |
-<!-- ====================================================================== --> |
31 |
-<!-- ===================== - DO NOT EDIT THIS FILE! - ===================== --> |
32 |
-<!-- ====================================================================== --> |
33 |
-<!-- --> |
34 |
-<!-- Any modifications will be overwritten. --> |
35 |
-<!-- --> |
36 |
-<!-- Generated by Maven Ant Plugin on 6/14/13 8:39 AM --> |
37 |
-<!-- See: http://maven.apache.org/plugins/maven-ant-plugin/ --> |
38 |
-<!-- --> |
39 |
-<!-- ====================================================================== --> |
40 |
- |
41 |
-<project name="httpcomponents-core-from-maven" default="package" basedir="."> |
42 |
- |
43 |
- <!-- ====================================================================== --> |
44 |
- <!-- Cleaning up target --> |
45 |
- <!-- ====================================================================== --> |
46 |
- |
47 |
- <target name="clean" description="Clean the output directory"> |
48 |
- <ant antfile="build.xml" dir="httpcore" target="clean"/> |
49 |
- <ant antfile="build.xml" dir="httpcore-nio" target="clean"/> |
50 |
- </target> |
51 |
- |
52 |
- <!-- ====================================================================== --> |
53 |
- <!-- Compilation target --> |
54 |
- <!-- ====================================================================== --> |
55 |
- |
56 |
- <target name="compile" description="Compile the code"> |
57 |
- <ant antfile="build.xml" dir="httpcore" target="compile"/> |
58 |
- <ant antfile="build.xml" dir="httpcore-nio" target="compile"/> |
59 |
- </target> |
60 |
- |
61 |
- <!-- ====================================================================== --> |
62 |
- <!-- Test-compilation target --> |
63 |
- <!-- ====================================================================== --> |
64 |
- |
65 |
- <target name="compile-tests" description="Compile the test code"> |
66 |
- <ant antfile="build.xml" dir="httpcore" target="compile-tests"/> |
67 |
- <ant antfile="build.xml" dir="httpcore-nio" target="compile-tests"/> |
68 |
- </target> |
69 |
- |
70 |
- <!-- ====================================================================== --> |
71 |
- <!-- Run all tests --> |
72 |
- <!-- ====================================================================== --> |
73 |
- |
74 |
- <target name="test" description="Run the test cases"> |
75 |
- <ant antfile="build.xml" dir="httpcore" target="test"/> |
76 |
- <ant antfile="build.xml" dir="httpcore-nio" target="test"/> |
77 |
- </target> |
78 |
- |
79 |
- <!-- ====================================================================== --> |
80 |
- <!-- Javadoc target --> |
81 |
- <!-- ====================================================================== --> |
82 |
- |
83 |
- <target name="javadoc" description="Generates the Javadoc of the application"> |
84 |
- <ant antfile="build.xml" dir="httpcore" target="javadoc"/> |
85 |
- <ant antfile="build.xml" dir="httpcore-nio" target="javadoc"/> |
86 |
- </target> |
87 |
- |
88 |
- <!-- ====================================================================== --> |
89 |
- <!-- Package target --> |
90 |
- <!-- ====================================================================== --> |
91 |
- |
92 |
- <target name="package" description="Package the application"> |
93 |
- <ant antfile="build.xml" dir="httpcore" target="package"/> |
94 |
- <ant antfile="build.xml" dir="httpcore-nio" target="package"/> |
95 |
- </target> |
96 |
- |
97 |
-</project> |
98 |
|
99 |
diff --git a/dev-java/httpcomponents-core/files/httpcomponents-core-4.2.4-httpcore-build.xml b/dev-java/httpcomponents-core/files/httpcomponents-core-4.2.4-httpcore-build.xml |
100 |
deleted file mode 100644 |
101 |
index 7f97b4d..0000000 |
102 |
--- a/dev-java/httpcomponents-core/files/httpcomponents-core-4.2.4-httpcore-build.xml |
103 |
+++ /dev/null |
104 |
@@ -1,281 +0,0 @@ |
105 |
-<?xml version="1.0" encoding="UTF-8"?> |
106 |
- |
107 |
-<!-- ====================================================================== --> |
108 |
-<!-- Ant build file (http://ant.apache.org/) for Ant 1.6.2 or above. --> |
109 |
-<!-- ====================================================================== --> |
110 |
- |
111 |
-<!-- ====================================================================== --> |
112 |
-<!-- ===================== - DO NOT EDIT THIS FILE! - ===================== --> |
113 |
-<!-- ====================================================================== --> |
114 |
-<!-- --> |
115 |
-<!-- Any modifications will be overwritten. --> |
116 |
-<!-- --> |
117 |
-<!-- Generated by Maven Ant Plugin on 6/14/13 8:39 AM --> |
118 |
-<!-- See: http://maven.apache.org/plugins/maven-ant-plugin/ --> |
119 |
-<!-- --> |
120 |
-<!-- ====================================================================== --> |
121 |
- |
122 |
-<project name="httpcore-from-maven" default="package" basedir="."> |
123 |
- |
124 |
- <!-- ====================================================================== --> |
125 |
- <!-- Build environment properties --> |
126 |
- <!-- ====================================================================== --> |
127 |
- |
128 |
- <property file="${user.home}/.m2/maven.properties"/> |
129 |
- <property file="maven-build.properties"/> |
130 |
- |
131 |
- <property name="maven.build.finalName" value="httpcore-4.2.4"/> |
132 |
- <property name="maven.build.dir" value="target"/> |
133 |
- <property name="maven.build.outputDir" value="${maven.build.dir}/classes"/> |
134 |
- <property name="maven.build.srcDir.0" value="src/main/java"/> |
135 |
- <property name="maven.build.resourceDir.0" value="src/main/resources"/> |
136 |
- <property name="maven.build.testOutputDir" value="${maven.build.dir}/test-classes"/> |
137 |
- <property name="maven.build.testDir.0" value="src/test/java"/> |
138 |
- <property name="maven.build.testResourceDir.0" value="src/test/resources"/> |
139 |
- <property name="maven.test.reports" value="${maven.build.dir}/test-reports"/> |
140 |
- <property name="maven.reporting.outputDirectory" value="${maven.build.dir}/site"/> |
141 |
- |
142 |
- <property name="maven.repo.local" value="${user.home}/.m2/repository"/> |
143 |
- <property name="maven.settings.offline" value="false"/> |
144 |
- <property name="maven.settings.interactiveMode" value="true"/> |
145 |
- |
146 |
- <!-- ====================================================================== --> |
147 |
- <!-- Defining classpaths --> |
148 |
- <!-- ====================================================================== --> |
149 |
- |
150 |
- <path id="build.classpath"/> |
151 |
- <path id="build.test.classpath"> |
152 |
- <pathelement location="${maven.repo.local}/junit/junit/4.9/junit-4.9.jar"/> |
153 |
- <pathelement location="${maven.repo.local}/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar"/> |
154 |
- <pathelement location="${maven.repo.local}/org/mockito/mockito-core/1.8.5/mockito-core-1.8.5.jar"/> |
155 |
- <pathelement location="${maven.repo.local}/org/objenesis/objenesis/1.0/objenesis-1.0.jar"/> |
156 |
- </path> |
157 |
- |
158 |
- <!-- ====================================================================== --> |
159 |
- <!-- Cleaning up target --> |
160 |
- <!-- ====================================================================== --> |
161 |
- |
162 |
- <target name="clean" description="Clean the output directory"> |
163 |
- <delete dir="${maven.build.dir}"/> |
164 |
- </target> |
165 |
- |
166 |
- <!-- ====================================================================== --> |
167 |
- <!-- Compilation target --> |
168 |
- <!-- ====================================================================== --> |
169 |
- |
170 |
- <target name="compile" depends="get-deps" description="Compile the code"> |
171 |
- <mkdir dir="${maven.build.outputDir}"/> |
172 |
- <javac destdir="${maven.build.outputDir}" |
173 |
- nowarn="false" |
174 |
- debug="true" |
175 |
- optimize="true" |
176 |
- deprecation="true" |
177 |
- target="1.5" |
178 |
- verbose="false" |
179 |
- fork="false" |
180 |
- source="1.5"> |
181 |
- <src> |
182 |
- <pathelement location="${maven.build.srcDir.0}"/> |
183 |
- </src> |
184 |
- <classpath refid="build.classpath"/> |
185 |
- </javac> |
186 |
- <copy todir="${maven.build.outputDir}"> |
187 |
- <fileset dir="${maven.build.resourceDir.0}"> |
188 |
- <include name="**/*.properties"/> |
189 |
- </fileset> |
190 |
- </copy> |
191 |
- </target> |
192 |
- |
193 |
- <!-- ====================================================================== --> |
194 |
- <!-- Test-compilation target --> |
195 |
- <!-- ====================================================================== --> |
196 |
- |
197 |
- <target name="compile-tests" |
198 |
- depends="compile" |
199 |
- description="Compile the test code" |
200 |
- unless="maven.test.skip"> |
201 |
- <mkdir dir="${maven.build.testOutputDir}"/> |
202 |
- <javac destdir="${maven.build.testOutputDir}" |
203 |
- nowarn="false" |
204 |
- debug="true" |
205 |
- optimize="true" |
206 |
- deprecation="true" |
207 |
- target="1.5" |
208 |
- verbose="false" |
209 |
- fork="false" |
210 |
- source="1.5"> |
211 |
- <src> |
212 |
- <pathelement location="${maven.build.testDir.0}"/> |
213 |
- </src> |
214 |
- <classpath> |
215 |
- <path refid="build.test.classpath"/> |
216 |
- <pathelement location="${maven.build.outputDir}"/> |
217 |
- </classpath> |
218 |
- </javac> |
219 |
- </target> |
220 |
- |
221 |
- <!-- ====================================================================== --> |
222 |
- <!-- Run all tests --> |
223 |
- <!-- ====================================================================== --> |
224 |
- |
225 |
- <target name="test" |
226 |
- depends="compile-tests, junit-missing" |
227 |
- unless="junit.skipped" |
228 |
- description="Run the test cases"> |
229 |
- <mkdir dir="${maven.test.reports}"/> |
230 |
- <junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir="."> |
231 |
- <sysproperty key="basedir" value="."/> |
232 |
- <formatter type="xml"/> |
233 |
- <formatter type="plain" usefile="false"/> |
234 |
- <classpath> |
235 |
- <path refid="build.test.classpath"/> |
236 |
- <pathelement location="${maven.build.outputDir}"/> |
237 |
- <pathelement location="${maven.build.testOutputDir}"/> |
238 |
- </classpath> |
239 |
- <batchtest todir="${maven.test.reports}" unless="test"> |
240 |
- <fileset dir="${maven.build.testDir.0}"> |
241 |
- <include name="**/Test*.java"/> |
242 |
- <include name="**/*Test.java"/> |
243 |
- <include name="**/*TestCase.java"/> |
244 |
- <exclude name="**/*Abstract*Test.java"/> |
245 |
- </fileset> |
246 |
- </batchtest> |
247 |
- <batchtest todir="${maven.test.reports}" if="test"> |
248 |
- <fileset dir="${maven.build.testDir.0}"> |
249 |
- <include name="**/${test}.java"/> |
250 |
- <exclude name="**/*Abstract*Test.java"/> |
251 |
- </fileset> |
252 |
- </batchtest> |
253 |
- </junit> |
254 |
- </target> |
255 |
- |
256 |
- <target name="test-junit-present"> |
257 |
- <available classname="junit.framework.Test" property="junit.present"/> |
258 |
- </target> |
259 |
- |
260 |
- <target name="test-junit-status" |
261 |
- depends="test-junit-present"> |
262 |
- <condition property="junit.missing"> |
263 |
- <and> |
264 |
- <isfalse value="${junit.present}"/> |
265 |
- <isfalse value="${maven.test.skip}"/> |
266 |
- </and> |
267 |
- </condition> |
268 |
- <condition property="junit.skipped"> |
269 |
- <or> |
270 |
- <isfalse value="${junit.present}"/> |
271 |
- <istrue value="${maven.test.skip}"/> |
272 |
- </or> |
273 |
- </condition> |
274 |
- </target> |
275 |
- |
276 |
- <target name="junit-missing" |
277 |
- depends="test-junit-status" |
278 |
- if="junit.missing"> |
279 |
- <echo>=================================== WARNING ===================================</echo> |
280 |
- <echo> JUnit is not present in your $ANT_HOME/lib directory. Tests not executed.</echo> |
281 |
- <echo>===============================================================================</echo> |
282 |
- </target> |
283 |
- |
284 |
- <!-- ====================================================================== --> |
285 |
- <!-- Javadoc target --> |
286 |
- <!-- ====================================================================== --> |
287 |
- |
288 |
- <target name="javadoc" description="Generates the Javadoc of the application"> |
289 |
- <javadoc sourcepath="${maven.build.srcDir.0}" |
290 |
- packagenames="*" |
291 |
- destdir="${maven.reporting.outputDirectory}/apidocs" |
292 |
- access="protected" |
293 |
- old="false" |
294 |
- verbose="false" |
295 |
- version="true" |
296 |
- use="true" |
297 |
- author="true" |
298 |
- splitindex="false" |
299 |
- nodeprecated="false" |
300 |
- nodeprecatedlist="false" |
301 |
- notree="false" |
302 |
- noindex="false" |
303 |
- nohelp="false" |
304 |
- nonavbar="false" |
305 |
- serialwarn="false" |
306 |
- charset="ISO-8859-1" |
307 |
- source="1.5" |
308 |
- linksource="false" |
309 |
- breakiterator="false"> |
310 |
- <link href="http://download.oracle.com/javase/1.5.0/docs/api/"/> |
311 |
- </javadoc> |
312 |
- </target> |
313 |
- |
314 |
- <!-- ====================================================================== --> |
315 |
- <!-- Package target --> |
316 |
- <!-- ====================================================================== --> |
317 |
- |
318 |
- <target name="package" depends="compile,test" description="Package the application"> |
319 |
- <jar jarfile="${maven.build.dir}/${maven.build.finalName}.jar" |
320 |
- compress="true" |
321 |
- index="false" |
322 |
- basedir="${maven.build.outputDir}" |
323 |
- excludes="**/package.html"/> |
324 |
- </target> |
325 |
- |
326 |
- <!-- ====================================================================== --> |
327 |
- <!-- A dummy target for the package named after the type it creates --> |
328 |
- <!-- ====================================================================== --> |
329 |
- |
330 |
- <target name="jar" depends="package" description="Builds the jar for the application"/> |
331 |
- |
332 |
- <!-- ====================================================================== --> |
333 |
- <!-- Download dependencies target --> |
334 |
- <!-- ====================================================================== --> |
335 |
- |
336 |
- <target name="test-offline"> |
337 |
- <condition property="maven.mode.offline"> |
338 |
- <equals arg1="${maven.settings.offline}" arg2="true"/> |
339 |
- </condition> |
340 |
- </target> |
341 |
- |
342 |
- <target name="get-deps" |
343 |
- depends="test-offline" |
344 |
- description="Download all dependencies" |
345 |
- unless="maven.mode.offline"> |
346 |
- <mkdir dir="${maven.repo.local}"/> |
347 |
- <mkdir dir="${maven.repo.local}/junit/junit/4.9"/> |
348 |
- <get src="http://repository.apache.org/snapshots/junit/junit/4.9/junit-4.9.jar" |
349 |
- dest="${maven.repo.local}/junit/junit/4.9/junit-4.9.jar" |
350 |
- usetimestamp="false" |
351 |
- ignoreerrors="true"/> |
352 |
- <get src="http://repo.maven.apache.org/maven2/junit/junit/4.9/junit-4.9.jar" |
353 |
- dest="${maven.repo.local}/junit/junit/4.9/junit-4.9.jar" |
354 |
- usetimestamp="false" |
355 |
- ignoreerrors="true"/> |
356 |
- <mkdir dir="${maven.repo.local}/org/hamcrest/hamcrest-core/1.1"/> |
357 |
- <get src="http://repository.apache.org/snapshots/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar" |
358 |
- dest="${maven.repo.local}/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar" |
359 |
- usetimestamp="false" |
360 |
- ignoreerrors="true"/> |
361 |
- <get src="http://repo.maven.apache.org/maven2/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar" |
362 |
- dest="${maven.repo.local}/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar" |
363 |
- usetimestamp="false" |
364 |
- ignoreerrors="true"/> |
365 |
- <mkdir dir="${maven.repo.local}/org/mockito/mockito-core/1.8.5"/> |
366 |
- <get src="http://repository.apache.org/snapshots/org/mockito/mockito-core/1.8.5/mockito-core-1.8.5.jar" |
367 |
- dest="${maven.repo.local}/org/mockito/mockito-core/1.8.5/mockito-core-1.8.5.jar" |
368 |
- usetimestamp="false" |
369 |
- ignoreerrors="true"/> |
370 |
- <get src="http://repo.maven.apache.org/maven2/org/mockito/mockito-core/1.8.5/mockito-core-1.8.5.jar" |
371 |
- dest="${maven.repo.local}/org/mockito/mockito-core/1.8.5/mockito-core-1.8.5.jar" |
372 |
- usetimestamp="false" |
373 |
- ignoreerrors="true"/> |
374 |
- <mkdir dir="${maven.repo.local}/org/objenesis/objenesis/1.0"/> |
375 |
- <get src="http://repository.apache.org/snapshots/org/objenesis/objenesis/1.0/objenesis-1.0.jar" |
376 |
- dest="${maven.repo.local}/org/objenesis/objenesis/1.0/objenesis-1.0.jar" |
377 |
- usetimestamp="false" |
378 |
- ignoreerrors="true"/> |
379 |
- <get src="http://repo.maven.apache.org/maven2/org/objenesis/objenesis/1.0/objenesis-1.0.jar" |
380 |
- dest="${maven.repo.local}/org/objenesis/objenesis/1.0/objenesis-1.0.jar" |
381 |
- usetimestamp="false" |
382 |
- ignoreerrors="true"/> |
383 |
- </target> |
384 |
- |
385 |
-</project> |
386 |
|
387 |
diff --git a/dev-java/httpcomponents-core/files/httpcomponents-core-4.2.4-httpcore-nio-build.xml b/dev-java/httpcomponents-core/files/httpcomponents-core-4.2.4-httpcore-nio-build.xml |
388 |
deleted file mode 100644 |
389 |
index df983ac..0000000 |
390 |
--- a/dev-java/httpcomponents-core/files/httpcomponents-core-4.2.4-httpcore-nio-build.xml |
391 |
+++ /dev/null |
392 |
@@ -1,307 +0,0 @@ |
393 |
-<?xml version="1.0" encoding="UTF-8"?> |
394 |
- |
395 |
-<!-- ====================================================================== --> |
396 |
-<!-- Ant build file (http://ant.apache.org/) for Ant 1.6.2 or above. --> |
397 |
-<!-- ====================================================================== --> |
398 |
- |
399 |
-<!-- ====================================================================== --> |
400 |
-<!-- ===================== - DO NOT EDIT THIS FILE! - ===================== --> |
401 |
-<!-- ====================================================================== --> |
402 |
-<!-- --> |
403 |
-<!-- Any modifications will be overwritten. --> |
404 |
-<!-- --> |
405 |
-<!-- Generated by Maven Ant Plugin on 6/14/13 8:39 AM --> |
406 |
-<!-- See: http://maven.apache.org/plugins/maven-ant-plugin/ --> |
407 |
-<!-- --> |
408 |
-<!-- ====================================================================== --> |
409 |
- |
410 |
-<project name="httpcore-nio-from-maven" default="package" basedir="."> |
411 |
- |
412 |
- <!-- ====================================================================== --> |
413 |
- <!-- Build environment properties --> |
414 |
- <!-- ====================================================================== --> |
415 |
- |
416 |
- <property file="${user.home}/.m2/maven.properties"/> |
417 |
- <property file="maven-build.properties"/> |
418 |
- |
419 |
- <property name="maven.build.finalName" value="httpcore-nio-4.2.4"/> |
420 |
- <property name="maven.build.dir" value="target"/> |
421 |
- <property name="maven.build.outputDir" value="${maven.build.dir}/classes"/> |
422 |
- <property name="maven.build.srcDir.0" value="src/main/java"/> |
423 |
- <property name="maven.build.resourceDir.0" value="src/main/resources"/> |
424 |
- <property name="maven.build.testOutputDir" value="${maven.build.dir}/test-classes"/> |
425 |
- <property name="maven.build.testDir.0" value="src/test/java"/> |
426 |
- <property name="maven.build.testResourceDir.0" value="src/test/resources"/> |
427 |
- <property name="maven.test.reports" value="${maven.build.dir}/test-reports"/> |
428 |
- <property name="maven.reporting.outputDirectory" value="${maven.build.dir}/site"/> |
429 |
- |
430 |
- <property name="maven.repo.local" value="${user.home}/.m2/repository"/> |
431 |
- <property name="maven.settings.offline" value="false"/> |
432 |
- <property name="maven.settings.interactiveMode" value="true"/> |
433 |
- |
434 |
- <!-- ====================================================================== --> |
435 |
- <!-- Defining classpaths --> |
436 |
- <!-- ====================================================================== --> |
437 |
- |
438 |
- <path id="build.classpath"> |
439 |
- <pathelement location="${basedir}/../httpcore/target/httpcore-4.2.4.jar"/> |
440 |
- </path> |
441 |
- <path id="build.test.classpath"> |
442 |
- <pathelement location="${maven.repo.local}/org/apache/httpcomponents/httpcore/4.2.4/httpcore-4.2.4.jar"/> |
443 |
- <pathelement location="${maven.repo.local}/junit/junit/4.9/junit-4.9.jar"/> |
444 |
- <pathelement location="${maven.repo.local}/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar"/> |
445 |
- <pathelement location="${maven.repo.local}/org/mockito/mockito-core/1.8.5/mockito-core-1.8.5.jar"/> |
446 |
- <pathelement location="${maven.repo.local}/org/objenesis/objenesis/1.0/objenesis-1.0.jar"/> |
447 |
- <pathelement location="${maven.repo.local}/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar"/> |
448 |
- </path> |
449 |
- |
450 |
- <!-- ====================================================================== --> |
451 |
- <!-- Cleaning up target --> |
452 |
- <!-- ====================================================================== --> |
453 |
- |
454 |
- <target name="clean" description="Clean the output directory"> |
455 |
- <delete dir="${maven.build.dir}"/> |
456 |
- </target> |
457 |
- |
458 |
- <!-- ====================================================================== --> |
459 |
- <!-- Compilation target --> |
460 |
- <!-- ====================================================================== --> |
461 |
- |
462 |
- <target name="compile" depends="get-deps" description="Compile the code"> |
463 |
- <mkdir dir="${maven.build.outputDir}"/> |
464 |
- <javac destdir="${maven.build.outputDir}" |
465 |
- nowarn="false" |
466 |
- debug="true" |
467 |
- optimize="true" |
468 |
- deprecation="true" |
469 |
- target="1.5" |
470 |
- verbose="false" |
471 |
- fork="false" |
472 |
- source="1.5"> |
473 |
- <src> |
474 |
- <pathelement location="${maven.build.srcDir.0}"/> |
475 |
- </src> |
476 |
- <classpath refid="build.classpath"/> |
477 |
- </javac> |
478 |
- <copy todir="${maven.build.outputDir}"> |
479 |
- <fileset dir="${maven.build.resourceDir.0}"> |
480 |
- <include name="**/*.properties"/> |
481 |
- </fileset> |
482 |
- </copy> |
483 |
- </target> |
484 |
- |
485 |
- <!-- ====================================================================== --> |
486 |
- <!-- Test-compilation target --> |
487 |
- <!-- ====================================================================== --> |
488 |
- |
489 |
- <target name="compile-tests" |
490 |
- depends="compile" |
491 |
- description="Compile the test code" |
492 |
- unless="maven.test.skip"> |
493 |
- <mkdir dir="${maven.build.testOutputDir}"/> |
494 |
- <javac destdir="${maven.build.testOutputDir}" |
495 |
- nowarn="false" |
496 |
- debug="true" |
497 |
- optimize="true" |
498 |
- deprecation="true" |
499 |
- target="1.5" |
500 |
- verbose="false" |
501 |
- fork="false" |
502 |
- source="1.5"> |
503 |
- <src> |
504 |
- <pathelement location="${maven.build.testDir.0}"/> |
505 |
- </src> |
506 |
- <classpath> |
507 |
- <path refid="build.test.classpath"/> |
508 |
- <pathelement location="${maven.build.outputDir}"/> |
509 |
- </classpath> |
510 |
- </javac> |
511 |
- <copy todir="${maven.build.testOutputDir}"> |
512 |
- <fileset dir="${maven.build.testResourceDir.0}"/> |
513 |
- </copy> |
514 |
- </target> |
515 |
- |
516 |
- <!-- ====================================================================== --> |
517 |
- <!-- Run all tests --> |
518 |
- <!-- ====================================================================== --> |
519 |
- |
520 |
- <target name="test" |
521 |
- depends="compile-tests, junit-missing" |
522 |
- unless="junit.skipped" |
523 |
- description="Run the test cases"> |
524 |
- <mkdir dir="${maven.test.reports}"/> |
525 |
- <junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir="."> |
526 |
- <sysproperty key="basedir" value="."/> |
527 |
- <formatter type="xml"/> |
528 |
- <formatter type="plain" usefile="false"/> |
529 |
- <classpath> |
530 |
- <path refid="build.test.classpath"/> |
531 |
- <pathelement location="${maven.build.outputDir}"/> |
532 |
- <pathelement location="${maven.build.testOutputDir}"/> |
533 |
- </classpath> |
534 |
- <batchtest todir="${maven.test.reports}" unless="test"> |
535 |
- <fileset dir="${maven.build.testDir.0}"> |
536 |
- <include name="**/Test*.java"/> |
537 |
- <include name="**/*Test.java"/> |
538 |
- <include name="**/*TestCase.java"/> |
539 |
- <exclude name="**/*Abstract*Test.java"/> |
540 |
- </fileset> |
541 |
- </batchtest> |
542 |
- <batchtest todir="${maven.test.reports}" if="test"> |
543 |
- <fileset dir="${maven.build.testDir.0}"> |
544 |
- <include name="**/${test}.java"/> |
545 |
- <exclude name="**/*Abstract*Test.java"/> |
546 |
- </fileset> |
547 |
- </batchtest> |
548 |
- </junit> |
549 |
- </target> |
550 |
- |
551 |
- <target name="test-junit-present"> |
552 |
- <available classname="junit.framework.Test" property="junit.present"/> |
553 |
- </target> |
554 |
- |
555 |
- <target name="test-junit-status" |
556 |
- depends="test-junit-present"> |
557 |
- <condition property="junit.missing"> |
558 |
- <and> |
559 |
- <isfalse value="${junit.present}"/> |
560 |
- <isfalse value="${maven.test.skip}"/> |
561 |
- </and> |
562 |
- </condition> |
563 |
- <condition property="junit.skipped"> |
564 |
- <or> |
565 |
- <isfalse value="${junit.present}"/> |
566 |
- <istrue value="${maven.test.skip}"/> |
567 |
- </or> |
568 |
- </condition> |
569 |
- </target> |
570 |
- |
571 |
- <target name="junit-missing" |
572 |
- depends="test-junit-status" |
573 |
- if="junit.missing"> |
574 |
- <echo>=================================== WARNING ===================================</echo> |
575 |
- <echo> JUnit is not present in your $ANT_HOME/lib directory. Tests not executed.</echo> |
576 |
- <echo>===============================================================================</echo> |
577 |
- </target> |
578 |
- |
579 |
- <!-- ====================================================================== --> |
580 |
- <!-- Javadoc target --> |
581 |
- <!-- ====================================================================== --> |
582 |
- |
583 |
- <target name="javadoc" description="Generates the Javadoc of the application"> |
584 |
- <javadoc sourcepath="${maven.build.srcDir.0}" |
585 |
- packagenames="*" |
586 |
- destdir="${maven.reporting.outputDirectory}/apidocs" |
587 |
- access="protected" |
588 |
- old="false" |
589 |
- verbose="false" |
590 |
- version="true" |
591 |
- use="true" |
592 |
- author="true" |
593 |
- splitindex="false" |
594 |
- nodeprecated="false" |
595 |
- nodeprecatedlist="false" |
596 |
- notree="false" |
597 |
- noindex="false" |
598 |
- nohelp="false" |
599 |
- nonavbar="false" |
600 |
- serialwarn="false" |
601 |
- charset="ISO-8859-1" |
602 |
- source="1.5" |
603 |
- linksource="false" |
604 |
- breakiterator="false"> |
605 |
- <link href="http://download.oracle.com/javase/1.5.0/docs/api/"/> |
606 |
- <link href="http://hc.apache.org/httpcomponents-core-ga/httpcore/apidocs/"/> |
607 |
- </javadoc> |
608 |
- </target> |
609 |
- |
610 |
- <!-- ====================================================================== --> |
611 |
- <!-- Package target --> |
612 |
- <!-- ====================================================================== --> |
613 |
- |
614 |
- <target name="package" depends="compile,test" description="Package the application"> |
615 |
- <jar jarfile="${maven.build.dir}/${maven.build.finalName}.jar" |
616 |
- compress="true" |
617 |
- index="false" |
618 |
- basedir="${maven.build.outputDir}" |
619 |
- excludes="**/package.html"/> |
620 |
- </target> |
621 |
- |
622 |
- <!-- ====================================================================== --> |
623 |
- <!-- A dummy target for the package named after the type it creates --> |
624 |
- <!-- ====================================================================== --> |
625 |
- |
626 |
- <target name="jar" depends="package" description="Builds the jar for the application"/> |
627 |
- |
628 |
- <!-- ====================================================================== --> |
629 |
- <!-- Download dependencies target --> |
630 |
- <!-- ====================================================================== --> |
631 |
- |
632 |
- <target name="test-offline"> |
633 |
- <condition property="maven.mode.offline"> |
634 |
- <equals arg1="${maven.settings.offline}" arg2="true"/> |
635 |
- </condition> |
636 |
- </target> |
637 |
- |
638 |
- <target name="get-deps" |
639 |
- depends="test-offline" |
640 |
- description="Download all dependencies" |
641 |
- unless="maven.mode.offline"> |
642 |
- <mkdir dir="${maven.repo.local}"/> |
643 |
- <mkdir dir="${maven.repo.local}/org/apache/httpcomponents/httpcore/4.2.4"/> |
644 |
- <get src="http://repository.apache.org/snapshots/org/apache/httpcomponents/httpcore/4.2.4/httpcore-4.2.4.jar" |
645 |
- dest="${maven.repo.local}/org/apache/httpcomponents/httpcore/4.2.4/httpcore-4.2.4.jar" |
646 |
- usetimestamp="false" |
647 |
- ignoreerrors="true"/> |
648 |
- <get src="http://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpcore/4.2.4/httpcore-4.2.4.jar" |
649 |
- dest="${maven.repo.local}/org/apache/httpcomponents/httpcore/4.2.4/httpcore-4.2.4.jar" |
650 |
- usetimestamp="false" |
651 |
- ignoreerrors="true"/> |
652 |
- <mkdir dir="${maven.repo.local}/junit/junit/4.9"/> |
653 |
- <get src="http://repository.apache.org/snapshots/junit/junit/4.9/junit-4.9.jar" |
654 |
- dest="${maven.repo.local}/junit/junit/4.9/junit-4.9.jar" |
655 |
- usetimestamp="false" |
656 |
- ignoreerrors="true"/> |
657 |
- <get src="http://repo.maven.apache.org/maven2/junit/junit/4.9/junit-4.9.jar" |
658 |
- dest="${maven.repo.local}/junit/junit/4.9/junit-4.9.jar" |
659 |
- usetimestamp="false" |
660 |
- ignoreerrors="true"/> |
661 |
- <mkdir dir="${maven.repo.local}/org/hamcrest/hamcrest-core/1.1"/> |
662 |
- <get src="http://repository.apache.org/snapshots/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar" |
663 |
- dest="${maven.repo.local}/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar" |
664 |
- usetimestamp="false" |
665 |
- ignoreerrors="true"/> |
666 |
- <get src="http://repo.maven.apache.org/maven2/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar" |
667 |
- dest="${maven.repo.local}/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar" |
668 |
- usetimestamp="false" |
669 |
- ignoreerrors="true"/> |
670 |
- <mkdir dir="${maven.repo.local}/org/mockito/mockito-core/1.8.5"/> |
671 |
- <get src="http://repository.apache.org/snapshots/org/mockito/mockito-core/1.8.5/mockito-core-1.8.5.jar" |
672 |
- dest="${maven.repo.local}/org/mockito/mockito-core/1.8.5/mockito-core-1.8.5.jar" |
673 |
- usetimestamp="false" |
674 |
- ignoreerrors="true"/> |
675 |
- <get src="http://repo.maven.apache.org/maven2/org/mockito/mockito-core/1.8.5/mockito-core-1.8.5.jar" |
676 |
- dest="${maven.repo.local}/org/mockito/mockito-core/1.8.5/mockito-core-1.8.5.jar" |
677 |
- usetimestamp="false" |
678 |
- ignoreerrors="true"/> |
679 |
- <mkdir dir="${maven.repo.local}/org/objenesis/objenesis/1.0"/> |
680 |
- <get src="http://repository.apache.org/snapshots/org/objenesis/objenesis/1.0/objenesis-1.0.jar" |
681 |
- dest="${maven.repo.local}/org/objenesis/objenesis/1.0/objenesis-1.0.jar" |
682 |
- usetimestamp="false" |
683 |
- ignoreerrors="true"/> |
684 |
- <get src="http://repo.maven.apache.org/maven2/org/objenesis/objenesis/1.0/objenesis-1.0.jar" |
685 |
- dest="${maven.repo.local}/org/objenesis/objenesis/1.0/objenesis-1.0.jar" |
686 |
- usetimestamp="false" |
687 |
- ignoreerrors="true"/> |
688 |
- <mkdir dir="${maven.repo.local}/commons-logging/commons-logging/1.1.1"/> |
689 |
- <get src="http://repository.apache.org/snapshots/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar" |
690 |
- dest="${maven.repo.local}/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar" |
691 |
- usetimestamp="false" |
692 |
- ignoreerrors="true"/> |
693 |
- <get src="http://repo.maven.apache.org/maven2/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar" |
694 |
- dest="${maven.repo.local}/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar" |
695 |
- usetimestamp="false" |
696 |
- ignoreerrors="true"/> |
697 |
- </target> |
698 |
- |
699 |
-</project> |