1 |
tomwij 13/05/29 12:44:02 |
2 |
|
3 |
Added: commons-math-3.2-build.xml |
4 |
Log: |
5 |
Version bump to 3.2. |
6 |
|
7 |
(Portage version: 2.1.12.2/cvs/Linux x86_64, signed Manifest commit with key 6D34E57D) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 dev-java/commons-math/files/commons-math-3.2-build.xml |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/commons-math/files/commons-math-3.2-build.xml?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/commons-math/files/commons-math-3.2-build.xml?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: commons-math-3.2-build.xml |
16 |
=================================================================== |
17 |
<?xml version="1.0" encoding="UTF-8"?> |
18 |
|
19 |
<!-- ====================================================================== --> |
20 |
<!-- Ant build file (http://ant.apache.org/) for Ant 1.6.2 or above. --> |
21 |
<!-- ====================================================================== --> |
22 |
|
23 |
<!-- ====================================================================== --> |
24 |
<!-- ===================== - DO NOT EDIT THIS FILE! - ===================== --> |
25 |
<!-- ====================================================================== --> |
26 |
<!-- --> |
27 |
<!-- Any modifications will be overwritten. --> |
28 |
<!-- --> |
29 |
<!-- Generated by Maven Ant Plugin on 5/29/13 1:59 PM --> |
30 |
<!-- See: http://maven.apache.org/plugins/maven-ant-plugin/ --> |
31 |
<!-- --> |
32 |
<!-- ====================================================================== --> |
33 |
|
34 |
<project name="commons-math3-from-maven" default="package" basedir="."> |
35 |
|
36 |
<!-- ====================================================================== --> |
37 |
<!-- Build environment properties --> |
38 |
<!-- ====================================================================== --> |
39 |
|
40 |
<property file="${user.home}/.m2/maven.properties"/> |
41 |
<property file="maven-build.properties"/> |
42 |
|
43 |
<property name="maven.build.finalName" value="commons-math3-3.2"/> |
44 |
<property name="maven.build.dir" value="target"/> |
45 |
<property name="maven.build.outputDir" value="${maven.build.dir}/classes"/> |
46 |
<property name="maven.build.srcDir.0" value="src/main/java"/> |
47 |
<property name="maven.build.resourceDir.0" value="src/main/resources"/> |
48 |
<property name="maven.build.resourceDir.1" value="."/> |
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.build.testResourceDir.1" value="."/> |
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 |
<path id="build.test.classpath"> |
66 |
<pathelement location="${maven.repo.local}/junit/junit/4.10/junit-4.10.jar"/> |
67 |
<pathelement location="${maven.repo.local}/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar"/> |
68 |
</path> |
69 |
|
70 |
<!-- ====================================================================== --> |
71 |
<!-- Cleaning up target --> |
72 |
<!-- ====================================================================== --> |
73 |
|
74 |
<target name="clean" description="Clean the output directory"> |
75 |
<delete dir="${maven.build.dir}"/> |
76 |
</target> |
77 |
|
78 |
<!-- ====================================================================== --> |
79 |
<!-- Compilation target --> |
80 |
<!-- ====================================================================== --> |
81 |
|
82 |
<target name="compile" depends="get-deps" description="Compile the code"> |
83 |
<mkdir dir="${maven.build.outputDir}"/> |
84 |
<javac destdir="${maven.build.outputDir}" |
85 |
encoding="UTF-8" |
86 |
nowarn="false" |
87 |
debug="true" |
88 |
optimize="false" |
89 |
deprecation="true" |
90 |
target="1.5" |
91 |
verbose="false" |
92 |
fork="false" |
93 |
source="1.5"> |
94 |
<src> |
95 |
<pathelement location="${maven.build.srcDir.0}"/> |
96 |
</src> |
97 |
<classpath refid="build.classpath"/> |
98 |
</javac> |
99 |
<copy todir="${maven.build.outputDir}"> |
100 |
<fileset dir="${maven.build.resourceDir.0}"/> |
101 |
</copy> |
102 |
<mkdir dir="${maven.build.outputDir}/META-INF"/> |
103 |
<copy todir="${maven.build.outputDir}/META-INF"> |
104 |
<fileset dir="${maven.build.resourceDir.1}"> |
105 |
<include name="NOTICE.txt"/> |
106 |
<include name="LICENSE.txt"/> |
107 |
</fileset> |
108 |
</copy> |
109 |
</target> |
110 |
|
111 |
<!-- ====================================================================== --> |
112 |
<!-- Test-compilation target --> |
113 |
<!-- ====================================================================== --> |
114 |
|
115 |
<target name="compile-tests" |
116 |
depends="compile" |
117 |
description="Compile the test code" |
118 |
unless="maven.test.skip"> |
119 |
<mkdir dir="${maven.build.testOutputDir}"/> |
120 |
<javac destdir="${maven.build.testOutputDir}" |
121 |
encoding="UTF-8" |
122 |
nowarn="false" |
123 |
debug="true" |
124 |
optimize="false" |
125 |
deprecation="true" |
126 |
target="1.5" |
127 |
verbose="false" |
128 |
fork="false" |
129 |
source="1.5"> |
130 |
<src> |
131 |
<pathelement location="${maven.build.testDir.0}"/> |
132 |
</src> |
133 |
<classpath> |
134 |
<path refid="build.test.classpath"/> |
135 |
<pathelement location="${maven.build.outputDir}"/> |
136 |
</classpath> |
137 |
</javac> |
138 |
<copy todir="${maven.build.testOutputDir}"> |
139 |
<fileset dir="${maven.build.testResourceDir.0}"/> |
140 |
</copy> |
141 |
<mkdir dir="${maven.build.testOutputDir}/META-INF"/> |
142 |
<copy todir="${maven.build.testOutputDir}/META-INF"> |
143 |
<fileset dir="${maven.build.testResourceDir.1}"> |
144 |
<include name="NOTICE.txt"/> |
145 |
<include name="LICENSE.txt"/> |
146 |
</fileset> |
147 |
</copy> |
148 |
</target> |
149 |
|
150 |
<!-- ====================================================================== --> |
151 |
<!-- Run all tests --> |
152 |
<!-- ====================================================================== --> |
153 |
|
154 |
<target name="test" |
155 |
depends="compile-tests, junit-missing" |
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="**/*TestBinary.java"/> |
172 |
<include name="**/*TestPermutations.java"/> |
173 |
<exclude name="**/*AbstractTest.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="**/*AbstractTest.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"/> |
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 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 |
encoding="UTF-8" |
225 |
version="true" |
226 |
use="true" |
227 |
author="true" |
228 |
splitindex="false" |
229 |
nodeprecated="false" |
230 |
nodeprecatedlist="false" |
231 |
notree="false" |
232 |
noindex="false" |
233 |
nohelp="false" |
234 |
nonavbar="false" |
235 |
serialwarn="false" |
236 |
charset="ISO-8859-1" |
237 |
docencoding="UTF-8" |
238 |
source="1.5" |
239 |
linksource="true" |
240 |
breakiterator="false"> |
241 |
<link href="http://download.oracle.com/javase/6/docs/api/"/> |
242 |
<link href="http://download.oracle.com/javaee/6/api/"/> |
243 |
</javadoc> |
244 |
</target> |
245 |
|
246 |
<!-- ====================================================================== --> |
247 |
<!-- Package target --> |
248 |
<!-- ====================================================================== --> |
249 |
|
250 |
<target name="package" depends="compile,test" description="Package the application"> |
251 |
<jar jarfile="${maven.build.dir}/${maven.build.finalName}.jar" |
252 |
compress="true" |
253 |
index="false" |
254 |
manifest="/var/tmp/portage/dev-java/commons-math-3.2/work/commons-math3-3.2-src/target/osgi/MANIFEST.MF" |
255 |
basedir="${maven.build.outputDir}" |
256 |
excludes="**/package.html"> |
257 |
<manifest> |
258 |
<attribute name="Main-Class"/> |
259 |
</manifest> |
260 |
</jar> |
261 |
</target> |
262 |
|
263 |
<!-- ====================================================================== --> |
264 |
<!-- A dummy target for the package named after the type it creates --> |
265 |
<!-- ====================================================================== --> |
266 |
|
267 |
<target name="jar" depends="package" description="Builds the jar for the application"/> |
268 |
|
269 |
<!-- ====================================================================== --> |
270 |
<!-- Download dependencies target --> |
271 |
<!-- ====================================================================== --> |
272 |
|
273 |
<target name="test-offline"> |
274 |
<condition property="maven.mode.offline"> |
275 |
<equals arg1="${maven.settings.offline}" arg2="true"/> |
276 |
</condition> |
277 |
</target> |
278 |
|
279 |
<target name="get-deps" |
280 |
depends="test-offline" |
281 |
description="Download all dependencies" |
282 |
unless="maven.mode.offline"> |
283 |
<mkdir dir="${maven.repo.local}"/> |
284 |
<mkdir dir="${maven.repo.local}/junit/junit/4.10"/> |
285 |
<get src="http://repository.apache.org/snapshots/junit/junit/4.10/junit-4.10.jar" |
286 |
dest="${maven.repo.local}/junit/junit/4.10/junit-4.10.jar" |
287 |
usetimestamp="false" |
288 |
ignoreerrors="true"/> |
289 |
<get src="http://repo.maven.apache.org/maven2/junit/junit/4.10/junit-4.10.jar" |
290 |
dest="${maven.repo.local}/junit/junit/4.10/junit-4.10.jar" |
291 |
usetimestamp="false" |
292 |
ignoreerrors="true"/> |
293 |
<mkdir dir="${maven.repo.local}/org/hamcrest/hamcrest-core/1.1"/> |
294 |
<get src="http://repository.apache.org/snapshots/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar" |
295 |
dest="${maven.repo.local}/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar" |
296 |
usetimestamp="false" |
297 |
ignoreerrors="true"/> |
298 |
<get src="http://repo.maven.apache.org/maven2/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar" |
299 |
dest="${maven.repo.local}/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar" |
300 |
usetimestamp="false" |
301 |
ignoreerrors="true"/> |
302 |
</target> |
303 |
|
304 |
</project> |