1 |
sera 12/09/28 14:23:18 |
2 |
|
3 |
Added: fontbox-1.7.1_maven-build.xml |
4 |
Log: |
5 |
Version bump. Thanks to Ivan Baidakou <the.dmol@×××××.com> for the ebuild. #430060 |
6 |
Some fixups by me. |
7 |
|
8 |
(Portage version: 2.1.11.13/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.1 dev-java/fontbox/files/fontbox-1.7.1_maven-build.xml |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/fontbox/files/fontbox-1.7.1_maven-build.xml?rev=1.1&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/fontbox/files/fontbox-1.7.1_maven-build.xml?rev=1.1&content-type=text/plain |
15 |
|
16 |
Index: fontbox-1.7.1_maven-build.xml |
17 |
=================================================================== |
18 |
<?xml version="1.0" encoding="UTF-8"?> |
19 |
|
20 |
<!-- ====================================================================== --> |
21 |
<!-- Ant build file (http://ant.apache.org/) for Ant 1.6.2 or above. --> |
22 |
<!-- ====================================================================== --> |
23 |
|
24 |
<!-- ====================================================================== --> |
25 |
<!-- ===================== - DO NOT EDIT THIS FILE! - ===================== --> |
26 |
<!-- ====================================================================== --> |
27 |
<!-- --> |
28 |
<!-- Any modifications will be overwritten. --> |
29 |
<!-- --> |
30 |
<!-- Generated by Maven Ant Plugin on 8/2/12 1:39 PM --> |
31 |
<!-- See: http://maven.apache.org/plugins/maven-ant-plugin/ --> |
32 |
<!-- --> |
33 |
<!-- ====================================================================== --> |
34 |
|
35 |
<project name="fontbox-from-maven" default="package" basedir="."> |
36 |
|
37 |
<!-- ====================================================================== --> |
38 |
<!-- Build environment properties --> |
39 |
<!-- ====================================================================== --> |
40 |
|
41 |
<property file="${user.home}/.m2/maven.properties"/> |
42 |
<property file="maven-build.properties"/> |
43 |
|
44 |
<property name="maven.build.finalName" value="fontbox-1.7.1"/> |
45 |
<property name="maven.build.dir" value="target"/> |
46 |
<property name="maven.build.outputDir" value="${maven.build.dir}/classes"/> |
47 |
<property name="maven.build.srcDir.0" value="src/main/java"/> |
48 |
<property name="maven.build.resourceDir.0" value="src/main/resources"/> |
49 |
<property name="maven.build.testOutputDir" value="${maven.build.dir}/test-classes"/> |
50 |
<property name="maven.build.testDir.0" value="src/test/java"/> |
51 |
<property name="maven.build.testResourceDir.0" value="src/test/resources"/> |
52 |
<property name="maven.test.reports" value="${maven.build.dir}/test-reports"/> |
53 |
<property name="maven.reporting.outputDirectory" value="${maven.build.dir}/site"/> |
54 |
|
55 |
<property name="maven.repo.local" value="${user.home}/.m2/repository"/> |
56 |
<property name="maven.settings.offline" value="false"/> |
57 |
<property name="maven.settings.interactiveMode" value="true"/> |
58 |
|
59 |
<!-- ====================================================================== --> |
60 |
<!-- Defining classpaths --> |
61 |
<!-- ====================================================================== --> |
62 |
|
63 |
<path id="build.classpath"/> |
64 |
<path id="build.test.classpath"> |
65 |
<pathelement location="${maven.repo.local}/junit/junit/4.8.1/junit-4.8.1.jar"/> |
66 |
</path> |
67 |
|
68 |
<!-- ====================================================================== --> |
69 |
<!-- Cleaning up target --> |
70 |
<!-- ====================================================================== --> |
71 |
|
72 |
<target name="clean" description="Clean the output directory"> |
73 |
<delete dir="${maven.build.dir}"/> |
74 |
</target> |
75 |
|
76 |
<!-- ====================================================================== --> |
77 |
<!-- Compilation target --> |
78 |
<!-- ====================================================================== --> |
79 |
|
80 |
<target name="compile" depends="get-deps" description="Compile the code"> |
81 |
<mkdir dir="${maven.build.outputDir}"/> |
82 |
<javac destdir="${maven.build.outputDir}" |
83 |
nowarn="false" |
84 |
debug="true" |
85 |
optimize="false" |
86 |
deprecation="true" |
87 |
target="1.5" |
88 |
verbose="false" |
89 |
fork="false" |
90 |
source="1.5"> |
91 |
<src> |
92 |
<pathelement location="${maven.build.srcDir.0}"/> |
93 |
</src> |
94 |
<classpath refid="build.classpath"/> |
95 |
</javac> |
96 |
</target> |
97 |
|
98 |
<!-- ====================================================================== --> |
99 |
<!-- Test-compilation target --> |
100 |
<!-- ====================================================================== --> |
101 |
|
102 |
<target name="compile-tests" |
103 |
depends="compile" |
104 |
description="Compile the test code" |
105 |
unless="maven.test.skip"> |
106 |
<mkdir dir="${maven.build.testOutputDir}"/> |
107 |
<javac destdir="${maven.build.testOutputDir}" |
108 |
nowarn="false" |
109 |
debug="true" |
110 |
optimize="false" |
111 |
deprecation="true" |
112 |
target="1.5" |
113 |
verbose="false" |
114 |
fork="false" |
115 |
source="1.5"> |
116 |
<src> |
117 |
<pathelement location="${maven.build.testDir.0}"/> |
118 |
</src> |
119 |
<classpath> |
120 |
<path refid="build.test.classpath"/> |
121 |
<pathelement location="${maven.build.outputDir}"/> |
122 |
</classpath> |
123 |
</javac> |
124 |
<copy todir="${maven.build.testOutputDir}"> |
125 |
<fileset dir="${maven.build.testResourceDir.0}"/> |
126 |
</copy> |
127 |
</target> |
128 |
|
129 |
<!-- ====================================================================== --> |
130 |
<!-- Run all tests --> |
131 |
<!-- ====================================================================== --> |
132 |
|
133 |
<target name="test" |
134 |
depends="compile-tests, junit-missing" |
135 |
unless="junit.skipped" |
136 |
description="Run the test cases"> |
137 |
<mkdir dir="${maven.test.reports}"/> |
138 |
<junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir="."> |
139 |
<sysproperty key="basedir" value="."/> |
140 |
<formatter type="xml"/> |
141 |
<formatter type="plain" usefile="false"/> |
142 |
<classpath> |
143 |
<path refid="build.test.classpath"/> |
144 |
<pathelement location="${maven.build.outputDir}"/> |
145 |
<pathelement location="${maven.build.testOutputDir}"/> |
146 |
</classpath> |
147 |
<batchtest todir="${maven.test.reports}" unless="test"> |
148 |
<fileset dir="${maven.build.testDir.0}"> |
149 |
<include name="**/Test*.java"/> |
150 |
<include name="**/*Test.java"/> |
151 |
<include name="**/*TestCase.java"/> |
152 |
<exclude name="**/*Abstract*Test.java"/> |
153 |
</fileset> |
154 |
</batchtest> |
155 |
<batchtest todir="${maven.test.reports}" if="test"> |
156 |
<fileset dir="${maven.build.testDir.0}"> |
157 |
<include name="**/${test}.java"/> |
158 |
<exclude name="**/*Abstract*Test.java"/> |
159 |
</fileset> |
160 |
</batchtest> |
161 |
</junit> |
162 |
</target> |
163 |
|
164 |
<target name="test-junit-present"> |
165 |
<available classname="junit.framework.Test" property="junit.present"/> |
166 |
</target> |
167 |
|
168 |
<target name="test-junit-status" |
169 |
depends="test-junit-present"> |
170 |
<condition property="junit.missing"> |
171 |
<and> |
172 |
<isfalse value="${junit.present}"/> |
173 |
<isfalse value="${maven.test.skip}"/> |
174 |
</and> |
175 |
</condition> |
176 |
<condition property="junit.skipped"> |
177 |
<or> |
178 |
<isfalse value="${junit.present}"/> |
179 |
<istrue value="${maven.test.skip}"/> |
180 |
</or> |
181 |
</condition> |
182 |
</target> |
183 |
|
184 |
<target name="junit-missing" |
185 |
depends="test-junit-status" |
186 |
if="junit.missing"> |
187 |
<echo>=================================== WARNING ===================================</echo> |
188 |
<echo> JUnit is not present in your $ANT_HOME/lib directory. Tests not executed.</echo> |
189 |
<echo>===============================================================================</echo> |
190 |
</target> |
191 |
|
192 |
<!-- ====================================================================== --> |
193 |
<!-- Javadoc target --> |
194 |
<!-- ====================================================================== --> |
195 |
|
196 |
<target name="javadoc" description="Generates the Javadoc of the application"> |
197 |
<javadoc sourcepath="${maven.build.srcDir.0}" |
198 |
packagenames="*" |
199 |
destdir="${maven.reporting.outputDirectory}/apidocs" |
200 |
access="protected" |
201 |
old="false" |
202 |
verbose="false" |
203 |
version="true" |
204 |
use="true" |
205 |
author="true" |
206 |
splitindex="false" |
207 |
nodeprecated="false" |
208 |
nodeprecatedlist="false" |
209 |
notree="false" |
210 |
noindex="false" |
211 |
nohelp="false" |
212 |
nonavbar="false" |
213 |
serialwarn="false" |
214 |
charset="ISO-8859-1" |
215 |
source="1.5" |
216 |
linksource="false" |
217 |
breakiterator="false"> |
218 |
<link href="http://download.oracle.com/javase/1.5.0/docs/api/"/> |
219 |
</javadoc> |
220 |
</target> |
221 |
|
222 |
<!-- ====================================================================== --> |
223 |
<!-- Package target --> |
224 |
<!-- ====================================================================== --> |
225 |
|
226 |
<target name="package" depends="compile,test" description="Package the application"> |
227 |
<jar jarfile="${maven.build.dir}/${maven.build.finalName}.jar" |
228 |
compress="true" |
229 |
index="false" |
230 |
basedir="${maven.build.outputDir}" |
231 |
excludes="**/package.html"> |
232 |
</jar> |
233 |
</target> |
234 |
|
235 |
<!-- ====================================================================== --> |
236 |
<!-- A dummy target for the package named after the type it creates --> |
237 |
<!-- ====================================================================== --> |
238 |
|
239 |
<target name="jar" depends="package" description="Builds the jar for the application"/> |
240 |
|
241 |
<!-- ====================================================================== --> |
242 |
<!-- Download dependencies target --> |
243 |
<!-- ====================================================================== --> |
244 |
|
245 |
<target name="test-offline"> |
246 |
<condition property="maven.mode.offline"> |
247 |
<equals arg1="${maven.settings.offline}" arg2="true"/> |
248 |
</condition> |
249 |
</target> |
250 |
|
251 |
<target name="get-deps" |
252 |
depends="test-offline" |
253 |
description="Download all dependencies" |
254 |
unless="maven.mode.offline"> |
255 |
<mkdir dir="${maven.repo.local}"/> |
256 |
<mkdir dir="${maven.repo.local}/junit/junit/4.8.1"/> |
257 |
<get src="http://repository.apache.org/snapshots/junit/junit/4.8.1/junit-4.8.1.jar" |
258 |
dest="${maven.repo.local}/junit/junit/4.8.1/junit-4.8.1.jar" |
259 |
usetimestamp="false" |
260 |
ignoreerrors="true"/> |
261 |
<get src="http://repo.maven.apache.org/maven2/junit/junit/4.8.1/junit-4.8.1.jar" |
262 |
dest="${maven.repo.local}/junit/junit/4.8.1/junit-4.8.1.jar" |
263 |
usetimestamp="false" |
264 |
ignoreerrors="true"/> |
265 |
</target> |
266 |
|
267 |
</project> |