1 |
monsieurp 15/06/24 19:04:38 |
2 |
|
3 |
Added: httpcomponents-client-httpclient-osgi-4.5-build.xml |
4 |
httpcomponents-client-httpclient-4.5-build.xml |
5 |
httpcomponents-client-httpmime-4.5-build.xml |
6 |
httpcomponents-client-httpclient-cache-4.5-build.xml |
7 |
httpcomponents-client-fluent-hc-4.5-build.xml |
8 |
Log: |
9 |
Version bump. Fix bug 552566. |
10 |
|
11 |
Signed-off-by: Patrice Clement <monsieurp@g.o> |
12 |
(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 93491BB8) |
13 |
|
14 |
Revision Changes Path |
15 |
1.1 dev-java/httpcomponents-client/files/httpcomponents-client-httpclient-osgi-4.5-build.xml |
16 |
|
17 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/httpcomponents-client/files/httpcomponents-client-httpclient-osgi-4.5-build.xml?rev=1.1&view=markup |
18 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/httpcomponents-client/files/httpcomponents-client-httpclient-osgi-4.5-build.xml?rev=1.1&content-type=text/plain |
19 |
|
20 |
Index: httpcomponents-client-httpclient-osgi-4.5-build.xml |
21 |
=================================================================== |
22 |
<?xml version="1.0" encoding="UTF-8"?> |
23 |
|
24 |
<!-- ====================================================================== --> |
25 |
<!-- Ant build file (http://ant.apache.org/) for Ant 1.6.2 or above. --> |
26 |
<!-- ====================================================================== --> |
27 |
|
28 |
<!-- ====================================================================== --> |
29 |
<!-- ===================== - DO NOT EDIT THIS FILE! - ===================== --> |
30 |
<!-- ====================================================================== --> |
31 |
<!-- --> |
32 |
<!-- Any modifications will be overwritten. --> |
33 |
<!-- --> |
34 |
<!-- Generated by Maven Ant Plugin on 6/24/15 6:17 PM --> |
35 |
<!-- See: http://maven.apache.org/plugins/maven-ant-plugin/ --> |
36 |
<!-- --> |
37 |
<!-- ====================================================================== --> |
38 |
|
39 |
<project name="httpclient-osgi-from-maven" default="package" basedir="."> |
40 |
|
41 |
<!-- ====================================================================== --> |
42 |
<!-- Build environment properties --> |
43 |
<!-- ====================================================================== --> |
44 |
|
45 |
<property name="maven.build.finalName" value="httpclient-osgi-4.5"/> |
46 |
<property name="maven.build.dir" value="target"/> |
47 |
<property name="maven.build.outputDir" value="${maven.build.dir}/classes"/> |
48 |
<property name="maven.build.srcDir.0" value="src/main/java"/> |
49 |
<property name="maven.build.resourceDir.0" value="src/main/resources"/> |
50 |
<property name="maven.build.testOutputDir" value="${maven.build.dir}/test-classes"/> |
51 |
<property name="maven.build.testDir.0" value="src/test/java"/> |
52 |
<property name="maven.build.testResourceDir.0" value="src/test/resources"/> |
53 |
<property name="maven.test.reports" value="${maven.build.dir}/test-reports"/> |
54 |
<property name="maven.reporting.outputDirectory" value="${maven.build.dir}/site"/> |
55 |
|
56 |
<property name="maven.repo.local" value="${user.home}/.m2/repository"/> |
57 |
<property name="maven.settings.offline" value="false"/> |
58 |
<property name="maven.settings.interactiveMode" value="true"/> |
59 |
|
60 |
<!-- ====================================================================== --> |
61 |
<!-- Defining classpaths --> |
62 |
<!-- ====================================================================== --> |
63 |
|
64 |
<path id="build.classpath"> |
65 |
<pathelement location="${maven.repo.local}/org/apache/httpcomponents/httpclient/4.5/httpclient-4.5.jar"/> |
66 |
<pathelement location="${maven.repo.local}/commons-logging/commons-logging/1.2/commons-logging-1.2.jar"/> |
67 |
<pathelement location="${maven.repo.local}/org/apache/httpcomponents/httpcore/4.4.1/httpcore-4.4.1.jar"/> |
68 |
<pathelement location="${maven.repo.local}/commons-codec/commons-codec/1.9/commons-codec-1.9.jar"/> |
69 |
<pathelement location="${maven.repo.local}/org/apache/httpcomponents/httpmime/4.5/httpmime-4.5.jar"/> |
70 |
<pathelement location="${maven.repo.local}/org/apache/httpcomponents/httpclient-cache/4.5/httpclient-cache-4.5.jar"/> |
71 |
<pathelement location="${maven.repo.local}/org/apache/httpcomponents/fluent-hc/4.5/fluent-hc-4.5.jar"/> |
72 |
<pathelement location="${maven.repo.local}/org/osgi/org.osgi.core/4.2.0/org.osgi.core-4.2.0.jar"/> |
73 |
<pathelement location="${maven.repo.local}/org/osgi/org.osgi.compendium/4.2.0/org.osgi.compendium-4.2.0.jar"/> |
74 |
</path> |
75 |
<path id="build.test.classpath"> |
76 |
<pathelement location="${maven.repo.local}/org/apache/httpcomponents/httpclient/4.5/httpclient-4.5.jar"/> |
77 |
<pathelement location="${maven.repo.local}/commons-logging/commons-logging/1.2/commons-logging-1.2.jar"/> |
78 |
<pathelement location="${maven.repo.local}/org/apache/httpcomponents/httpcore/4.4.1/httpcore-4.4.1.jar"/> |
79 |
<pathelement location="${maven.repo.local}/commons-codec/commons-codec/1.9/commons-codec-1.9.jar"/> |
80 |
<pathelement location="${maven.repo.local}/org/apache/httpcomponents/httpmime/4.5/httpmime-4.5.jar"/> |
81 |
<pathelement location="${maven.repo.local}/org/apache/httpcomponents/httpclient-cache/4.5/httpclient-cache-4.5.jar"/> |
82 |
<pathelement location="${maven.repo.local}/org/apache/httpcomponents/fluent-hc/4.5/fluent-hc-4.5.jar"/> |
83 |
<pathelement location="${maven.repo.local}/org/osgi/org.osgi.core/4.2.0/org.osgi.core-4.2.0.jar"/> |
84 |
<pathelement location="${maven.repo.local}/org/osgi/org.osgi.compendium/4.2.0/org.osgi.compendium-4.2.0.jar"/> |
85 |
<pathelement location="${maven.repo.local}/junit/junit/4.11/junit-4.11.jar"/> |
86 |
<pathelement location="${maven.repo.local}/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar"/> |
87 |
</path> |
88 |
|
89 |
<!-- ====================================================================== --> |
90 |
<!-- Cleaning up target --> |
91 |
<!-- ====================================================================== --> |
92 |
|
93 |
<target name="clean" description="Clean the output directory"> |
94 |
<delete dir="${maven.build.dir}"/> |
95 |
</target> |
96 |
|
97 |
<!-- ====================================================================== --> |
98 |
<!-- Compilation target --> |
99 |
<!-- ====================================================================== --> |
100 |
|
101 |
<target name="compile" description="Compile the code"> |
102 |
<mkdir dir="${maven.build.outputDir}"/> |
103 |
<javac destdir="${maven.build.outputDir}" |
104 |
nowarn="false" |
105 |
debug="true" |
106 |
optimize="false" |
107 |
deprecation="true" |
108 |
target="1.6" |
109 |
verbose="false" |
110 |
fork="false" |
111 |
source="1.6"> |
112 |
<src> |
113 |
<pathelement location="${maven.build.srcDir.0}"/> |
114 |
</src> |
115 |
<classpath refid="build.classpath"/> |
116 |
</javac> |
117 |
<copy todir="${maven.build.outputDir}"> |
118 |
<fileset dir="${maven.build.resourceDir.0}"/> |
119 |
</copy> |
120 |
</target> |
121 |
|
122 |
<!-- ====================================================================== --> |
123 |
<!-- Test-compilation target --> |
124 |
<!-- ====================================================================== --> |
125 |
|
126 |
<target name="compile-tests" |
127 |
depends="compile" |
128 |
description="Compile the test code" |
129 |
unless="maven.test.skip"> |
130 |
<mkdir dir="${maven.build.testOutputDir}"/> |
131 |
<javac destdir="${maven.build.testOutputDir}" |
132 |
nowarn="false" |
133 |
debug="true" |
134 |
optimize="false" |
135 |
deprecation="true" |
136 |
target="1.6" |
137 |
verbose="false" |
138 |
fork="false" |
139 |
source="1.6"> |
140 |
<src> |
141 |
<pathelement location="${maven.build.testDir.0}"/> |
142 |
</src> |
143 |
<classpath> |
144 |
<path refid="build.test.classpath"/> |
145 |
<pathelement location="${maven.build.outputDir}"/> |
146 |
</classpath> |
147 |
</javac> |
148 |
</target> |
149 |
|
150 |
<!-- ====================================================================== --> |
151 |
<!-- Run all tests --> |
152 |
<!-- ====================================================================== --> |
153 |
|
154 |
<target name="test" |
155 |
depends="compile-tests" |
156 |
unless="junit.skipped" |
157 |
description="Run the test cases"> |
158 |
<mkdir dir="${maven.test.reports}"/> |
159 |
<junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir="."> |
160 |
<sysproperty key="basedir" value="."/> |
161 |
<formatter type="xml"/> |
162 |
<formatter type="plain" usefile="false"/> |
163 |
<classpath> |
164 |
<path refid="build.test.classpath"/> |
165 |
<pathelement location="${maven.build.outputDir}"/> |
166 |
<pathelement location="${maven.build.testOutputDir}"/> |
167 |
</classpath> |
168 |
<batchtest todir="${maven.test.reports}" unless="test"> |
169 |
<fileset dir="${maven.build.testDir.0}"> |
170 |
<include name="**/Test*.java"/> |
171 |
<include name="**/*Test.java"/> |
172 |
<include name="**/*TestCase.java"/> |
173 |
<exclude name="**/*Abstract*Test.java"/> |
174 |
</fileset> |
175 |
</batchtest> |
176 |
<batchtest todir="${maven.test.reports}" if="test"> |
177 |
<fileset dir="${maven.build.testDir.0}"> |
178 |
<include name="**/${test}.java"/> |
179 |
<exclude name="**/*Abstract*Test.java"/> |
180 |
</fileset> |
181 |
</batchtest> |
182 |
</junit> |
183 |
</target> |
184 |
|
185 |
<target name="test-junit-present"> |
186 |
<available classname="junit.framework.Test" property="junit.present" classpathref="build.test.classpath"/> |
187 |
</target> |
188 |
|
189 |
<target name="test-junit-status" |
190 |
depends="test-junit-present"> |
191 |
<condition property="junit.missing"> |
192 |
<and> |
193 |
<isfalse value="${junit.present}"/> |
194 |
<isfalse value="${maven.test.skip}"/> |
195 |
</and> |
196 |
</condition> |
197 |
<condition property="junit.skipped"> |
198 |
<or> |
199 |
<isfalse value="${junit.present}"/> |
200 |
<istrue value="${maven.test.skip}"/> |
201 |
</or> |
202 |
</condition> |
203 |
</target> |
204 |
|
205 |
<target name="junit-missing" |
206 |
depends="test-junit-status" |
207 |
if="junit.missing"> |
208 |
<echo>=================================== WARNING ===================================</echo> |
209 |
<echo> JUnit is not present in the test classpath or your $ANT_HOME/lib directory. Tests not executed.</echo> |
210 |
<echo>===============================================================================</echo> |
211 |
</target> |
212 |
|
213 |
<!-- ====================================================================== --> |
214 |
<!-- Javadoc target --> |
215 |
<!-- ====================================================================== --> |
216 |
|
217 |
<target name="javadoc" description="Generates the Javadoc of the application"> |
218 |
<javadoc sourcepath="${maven.build.srcDir.0}" |
219 |
packagenames="*" |
220 |
destdir="${maven.reporting.outputDirectory}/apidocs" |
221 |
access="protected" |
222 |
old="false" |
223 |
verbose="false" |
224 |
version="true" |
225 |
use="true" |
226 |
author="true" |
227 |
splitindex="false" |
228 |
nodeprecated="false" |
229 |
nodeprecatedlist="false" |
230 |
notree="false" |
231 |
noindex="false" |
232 |
nohelp="false" |
233 |
nonavbar="false" |
234 |
serialwarn="false" |
235 |
charset="ISO-8859-1" |
236 |
source="1.6" |
237 |
linksource="false" |
238 |
breakiterator="false"> |
239 |
<link href="http://docs.oracle.com/javase/6/docs/api/"/> |
240 |
<link href="http://hc.apache.org/httpcomponents-core-ga/httpcore/apidocs/"/> |
241 |
</javadoc> |
242 |
</target> |
243 |
|
244 |
<!-- ====================================================================== --> |
245 |
<!-- Package target --> |
246 |
<!-- ====================================================================== --> |
247 |
|
248 |
<target name="package" depends="compile" description="Package the application"> |
249 |
<jar jarfile="${maven.build.dir}/${maven.build.finalName}.jar" |
250 |
compress="true" |
251 |
index="false" |
252 |
basedir="${maven.build.outputDir}" |
253 |
excludes="**/package.html"> |
254 |
<manifest> |
255 |
<attribute name="Main-Class" value="Main"/> |
256 |
</manifest> |
257 |
</jar> |
258 |
</target> |
259 |
|
260 |
<!-- ====================================================================== --> |
261 |
<!-- A dummy target for the package named after the type it creates --> |
262 |
<!-- ====================================================================== --> |
263 |
|
264 |
<target name="jar" depends="package" description="Builds the jar for the application"/> |
265 |
|
266 |
<!-- ====================================================================== --> |
267 |
<!-- Download dependencies target --> |
268 |
<!-- ====================================================================== --> |
269 |
|
270 |
<target name="test-offline"> |
271 |
<condition property="maven.mode.offline"> |
272 |
<equals arg1="${maven.settings.offline}" arg2="true"/> |
273 |
</condition> |
274 |
</target> |
275 |
|
276 |
</project> |
277 |
|
278 |
|
279 |
|
280 |
1.1 dev-java/httpcomponents-client/files/httpcomponents-client-httpclient-4.5-build.xml |
281 |
|
282 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/httpcomponents-client/files/httpcomponents-client-httpclient-4.5-build.xml?rev=1.1&view=markup |
283 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/httpcomponents-client/files/httpcomponents-client-httpclient-4.5-build.xml?rev=1.1&content-type=text/plain |
284 |
|
285 |
Index: httpcomponents-client-httpclient-4.5-build.xml |
286 |
=================================================================== |
287 |
<?xml version="1.0" encoding="UTF-8"?> |
288 |
|
289 |
<!-- ====================================================================== --> |
290 |
<!-- Ant build file (http://ant.apache.org/) for Ant 1.6.2 or above. --> |
291 |
<!-- ====================================================================== --> |
292 |
|
293 |
<!-- ====================================================================== --> |
294 |
<!-- ===================== - DO NOT EDIT THIS FILE! - ===================== --> |
295 |
<!-- ====================================================================== --> |
296 |
<!-- --> |
297 |
<!-- Any modifications will be overwritten. --> |
298 |
<!-- --> |
299 |
<!-- Generated by Maven Ant Plugin on 6/23/15 11:41 PM --> |
300 |
<!-- See: http://maven.apache.org/plugins/maven-ant-plugin/ --> |
301 |
<!-- --> |
302 |
<!-- ====================================================================== --> |
303 |
|
304 |
<project name="httpclient-from-maven" default="package" basedir="."> |
305 |
|
306 |
<!-- ====================================================================== --> |
307 |
<!-- Build environment properties --> |
308 |
<!-- ====================================================================== --> |
309 |
|
310 |
<property name="maven.build.finalName" value="httpclient-4.5"/> |
311 |
<property name="maven.build.dir" value="target"/> |
312 |
<property name="maven.build.outputDir" value="${maven.build.dir}/classes"/> |
313 |
<property name="maven.build.srcDir.0" value="src/main/java"/> |
314 |
<property name="maven.build.resourceDir.0" value="src/main/resources"/> |
315 |
<property name="maven.build.testOutputDir" value="${maven.build.dir}/test-classes"/> |
316 |
<property name="maven.build.testDir.0" value="src/test/java"/> |
317 |
<property name="maven.build.testResourceDir.0" value="src/test/resources"/> |
318 |
<property name="maven.test.reports" value="${maven.build.dir}/test-reports"/> |
319 |
<property name="maven.reporting.outputDirectory" value="${maven.build.dir}/site"/> |
320 |
|
321 |
<property name="maven.repo.local" value="${user.home}/.m2/repository"/> |
322 |
<property name="maven.settings.offline" value="false"/> |
323 |
<property name="maven.settings.interactiveMode" value="true"/> |
324 |
|
325 |
<!-- ====================================================================== --> |
326 |
<!-- Defining classpaths --> |
327 |
<!-- ====================================================================== --> |
328 |
|
329 |
<path id="build.classpath"> |
330 |
<pathelement location="${maven.repo.local}/org/apache/httpcomponents/httpcore/4.4.1/httpcore-4.4.1.jar"/> |
331 |
<pathelement location="${maven.repo.local}/commons-logging/commons-logging/1.2/commons-logging-1.2.jar"/> |
332 |
<pathelement location="${maven.repo.local}/commons-codec/commons-codec/1.9/commons-codec-1.9.jar"/> |
333 |
</path> |
334 |
<path id="build.test.classpath"> |
335 |
<pathelement location="${maven.repo.local}/org/apache/httpcomponents/httpcore/4.4.1/httpcore-4.4.1.jar"/> |
336 |
<pathelement location="${maven.repo.local}/commons-logging/commons-logging/1.2/commons-logging-1.2.jar"/> |
337 |
<pathelement location="${maven.repo.local}/commons-codec/commons-codec/1.9/commons-codec-1.9.jar"/> |
338 |
<pathelement location="${maven.repo.local}/junit/junit/4.11/junit-4.11.jar"/> |
339 |
<pathelement location="${maven.repo.local}/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar"/> |
340 |
<pathelement location="${maven.repo.local}/org/mockito/mockito-core/1.8.5/mockito-core-1.8.5.jar"/> |
341 |
<pathelement location="${maven.repo.local}/org/objenesis/objenesis/1.0/objenesis-1.0.jar"/> |
342 |
</path> |
343 |
|
344 |
<!-- ====================================================================== --> |
345 |
<!-- Cleaning up target --> |
346 |
<!-- ====================================================================== --> |
347 |
|
348 |
<target name="clean" description="Clean the output directory"> |
349 |
<delete dir="${maven.build.dir}"/> |
350 |
</target> |
351 |
|
352 |
<!-- ====================================================================== --> |
353 |
<!-- Compilation target --> |
354 |
<!-- ====================================================================== --> |
355 |
|
356 |
<target name="compile" description="Compile the code"> |
357 |
<mkdir dir="${maven.build.outputDir}"/> |
358 |
<javac destdir="${maven.build.outputDir}" |
359 |
nowarn="false" |
360 |
debug="true" |
361 |
optimize="false" |
362 |
deprecation="true" |
363 |
target="1.6" |
364 |
verbose="false" |
365 |
fork="false" |
366 |
source="1.6"> |
367 |
<src> |
368 |
<pathelement location="${maven.build.srcDir.0}"/> |
369 |
</src> |
370 |
<classpath refid="build.classpath"/> |
371 |
</javac> |
372 |
<copy todir="${maven.build.outputDir}"> |
373 |
<fileset dir="${maven.build.resourceDir.0}"> |
374 |
<include name="**/*.properties"/> |
375 |
</fileset> |
376 |
</copy> |
377 |
</target> |
378 |
|
379 |
<!-- ====================================================================== --> |
380 |
<!-- Test-compilation target --> |
381 |
<!-- ====================================================================== --> |
382 |
|
383 |
<target name="compile-tests" |
384 |
depends="compile" |
385 |
description="Compile the test code" |
386 |
unless="maven.test.skip"> |
387 |
<mkdir dir="${maven.build.testOutputDir}"/> |
388 |
<javac destdir="${maven.build.testOutputDir}" |
389 |
nowarn="false" |
390 |
debug="true" |
391 |
optimize="false" |
392 |
deprecation="true" |
393 |
target="1.6" |
394 |
verbose="false" |
395 |
fork="false" |
396 |
source="1.6"> |
397 |
<src> |
398 |
<pathelement location="${maven.build.testDir.0}"/> |
399 |
</src> |
400 |
<classpath> |
401 |
<path refid="build.test.classpath"/> |
402 |
<pathelement location="${maven.build.outputDir}"/> |
403 |
</classpath> |
404 |
</javac> |
405 |
<copy todir="${maven.build.testOutputDir}"> |
406 |
<fileset dir="${maven.build.testResourceDir.0}"/> |
407 |
</copy> |
408 |
</target> |
409 |
|
410 |
<!-- ====================================================================== --> |
411 |
<!-- Run all tests --> |
412 |
<!-- ====================================================================== --> |
413 |
|
414 |
<target name="test" |
415 |
depends="compile-tests" |
416 |
unless="junit.skipped" |
417 |
description="Run the test cases"> |
418 |
<mkdir dir="${maven.test.reports}"/> |
419 |
<junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir="."> |
420 |
<sysproperty key="basedir" value="."/> |
421 |
<formatter type="xml"/> |
422 |
<formatter type="plain" usefile="false"/> |
423 |
<classpath> |
424 |
<path refid="build.test.classpath"/> |
425 |
<pathelement location="${maven.build.outputDir}"/> |
426 |
<pathelement location="${maven.build.testOutputDir}"/> |
427 |
</classpath> |
428 |
<batchtest todir="${maven.test.reports}" unless="test"> |
429 |
<fileset dir="${maven.build.testDir.0}"> |
430 |
<include name="**/Test*.java"/> |
431 |
<include name="**/*Test.java"/> |
432 |
<include name="**/*TestCase.java"/> |
433 |
<exclude name="**/*Abstract*Test.java"/> |
434 |
</fileset> |
435 |
</batchtest> |
436 |
<batchtest todir="${maven.test.reports}" if="test"> |
437 |
<fileset dir="${maven.build.testDir.0}"> |
438 |
<include name="**/${test}.java"/> |
439 |
<exclude name="**/*Abstract*Test.java"/> |
440 |
</fileset> |
441 |
</batchtest> |
442 |
</junit> |
443 |
</target> |
444 |
|
445 |
<target name="test-junit-present"> |
446 |
<available classname="junit.framework.Test" property="junit.present" classpathref="build.test.classpath"/> |
447 |
</target> |
448 |
|
449 |
<target name="test-junit-status" |
450 |
depends="test-junit-present"> |
451 |
<condition property="junit.missing"> |
452 |
<and> |
453 |
<isfalse value="${junit.present}"/> |
454 |
<isfalse value="${maven.test.skip}"/> |
455 |
</and> |
456 |
</condition> |
457 |
<condition property="junit.skipped"> |
458 |
<or> |
459 |
<isfalse value="${junit.present}"/> |
460 |
<istrue value="${maven.test.skip}"/> |
461 |
</or> |
462 |
</condition> |
463 |
</target> |
464 |
|
465 |
<target name="junit-missing" |
466 |
depends="test-junit-status" |
467 |
if="junit.missing"> |
468 |
<echo>=================================== WARNING ===================================</echo> |
469 |
<echo> JUnit is not present in the test classpath or your $ANT_HOME/lib directory. Tests not executed.</echo> |
470 |
<echo>===============================================================================</echo> |
471 |
</target> |
472 |
|
473 |
<!-- ====================================================================== --> |
474 |
<!-- Javadoc target --> |
475 |
<!-- ====================================================================== --> |
476 |
|
477 |
<target name="javadoc" description="Generates the Javadoc of the application"> |
478 |
<javadoc sourcepath="${maven.build.srcDir.0}" |
479 |
packagenames="*" |
480 |
destdir="${maven.reporting.outputDirectory}/apidocs" |
481 |
access="protected" |
482 |
old="false" |
483 |
verbose="false" |
484 |
version="true" |
485 |
use="true" |
486 |
author="true" |
487 |
splitindex="false" |
488 |
nodeprecated="false" |
489 |
nodeprecatedlist="false" |
490 |
notree="false" |
491 |
noindex="false" |
492 |
nohelp="false" |
493 |
nonavbar="false" |
494 |
serialwarn="false" |
495 |
charset="ISO-8859-1" |
496 |
source="1.6" |
497 |
linksource="false" |
498 |
breakiterator="false"> |
499 |
<link href="http://docs.oracle.com/javase/6/docs/api/"/> |
500 |
<link href="http://hc.apache.org/httpcomponents-core-ga/httpcore/apidocs/"/> |
501 |
</javadoc> |
502 |
</target> |
503 |
|
504 |
<!-- ====================================================================== --> |
505 |
<!-- Package target --> |
506 |
<!-- ====================================================================== --> |
507 |
|
508 |
<target name="package" depends="compile" description="Package the application"> |
509 |
<jar jarfile="${maven.build.dir}/${maven.build.finalName}.jar" |
510 |
compress="true" |
511 |
index="false" |
512 |
basedir="${maven.build.outputDir}" |
513 |
excludes="**/package.html"> |
514 |
<manifest> |
515 |
<attribute name="Main-Class" value="Main"/> |
516 |
</manifest> |
517 |
</jar> |
518 |
</target> |
519 |
|
520 |
<!-- ====================================================================== --> |
521 |
<!-- A dummy target for the package named after the type it creates --> |
522 |
<!-- ====================================================================== --> |
523 |
|
524 |
<target name="jar" depends="package" description="Builds the jar for the application"/> |
525 |
|
526 |
<!-- ====================================================================== --> |
527 |
<!-- Download dependencies target --> |
528 |
<!-- ====================================================================== --> |
529 |
|
530 |
<target name="test-offline"> |
531 |
<condition property="maven.mode.offline"> |
532 |
<equals arg1="${maven.settings.offline}" arg2="true"/> |
533 |
</condition> |
534 |
</target> |
535 |
|
536 |
</project> |
537 |
|
538 |
|
539 |
|
540 |
1.1 dev-java/httpcomponents-client/files/httpcomponents-client-httpmime-4.5-build.xml |
541 |
|
542 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/httpcomponents-client/files/httpcomponents-client-httpmime-4.5-build.xml?rev=1.1&view=markup |
543 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/httpcomponents-client/files/httpcomponents-client-httpmime-4.5-build.xml?rev=1.1&content-type=text/plain |
544 |
|
545 |
Index: httpcomponents-client-httpmime-4.5-build.xml |
546 |
=================================================================== |
547 |
<?xml version="1.0" encoding="UTF-8"?> |
548 |
|
549 |
<!-- ====================================================================== --> |
550 |
<!-- Ant build file (http://ant.apache.org/) for Ant 1.6.2 or above. --> |
551 |
<!-- ====================================================================== --> |
552 |
|
553 |
<!-- ====================================================================== --> |
554 |
<!-- ===================== - DO NOT EDIT THIS FILE! - ===================== --> |
555 |
<!-- ====================================================================== --> |
556 |
<!-- --> |
557 |
<!-- Any modifications will be overwritten. --> |
558 |
<!-- --> |
559 |
<!-- Generated by Maven Ant Plugin on 6/24/15 5:01 PM --> |
560 |
<!-- See: http://maven.apache.org/plugins/maven-ant-plugin/ --> |
561 |
<!-- --> |
562 |
<!-- ====================================================================== --> |
563 |
|
564 |
<project name="httpmime-from-maven" default="package" basedir="."> |
565 |
|
566 |
<!-- ====================================================================== --> |
567 |
<!-- Build environment properties --> |
568 |
<!-- ====================================================================== --> |
569 |
|
570 |
<property name="maven.build.finalName" value="httpmime-4.5"/> |
571 |
<property name="maven.build.dir" value="target"/> |
572 |
<property name="maven.build.outputDir" value="${maven.build.dir}/classes"/> |
573 |
<property name="maven.build.srcDir.0" value="src/main/java"/> |
574 |
<property name="maven.build.resourceDir.0" value="src/main/resources"/> |
575 |
<property name="maven.build.testOutputDir" value="${maven.build.dir}/test-classes"/> |
576 |
<property name="maven.build.testDir.0" value="src/test/java"/> |
577 |
<property name="maven.build.testResourceDir.0" value="src/test/resources"/> |
578 |
<property name="maven.test.reports" value="${maven.build.dir}/test-reports"/> |
579 |
<property name="maven.reporting.outputDirectory" value="${maven.build.dir}/site"/> |
580 |
|
581 |
<property name="maven.repo.local" value="${user.home}/.m2/repository"/> |
582 |
<property name="maven.settings.offline" value="false"/> |
583 |
<property name="maven.settings.interactiveMode" value="true"/> |
584 |
|
585 |
<!-- ====================================================================== --> |
586 |
<!-- Defining classpaths --> |
587 |
<!-- ====================================================================== --> |
588 |
|
589 |
<path id="build.classpath"> |
590 |
<pathelement location="${maven.repo.local}/org/apache/httpcomponents/httpclient/4.5/httpclient-4.5.jar"/> |
591 |
<pathelement location="${maven.repo.local}/org/apache/httpcomponents/httpcore/4.4.1/httpcore-4.4.1.jar"/> |
592 |
<pathelement location="${maven.repo.local}/commons-logging/commons-logging/1.2/commons-logging-1.2.jar"/> |
593 |
<pathelement location="${maven.repo.local}/commons-codec/commons-codec/1.9/commons-codec-1.9.jar"/> |
594 |
</path> |
595 |
<path id="build.test.classpath"> |
596 |
<pathelement location="${maven.repo.local}/org/apache/httpcomponents/httpclient/4.5/httpclient-4.5.jar"/> |
597 |
<pathelement location="${maven.repo.local}/org/apache/httpcomponents/httpcore/4.4.1/httpcore-4.4.1.jar"/> |
598 |
<pathelement location="${maven.repo.local}/commons-logging/commons-logging/1.2/commons-logging-1.2.jar"/> |
599 |
<pathelement location="${maven.repo.local}/commons-codec/commons-codec/1.9/commons-codec-1.9.jar"/> |
600 |
<pathelement location="${maven.repo.local}/junit/junit/4.11/junit-4.11.jar"/> |
601 |
<pathelement location="${maven.repo.local}/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar"/> |
602 |
</path> |
603 |
|
604 |
<!-- ====================================================================== --> |
605 |
<!-- Cleaning up target --> |
606 |
<!-- ====================================================================== --> |
607 |
|
608 |
<target name="clean" description="Clean the output directory"> |
609 |
<delete dir="${maven.build.dir}"/> |
610 |
</target> |
611 |
|
612 |
<!-- ====================================================================== --> |
613 |
<!-- Compilation target --> |
614 |
<!-- ====================================================================== --> |
615 |
|
616 |
<target name="compile" description="Compile the code"> |
617 |
<mkdir dir="${maven.build.outputDir}"/> |
618 |
<javac destdir="${maven.build.outputDir}" |
619 |
nowarn="false" |
620 |
debug="true" |
621 |
optimize="false" |
622 |
deprecation="true" |
623 |
target="1.6" |
624 |
verbose="false" |
625 |
fork="false" |
626 |
source="1.6"> |
627 |
<src> |
628 |
<pathelement location="${maven.build.srcDir.0}"/> |
629 |
</src> |
630 |
<classpath refid="build.classpath"/> |
631 |
</javac> |
632 |
<copy todir="${maven.build.outputDir}"> |
633 |
<fileset dir="${maven.build.resourceDir.0}"> |
634 |
<include name="**/*.properties"/> |
635 |
</fileset> |
636 |
</copy> |
637 |
</target> |
638 |
|
639 |
<!-- ====================================================================== --> |
640 |
<!-- Test-compilation target --> |
641 |
<!-- ====================================================================== --> |
642 |
|
643 |
<target name="compile-tests" |
644 |
depends="compile" |
645 |
description="Compile the test code" |
646 |
unless="maven.test.skip"> |
647 |
<mkdir dir="${maven.build.testOutputDir}"/> |
648 |
<javac destdir="${maven.build.testOutputDir}" |
649 |
nowarn="false" |
650 |
debug="true" |
651 |
optimize="false" |
652 |
deprecation="true" |
653 |
target="1.6" |
654 |
verbose="false" |
655 |
fork="false" |
656 |
source="1.6"> |
657 |
<src> |
658 |
<pathelement location="${maven.build.testDir.0}"/> |
659 |
</src> |
660 |
<classpath> |
661 |
<path refid="build.test.classpath"/> |
662 |
<pathelement location="${maven.build.outputDir}"/> |
663 |
</classpath> |
664 |
</javac> |
665 |
</target> |
666 |
|
667 |
<!-- ====================================================================== --> |
668 |
<!-- Run all tests --> |
669 |
<!-- ====================================================================== --> |
670 |
|
671 |
<target name="test" |
672 |
depends="compile-tests" |
673 |
unless="junit.skipped" |
674 |
description="Run the test cases"> |
675 |
<mkdir dir="${maven.test.reports}"/> |
676 |
<junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir="."> |
677 |
<sysproperty key="basedir" value="."/> |
678 |
<formatter type="xml"/> |
679 |
<formatter type="plain" usefile="false"/> |
680 |
<classpath> |
681 |
<path refid="build.test.classpath"/> |
682 |
<pathelement location="${maven.build.outputDir}"/> |
683 |
<pathelement location="${maven.build.testOutputDir}"/> |
684 |
</classpath> |
685 |
<batchtest todir="${maven.test.reports}" unless="test"> |
686 |
<fileset dir="${maven.build.testDir.0}"> |
687 |
<include name="**/Test*.java"/> |
688 |
<include name="**/*Test.java"/> |
689 |
<include name="**/*TestCase.java"/> |
690 |
<exclude name="**/*Abstract*Test.java"/> |
691 |
</fileset> |
692 |
</batchtest> |
693 |
<batchtest todir="${maven.test.reports}" if="test"> |
694 |
<fileset dir="${maven.build.testDir.0}"> |
695 |
<include name="**/${test}.java"/> |
696 |
<exclude name="**/*Abstract*Test.java"/> |
697 |
</fileset> |
698 |
</batchtest> |
699 |
</junit> |
700 |
</target> |
701 |
|
702 |
<target name="test-junit-present"> |
703 |
<available classname="junit.framework.Test" property="junit.present" classpathref="build.test.classpath"/> |
704 |
</target> |
705 |
|
706 |
<target name="test-junit-status" |
707 |
depends="test-junit-present"> |
708 |
<condition property="junit.missing"> |
709 |
<and> |
710 |
<isfalse value="${junit.present}"/> |
711 |
<isfalse value="${maven.test.skip}"/> |
712 |
</and> |
713 |
</condition> |
714 |
<condition property="junit.skipped"> |
715 |
<or> |
716 |
<isfalse value="${junit.present}"/> |
717 |
<istrue value="${maven.test.skip}"/> |
718 |
</or> |
719 |
</condition> |
720 |
</target> |
721 |
|
722 |
<target name="junit-missing" |
723 |
depends="test-junit-status" |
724 |
if="junit.missing"> |
725 |
<echo>=================================== WARNING ===================================</echo> |
726 |
<echo> JUnit is not present in the test classpath or your $ANT_HOME/lib directory. Tests not executed.</echo> |
727 |
<echo>===============================================================================</echo> |
728 |
</target> |
729 |
|
730 |
<!-- ====================================================================== --> |
731 |
<!-- Javadoc target --> |
732 |
<!-- ====================================================================== --> |
733 |
|
734 |
<target name="javadoc" description="Generates the Javadoc of the application"> |
735 |
<javadoc sourcepath="${maven.build.srcDir.0}" |
736 |
packagenames="*" |
737 |
destdir="${maven.reporting.outputDirectory}/apidocs" |
738 |
access="protected" |
739 |
old="false" |
740 |
verbose="false" |
741 |
version="true" |
742 |
use="true" |
743 |
author="true" |
744 |
splitindex="false" |
745 |
nodeprecated="false" |
746 |
nodeprecatedlist="false" |
747 |
notree="false" |
748 |
noindex="false" |
749 |
nohelp="false" |
750 |
nonavbar="false" |
751 |
serialwarn="false" |
752 |
charset="ISO-8859-1" |
753 |
source="1.6" |
754 |
linksource="false" |
755 |
breakiterator="false"> |
756 |
<link href="http://docs.oracle.com/javase/6/docs/api/"/> |
757 |
<link href="http://hc.apache.org/httpcomponents-core-ga/httpcore/apidocs/"/> |
758 |
</javadoc> |
759 |
</target> |
760 |
|
761 |
<!-- ====================================================================== --> |
762 |
<!-- Package target --> |
763 |
<!-- ====================================================================== --> |
764 |
|
765 |
<target name="package" depends="compile" description="Package the application"> |
766 |
<jar jarfile="${maven.build.dir}/${maven.build.finalName}.jar" |
767 |
compress="true" |
768 |
index="false" |
769 |
basedir="${maven.build.outputDir}" |
770 |
excludes="**/package.html"> |
771 |
<manifest> |
772 |
<attribute name="Main-Class" value="Main"/> |
773 |
</manifest> |
774 |
</jar> |
775 |
</target> |
776 |
|
777 |
<!-- ====================================================================== --> |
778 |
<!-- A dummy target for the package named after the type it creates --> |
779 |
<!-- ====================================================================== --> |
780 |
|
781 |
<target name="jar" depends="package" description="Builds the jar for the application"/> |
782 |
|
783 |
<!-- ====================================================================== --> |
784 |
<!-- Download dependencies target --> |
785 |
<!-- ====================================================================== --> |
786 |
|
787 |
<target name="test-offline"> |
788 |
<condition property="maven.mode.offline"> |
789 |
<equals arg1="${maven.settings.offline}" arg2="true"/> |
790 |
</condition> |
791 |
</target> |
792 |
|
793 |
</project> |
794 |
|
795 |
|
796 |
|
797 |
1.1 dev-java/httpcomponents-client/files/httpcomponents-client-httpclient-cache-4.5-build.xml |
798 |
|
799 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/httpcomponents-client/files/httpcomponents-client-httpclient-cache-4.5-build.xml?rev=1.1&view=markup |
800 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/httpcomponents-client/files/httpcomponents-client-httpclient-cache-4.5-build.xml?rev=1.1&content-type=text/plain |
801 |
|
802 |
Index: httpcomponents-client-httpclient-cache-4.5-build.xml |
803 |
=================================================================== |
804 |
<?xml version="1.0" encoding="UTF-8"?> |
805 |
|
806 |
<!-- ====================================================================== --> |
807 |
<!-- Ant build file (http://ant.apache.org/) for Ant 1.6.2 or above. --> |
808 |
<!-- ====================================================================== --> |
809 |
|
810 |
<!-- ====================================================================== --> |
811 |
<!-- ===================== - DO NOT EDIT THIS FILE! - ===================== --> |
812 |
<!-- ====================================================================== --> |
813 |
<!-- --> |
814 |
<!-- Any modifications will be overwritten. --> |
815 |
<!-- --> |
816 |
<!-- Generated by Maven Ant Plugin on 6/24/15 9:48 AM --> |
817 |
<!-- See: http://maven.apache.org/plugins/maven-ant-plugin/ --> |
818 |
<!-- --> |
819 |
<!-- ====================================================================== --> |
820 |
|
821 |
<project name="httpclient-cache-from-maven" default="package" basedir="."> |
822 |
|
823 |
<!-- ====================================================================== --> |
824 |
<!-- Build environment properties --> |
825 |
<!-- ====================================================================== --> |
826 |
|
827 |
<property name="maven.build.finalName" value="httpclient-cache-4.5"/> |
828 |
<property name="maven.build.dir" value="target"/> |
829 |
<property name="maven.build.outputDir" value="${maven.build.dir}/classes"/> |
830 |
<property name="maven.build.srcDir.0" value="src/main/java"/> |
831 |
<property name="maven.build.resourceDir.0" value="src/main/resources"/> |
832 |
<property name="maven.build.testOutputDir" value="${maven.build.dir}/test-classes"/> |
833 |
<property name="maven.build.testDir.0" value="src/test/java"/> |
834 |
<property name="maven.build.testResourceDir.0" value="src/test/resources"/> |
835 |
<property name="maven.test.reports" value="${maven.build.dir}/test-reports"/> |
836 |
<property name="maven.reporting.outputDirectory" value="${maven.build.dir}/site"/> |
837 |
|
838 |
<property name="maven.repo.local" value="${user.home}/.m2/repository"/> |
839 |
<property name="maven.settings.offline" value="false"/> |
840 |
<property name="maven.settings.interactiveMode" value="true"/> |
841 |
|
842 |
<!-- ====================================================================== --> |
843 |
<!-- Defining classpaths --> |
844 |
<!-- ====================================================================== --> |
845 |
|
846 |
<path id="build.classpath"> |
847 |
<pathelement location="${maven.repo.local}/org/apache/httpcomponents/httpclient/4.5/httpclient-4.5.jar"/> |
848 |
<pathelement location="${maven.repo.local}/org/apache/httpcomponents/httpcore/4.4.1/httpcore-4.4.1.jar"/> |
849 |
<pathelement location="${maven.repo.local}/commons-codec/commons-codec/1.9/commons-codec-1.9.jar"/> |
850 |
<pathelement location="${maven.repo.local}/commons-logging/commons-logging/1.2/commons-logging-1.2.jar"/> |
851 |
<pathelement location="${maven.repo.local}/net/sf/ehcache/ehcache-core/2.6.9/ehcache-core-2.6.9.jar"/> |
852 |
<pathelement location="${maven.repo.local}/org/slf4j/slf4j-api/1.6.1/slf4j-api-1.6.1.jar"/> |
853 |
<pathelement location="${maven.repo.local}/org/slf4j/slf4j-jcl/1.7.7/slf4j-jcl-1.7.7.jar"/> |
854 |
<pathelement location="${maven.repo.local}/net/spy/spymemcached/2.11.4/spymemcached-2.11.4.jar"/> |
855 |
</path> |
856 |
<path id="build.test.classpath"> |
857 |
<pathelement location="${maven.repo.local}/org/apache/httpcomponents/httpclient/4.5/httpclient-4.5.jar"/> |
858 |
<pathelement location="${maven.repo.local}/org/apache/httpcomponents/httpcore/4.4.1/httpcore-4.4.1.jar"/> |
859 |
<pathelement location="${maven.repo.local}/commons-codec/commons-codec/1.9/commons-codec-1.9.jar"/> |
860 |
<pathelement location="${maven.repo.local}/commons-logging/commons-logging/1.2/commons-logging-1.2.jar"/> |
861 |
<pathelement location="${maven.repo.local}/net/sf/ehcache/ehcache-core/2.6.9/ehcache-core-2.6.9.jar"/> |
862 |
<pathelement location="${maven.repo.local}/org/slf4j/slf4j-api/1.6.1/slf4j-api-1.6.1.jar"/> |
863 |
<pathelement location="${maven.repo.local}/org/slf4j/slf4j-jcl/1.7.7/slf4j-jcl-1.7.7.jar"/> |
864 |
<pathelement location="${maven.repo.local}/net/spy/spymemcached/2.11.4/spymemcached-2.11.4.jar"/> |
865 |
<pathelement location="${maven.repo.local}/junit/junit/4.11/junit-4.11.jar"/> |
866 |
<pathelement location="${maven.repo.local}/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar"/> |
867 |
<pathelement location="${maven.repo.local}/org/mockito/mockito-core/1.8.5/mockito-core-1.8.5.jar"/> |
868 |
<pathelement location="${maven.repo.local}/org/objenesis/objenesis/1.0/objenesis-1.0.jar"/> |
869 |
<pathelement location="${maven.repo.local}/org/easymock/easymock/2.5.2/easymock-2.5.2.jar"/> |
870 |
<pathelement location="${maven.repo.local}/org/easymock/easymockclassextension/2.5.2/easymockclassextension-2.5.2.jar"/> |
871 |
<pathelement location="${maven.repo.local}/cglib/cglib-nodep/2.2/cglib-nodep-2.2.jar"/> |
872 |
<pathelement location="${maven.repo.local}/org/apache/httpcomponents/httpclient/4.5/httpclient-4.5-tests.jar"/> |
873 |
</path> |
874 |
|
875 |
<!-- ====================================================================== --> |
876 |
<!-- Cleaning up target --> |
877 |
<!-- ====================================================================== --> |
878 |
|
879 |
<target name="clean" description="Clean the output directory"> |
880 |
<delete dir="${maven.build.dir}"/> |
881 |
</target> |
882 |
|
883 |
<!-- ====================================================================== --> |
884 |
<!-- Compilation target --> |
885 |
<!-- ====================================================================== --> |
886 |
|
887 |
<target name="compile" description="Compile the code"> |
888 |
<mkdir dir="${maven.build.outputDir}"/> |
889 |
<javac destdir="${maven.build.outputDir}" |
890 |
nowarn="false" |
891 |
debug="true" |
892 |
optimize="false" |
893 |
deprecation="true" |
894 |
target="1.6" |
895 |
verbose="false" |
896 |
fork="false" |
897 |
source="1.6"> |
898 |
<src> |
899 |
<pathelement location="${maven.build.srcDir.0}"/> |
900 |
</src> |
901 |
<classpath refid="build.classpath"/> |
902 |
</javac> |
903 |
</target> |
904 |
|
905 |
<!-- ====================================================================== --> |
906 |
<!-- Test-compilation target --> |
907 |
<!-- ====================================================================== --> |
908 |
|
909 |
<target name="compile-tests" |
910 |
depends="compile" |
911 |
description="Compile the test code" |
912 |
unless="maven.test.skip"> |
913 |
<mkdir dir="${maven.build.testOutputDir}"/> |
914 |
<javac destdir="${maven.build.testOutputDir}" |
915 |
nowarn="false" |
916 |
debug="true" |
917 |
optimize="false" |
918 |
deprecation="true" |
919 |
target="1.6" |
920 |
verbose="false" |
921 |
fork="false" |
922 |
source="1.6"> |
923 |
<src> |
924 |
<pathelement location="${maven.build.testDir.0}"/> |
925 |
</src> |
926 |
<classpath> |
927 |
<path refid="build.test.classpath"/> |
928 |
<pathelement location="${maven.build.outputDir}"/> |
929 |
</classpath> |
930 |
</javac> |
931 |
<copy todir="${maven.build.testOutputDir}"> |
932 |
<fileset dir="${maven.build.testResourceDir.0}"/> |
933 |
</copy> |
934 |
</target> |
935 |
|
936 |
<!-- ====================================================================== --> |
937 |
<!-- Run all tests --> |
938 |
<!-- ====================================================================== --> |
939 |
|
940 |
<target name="test" |
941 |
depends="compile-tests" |
942 |
unless="junit.skipped" |
943 |
description="Run the test cases"> |
944 |
<mkdir dir="${maven.test.reports}"/> |
945 |
<junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir="."> |
946 |
<sysproperty key="basedir" value="."/> |
947 |
<formatter type="xml"/> |
948 |
<formatter type="plain" usefile="false"/> |
949 |
<classpath> |
950 |
<path refid="build.test.classpath"/> |
951 |
<pathelement location="${maven.build.outputDir}"/> |
952 |
<pathelement location="${maven.build.testOutputDir}"/> |
953 |
</classpath> |
954 |
<batchtest todir="${maven.test.reports}" unless="test"> |
955 |
<fileset dir="${maven.build.testDir.0}"> |
956 |
<include name="**/Test*.java"/> |
957 |
<include name="**/*Test.java"/> |
958 |
<include name="**/*TestCase.java"/> |
959 |
<exclude name="**/*Abstract*Test.java"/> |
960 |
</fileset> |
961 |
</batchtest> |
962 |
<batchtest todir="${maven.test.reports}" if="test"> |
963 |
<fileset dir="${maven.build.testDir.0}"> |
964 |
<include name="**/${test}.java"/> |
965 |
<exclude name="**/*Abstract*Test.java"/> |
966 |
</fileset> |
967 |
</batchtest> |
968 |
</junit> |
969 |
</target> |
970 |
|
971 |
<target name="test-junit-present"> |
972 |
<available classname="junit.framework.Test" property="junit.present" classpathref="build.test.classpath"/> |
973 |
</target> |
974 |
|
975 |
<target name="test-junit-status" |
976 |
depends="test-junit-present"> |
977 |
<condition property="junit.missing"> |
978 |
<and> |
979 |
<isfalse value="${junit.present}"/> |
980 |
<isfalse value="${maven.test.skip}"/> |
981 |
</and> |
982 |
</condition> |
983 |
<condition property="junit.skipped"> |
984 |
<or> |
985 |
<isfalse value="${junit.present}"/> |
986 |
<istrue value="${maven.test.skip}"/> |
987 |
</or> |
988 |
</condition> |
989 |
</target> |
990 |
|
991 |
<target name="junit-missing" |
992 |
depends="test-junit-status" |
993 |
if="junit.missing"> |
994 |
<echo>=================================== WARNING ===================================</echo> |
995 |
<echo> JUnit is not present in the test classpath or your $ANT_HOME/lib directory. Tests not executed.</echo> |
996 |
<echo>===============================================================================</echo> |
997 |
</target> |
998 |
|
999 |
<!-- ====================================================================== --> |
1000 |
<!-- Javadoc target --> |
1001 |
<!-- ====================================================================== --> |
1002 |
|
1003 |
<target name="javadoc" description="Generates the Javadoc of the application"> |
1004 |
<javadoc sourcepath="${maven.build.srcDir.0}" |
1005 |
packagenames="*" |
1006 |
destdir="${maven.reporting.outputDirectory}/apidocs" |
1007 |
access="protected" |
1008 |
old="false" |
1009 |
verbose="false" |
1010 |
version="true" |
1011 |
use="true" |
1012 |
author="true" |
1013 |
splitindex="false" |
1014 |
nodeprecated="false" |
1015 |
nodeprecatedlist="false" |
1016 |
notree="false" |
1017 |
noindex="false" |
1018 |
nohelp="false" |
1019 |
nonavbar="false" |
1020 |
serialwarn="false" |
1021 |
charset="ISO-8859-1" |
1022 |
source="1.6" |
1023 |
linksource="false" |
1024 |
breakiterator="false"> |
1025 |
<link href="http://docs.oracle.com/javase/6/docs/api/"/> |
1026 |
<link href="http://hc.apache.org/httpcomponents-core-ga/httpcore/apidocs/"/> |
1027 |
<link href="http://hc.apache.org/httpcomponents-client-ga/httpclient/apidocs/"/> |
1028 |
</javadoc> |
1029 |
</target> |
1030 |
|
1031 |
<!-- ====================================================================== --> |
1032 |
<!-- Package target --> |
1033 |
<!-- ====================================================================== --> |
1034 |
|
1035 |
<target name="package" depends="compile" description="Package the application"> |
1036 |
<jar jarfile="${maven.build.dir}/${maven.build.finalName}.jar" |
1037 |
compress="true" |
1038 |
index="false" |
1039 |
basedir="${maven.build.outputDir}" |
1040 |
excludes="**/package.html"> |
1041 |
<manifest> |
1042 |
<attribute name="Main-Class" value="Main"/> |
1043 |
</manifest> |
1044 |
</jar> |
1045 |
</target> |
1046 |
|
1047 |
<!-- ====================================================================== --> |
1048 |
<!-- A dummy target for the package named after the type it creates --> |
1049 |
<!-- ====================================================================== --> |
1050 |
|
1051 |
<target name="jar" depends="package" description="Builds the jar for the application"/> |
1052 |
|
1053 |
<!-- ====================================================================== --> |
1054 |
<!-- Download dependencies target --> |
1055 |
<!-- ====================================================================== --> |
1056 |
|
1057 |
<target name="test-offline"> |
1058 |
<condition property="maven.mode.offline"> |
1059 |
<equals arg1="${maven.settings.offline}" arg2="true"/> |
1060 |
</condition> |
1061 |
</target> |
1062 |
|
1063 |
</project> |
1064 |
|
1065 |
|
1066 |
|
1067 |
1.1 dev-java/httpcomponents-client/files/httpcomponents-client-fluent-hc-4.5-build.xml |
1068 |
|
1069 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/httpcomponents-client/files/httpcomponents-client-fluent-hc-4.5-build.xml?rev=1.1&view=markup |
1070 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/httpcomponents-client/files/httpcomponents-client-fluent-hc-4.5-build.xml?rev=1.1&content-type=text/plain |
1071 |
|
1072 |
Index: httpcomponents-client-fluent-hc-4.5-build.xml |
1073 |
=================================================================== |
1074 |
<?xml version="1.0" encoding="UTF-8"?> |
1075 |
|
1076 |
<!-- ====================================================================== --> |
1077 |
<!-- Ant build file (http://ant.apache.org/) for Ant 1.6.2 or above. --> |
1078 |
<!-- ====================================================================== --> |
1079 |
|
1080 |
<!-- ====================================================================== --> |
1081 |
<!-- ===================== - DO NOT EDIT THIS FILE! - ===================== --> |
1082 |
<!-- ====================================================================== --> |
1083 |
<!-- --> |
1084 |
<!-- Any modifications will be overwritten. --> |
1085 |
<!-- --> |
1086 |
<!-- Generated by Maven Ant Plugin on 6/24/15 9:38 AM --> |
1087 |
<!-- See: http://maven.apache.org/plugins/maven-ant-plugin/ --> |
1088 |
<!-- --> |
1089 |
<!-- ====================================================================== --> |
1090 |
|
1091 |
<project name="fluent-hc-from-maven" default="package" basedir="."> |
1092 |
|
1093 |
<!-- ====================================================================== --> |
1094 |
<!-- Build environment properties --> |
1095 |
<!-- ====================================================================== --> |
1096 |
|
1097 |
<property name="maven.build.finalName" value="fluent-hc-4.5"/> |
1098 |
<property name="maven.build.dir" value="target"/> |
1099 |
<property name="maven.build.outputDir" value="${maven.build.dir}/classes"/> |
1100 |
<property name="maven.build.srcDir.0" value="src/main/java"/> |
1101 |
<property name="maven.build.resourceDir.0" value="src/main/resources"/> |
1102 |
<property name="maven.build.testOutputDir" value="${maven.build.dir}/test-classes"/> |
1103 |
<property name="maven.build.testDir.0" value="src/test/java"/> |
1104 |
<property name="maven.build.testResourceDir.0" value="src/test/resources"/> |
1105 |
<property name="maven.test.reports" value="${maven.build.dir}/test-reports"/> |
1106 |
<property name="maven.reporting.outputDirectory" value="${maven.build.dir}/site"/> |
1107 |
|
1108 |
<property name="maven.repo.local" value="${user.home}/.m2/repository"/> |
1109 |
<property name="maven.settings.offline" value="false"/> |
1110 |
<property name="maven.settings.interactiveMode" value="true"/> |
1111 |
|
1112 |
<!-- ====================================================================== --> |
1113 |
<!-- Defining classpaths --> |
1114 |
<!-- ====================================================================== --> |
1115 |
|
1116 |
<path id="build.classpath"> |
1117 |
<pathelement location="${maven.repo.local}/org/apache/httpcomponents/httpclient/4.5/httpclient-4.5.jar"/> |
1118 |
<pathelement location="${maven.repo.local}/org/apache/httpcomponents/httpcore/4.4.1/httpcore-4.4.1.jar"/> |
1119 |
<pathelement location="${maven.repo.local}/commons-codec/commons-codec/1.9/commons-codec-1.9.jar"/> |
1120 |
<pathelement location="${maven.repo.local}/commons-logging/commons-logging/1.2/commons-logging-1.2.jar"/> |
1121 |
</path> |
1122 |
<path id="build.test.classpath"> |
1123 |
<pathelement location="${maven.repo.local}/org/apache/httpcomponents/httpclient/4.5/httpclient-4.5.jar"/> |
1124 |
<pathelement location="${maven.repo.local}/org/apache/httpcomponents/httpcore/4.4.1/httpcore-4.4.1.jar"/> |
1125 |
<pathelement location="${maven.repo.local}/commons-codec/commons-codec/1.9/commons-codec-1.9.jar"/> |
1126 |
<pathelement location="${maven.repo.local}/org/apache/httpcomponents/httpclient/4.5/httpclient-4.5-tests.jar"/> |
1127 |
<pathelement location="${maven.repo.local}/commons-logging/commons-logging/1.2/commons-logging-1.2.jar"/> |
1128 |
<pathelement location="${maven.repo.local}/junit/junit/4.11/junit-4.11.jar"/> |
1129 |
<pathelement location="${maven.repo.local}/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar"/> |
1130 |
<pathelement location="${maven.repo.local}/org/mockito/mockito-core/1.8.5/mockito-core-1.8.5.jar"/> |
1131 |
<pathelement location="${maven.repo.local}/org/objenesis/objenesis/1.0/objenesis-1.0.jar"/> |
1132 |
</path> |
1133 |
|
1134 |
<!-- ====================================================================== --> |
1135 |
<!-- Cleaning up target --> |
1136 |
<!-- ====================================================================== --> |
1137 |
|
1138 |
<target name="clean" description="Clean the output directory"> |
1139 |
<delete dir="${maven.build.dir}"/> |
1140 |
</target> |
1141 |
|
1142 |
<!-- ====================================================================== --> |
1143 |
<!-- Compilation target --> |
1144 |
<!-- ====================================================================== --> |
1145 |
|
1146 |
<target name="compile" description="Compile the code"> |
1147 |
<mkdir dir="${maven.build.outputDir}"/> |
1148 |
<javac destdir="${maven.build.outputDir}" |
1149 |
nowarn="false" |
1150 |
debug="true" |
1151 |
optimize="false" |
1152 |
deprecation="true" |
1153 |
target="1.6" |
1154 |
verbose="false" |
1155 |
fork="false" |
1156 |
source="1.6"> |
1157 |
<src> |
1158 |
<pathelement location="${maven.build.srcDir.0}"/> |
1159 |
</src> |
1160 |
<classpath refid="build.classpath"/> |
1161 |
</javac> |
1162 |
</target> |
1163 |
|
1164 |
<!-- ====================================================================== --> |
1165 |
<!-- Test-compilation target --> |
1166 |
<!-- ====================================================================== --> |
1167 |
|
1168 |
<target name="compile-tests" |
1169 |
depends="compile" |
1170 |
description="Compile the test code" |
1171 |
unless="maven.test.skip"> |
1172 |
<mkdir dir="${maven.build.testOutputDir}"/> |
1173 |
<javac destdir="${maven.build.testOutputDir}" |
1174 |
nowarn="false" |
1175 |
debug="true" |
1176 |
optimize="false" |
1177 |
deprecation="true" |
1178 |
target="1.6" |
1179 |
verbose="false" |
1180 |
fork="false" |
1181 |
source="1.6"> |
1182 |
<src> |
1183 |
<pathelement location="${maven.build.testDir.0}"/> |
1184 |
</src> |
1185 |
<classpath> |
1186 |
<path refid="build.test.classpath"/> |
1187 |
<pathelement location="${maven.build.outputDir}"/> |
1188 |
</classpath> |
1189 |
</javac> |
1190 |
</target> |
1191 |
|
1192 |
<!-- ====================================================================== --> |
1193 |
<!-- Run all tests --> |
1194 |
<!-- ====================================================================== --> |
1195 |
|
1196 |
<target name="test" |
1197 |
depends="compile-tests, junit-missing" |
1198 |
unless="junit.skipped" |
1199 |
description="Run the test cases"> |
1200 |
<mkdir dir="${maven.test.reports}"/> |
1201 |
<junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir="."> |
1202 |
<sysproperty key="basedir" value="."/> |
1203 |
<formatter type="xml"/> |
1204 |
<formatter type="plain" usefile="false"/> |
1205 |
<classpath> |
1206 |
<path refid="build.test.classpath"/> |
1207 |
<pathelement location="${maven.build.outputDir}"/> |
1208 |
<pathelement location="${maven.build.testOutputDir}"/> |
1209 |
</classpath> |
1210 |
<batchtest todir="${maven.test.reports}" unless="test"> |
1211 |
<fileset dir="${maven.build.testDir.0}"> |
1212 |
<include name="**/Test*.java"/> |
1213 |
<include name="**/*Test.java"/> |
1214 |
<include name="**/*TestCase.java"/> |
1215 |
<exclude name="**/*Abstract*Test.java"/> |
1216 |
</fileset> |
1217 |
</batchtest> |
1218 |
<batchtest todir="${maven.test.reports}" if="test"> |
1219 |
<fileset dir="${maven.build.testDir.0}"> |
1220 |
<include name="**/${test}.java"/> |
1221 |
<exclude name="**/*Abstract*Test.java"/> |
1222 |
</fileset> |
1223 |
</batchtest> |
1224 |
</junit> |
1225 |
</target> |
1226 |
|
1227 |
<target name="test-junit-present"> |
1228 |
<available classname="junit.framework.Test" property="junit.present" classpathref="build.test.classpath"/> |
1229 |
</target> |
1230 |
|
1231 |
<target name="test-junit-status" |
1232 |
depends="test-junit-present"> |
1233 |
<condition property="junit.missing"> |
1234 |
<and> |
1235 |
<isfalse value="${junit.present}"/> |
1236 |
<isfalse value="${maven.test.skip}"/> |
1237 |
</and> |
1238 |
</condition> |
1239 |
<condition property="junit.skipped"> |
1240 |
<or> |
1241 |
<isfalse value="${junit.present}"/> |
1242 |
<istrue value="${maven.test.skip}"/> |
1243 |
</or> |
1244 |
</condition> |
1245 |
</target> |
1246 |
|
1247 |
<target name="junit-missing" |
1248 |
depends="test-junit-status" |
1249 |
if="junit.missing"> |
1250 |
<echo>=================================== WARNING ===================================</echo> |
1251 |
<echo> JUnit is not present in the test classpath or your $ANT_HOME/lib directory. Tests not executed.</echo> |
1252 |
<echo>===============================================================================</echo> |
1253 |
</target> |
1254 |
|
1255 |
<!-- ====================================================================== --> |
1256 |
<!-- Javadoc target --> |
1257 |
<!-- ====================================================================== --> |
1258 |
|
1259 |
<target name="javadoc" description="Generates the Javadoc of the application"> |
1260 |
<javadoc sourcepath="${maven.build.srcDir.0}" |
1261 |
packagenames="*" |
1262 |
destdir="${maven.reporting.outputDirectory}/apidocs" |
1263 |
access="protected" |
1264 |
old="false" |
1265 |
verbose="false" |
1266 |
version="true" |
1267 |
use="true" |
1268 |
author="true" |
1269 |
splitindex="false" |
1270 |
nodeprecated="false" |
1271 |
nodeprecatedlist="false" |
1272 |
notree="false" |
1273 |
noindex="false" |
1274 |
nohelp="false" |
1275 |
nonavbar="false" |
1276 |
serialwarn="false" |
1277 |
charset="ISO-8859-1" |
1278 |
source="1.6" |
1279 |
linksource="false" |
1280 |
breakiterator="false"> |
1281 |
<link href="http://docs.oracle.com/javase/6/docs/api/"/> |
1282 |
<link href="http://hc.apache.org/httpcomponents-core-ga/httpcore/apidocs/"/> |
1283 |
<link href="http://hc.apache.org/httpcomponents-client-ga/httpclient/apidocs/"/> |
1284 |
</javadoc> |
1285 |
</target> |
1286 |
|
1287 |
<!-- ====================================================================== --> |
1288 |
<!-- Package target --> |
1289 |
<!-- ====================================================================== --> |
1290 |
|
1291 |
<target name="package" depends="compile" description="Package the application"> |
1292 |
<jar jarfile="${maven.build.dir}/${maven.build.finalName}.jar" |
1293 |
compress="true" |
1294 |
index="false" |
1295 |
basedir="${maven.build.outputDir}" |
1296 |
excludes="**/package.html"> |
1297 |
<manifest> |
1298 |
<attribute name="Main-Class" value="Main"/> |
1299 |
</manifest> |
1300 |
</jar> |
1301 |
</target> |
1302 |
|
1303 |
<!-- ====================================================================== --> |
1304 |
<!-- A dummy target for the package named after the type it creates --> |
1305 |
<!-- ====================================================================== --> |
1306 |
|
1307 |
<target name="jar" depends="package" description="Builds the jar for the application"/> |
1308 |
|
1309 |
<!-- ====================================================================== --> |
1310 |
<!-- Download dependencies target --> |
1311 |
<!-- ====================================================================== --> |
1312 |
|
1313 |
<target name="test-offline"> |
1314 |
<condition property="maven.mode.offline"> |
1315 |
<equals arg1="${maven.settings.offline}" arg2="true"/> |
1316 |
</condition> |
1317 |
</target> |
1318 |
|
1319 |
</project> |