Gentoo Archives: gentoo-commits

From: "Tim Harder (radhermit)" <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-java/joda-time/files: joda-time-2.3-build.xml
Date: Sat, 25 Jan 2014 06:18:14
Message-Id: 20140125061810.3D9812004E@flycatcher.gentoo.org
1 radhermit 14/01/25 06:18:10
2
3 Added: joda-time-2.3-build.xml
4 Log:
5 Version bump.
6
7 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3)
8
9 Revision Changes Path
10 1.1 dev-java/joda-time/files/joda-time-2.3-build.xml
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/joda-time/files/joda-time-2.3-build.xml?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/joda-time/files/joda-time-2.3-build.xml?rev=1.1&content-type=text/plain
14
15 Index: joda-time-2.3-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 1/25/14 5:06 AM -->
30 <!-- See: http://maven.apache.org/plugins/maven-ant-plugin/ -->
31 <!-- -->
32 <!-- ====================================================================== -->
33
34 <project name="joda-time-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="joda-time-2.3"/>
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="."/>
48 <property name="maven.build.resourceDir.1" value="src/main/java"/>
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 <pathelement location="${maven.repo.local}/org/joda/joda-convert/1.2/joda-convert-1.2.jar"/>
65 </path>
66 <path id="build.test.classpath">
67 <pathelement location="${maven.repo.local}/org/joda/joda-convert/1.2/joda-convert-1.2.jar"/>
68 <pathelement location="${maven.repo.local}/junit/junit/3.8.2/junit-3.8.2.jar"/>
69 </path>
70
71 <!-- ====================================================================== -->
72 <!-- Cleaning up target -->
73 <!-- ====================================================================== -->
74
75 <target name="clean" description="Clean the output directory">
76 <delete dir="${maven.build.dir}"/>
77 </target>
78
79 <!-- ====================================================================== -->
80 <!-- Compilation target -->
81 <!-- ====================================================================== -->
82
83 <target name="compile" depends="get-deps" description="Compile the code">
84 <mkdir dir="${maven.build.outputDir}"/>
85 <javac destdir="${maven.build.outputDir}"
86 nowarn="false"
87 debug="true"
88 optimize="true"
89 deprecation="false"
90 target="1.5"
91 verbose="true"
92 fork="true"
93 source="1.5">
94 <src>
95 <pathelement location="${maven.build.srcDir.0}"/>
96 </src>
97 <classpath refid="build.classpath"/>
98 </javac>
99 <mkdir dir="${maven.build.outputDir}/META-INF"/>
100 <copy todir="${maven.build.outputDir}/META-INF">
101 <fileset dir="${maven.build.resourceDir.0}">
102 <include name="LICENSE.txt"/>
103 <include name="NOTICE.txt"/>
104 </fileset>
105 </copy>
106 <copy todir="${maven.build.outputDir}">
107 <fileset dir="${maven.build.resourceDir.1}">
108 <include name="**/*.properties"/>
109 </fileset>
110 </copy>
111 </target>
112
113 <!-- ====================================================================== -->
114 <!-- Test-compilation target -->
115 <!-- ====================================================================== -->
116
117 <target name="compile-tests"
118 depends="compile"
119 description="Compile the test code"
120 unless="maven.test.skip">
121 <mkdir dir="${maven.build.testOutputDir}"/>
122 <javac destdir="${maven.build.testOutputDir}"
123 nowarn="false"
124 debug="true"
125 optimize="true"
126 deprecation="false"
127 target="1.5"
128 verbose="true"
129 fork="true"
130 source="1.5">
131 <src>
132 <pathelement location="${maven.build.testDir.0}"/>
133 </src>
134 <classpath>
135 <path refid="build.test.classpath"/>
136 <pathelement location="${maven.build.outputDir}"/>
137 </classpath>
138 </javac>
139 <copy todir="${maven.build.testOutputDir}">
140 <fileset dir="${maven.build.testResourceDir.0}"/>
141 </copy>
142 </target>
143
144 <!-- ====================================================================== -->
145 <!-- Run all tests -->
146 <!-- ====================================================================== -->
147
148 <target name="test"
149 depends="compile-tests, junit-missing"
150 unless="junit.skipped"
151 description="Run the test cases">
152 <mkdir dir="${maven.test.reports}"/>
153 <junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir=".">
154 <sysproperty key="basedir" value="."/>
155 <formatter type="xml"/>
156 <formatter type="plain" usefile="false"/>
157 <classpath>
158 <path refid="build.test.classpath"/>
159 <pathelement location="${maven.build.outputDir}"/>
160 <pathelement location="${maven.build.testOutputDir}"/>
161 </classpath>
162 <batchtest todir="${maven.test.reports}" unless="test">
163 <fileset dir="${maven.build.testDir.0}">
164 <include name="**/TestAllPackages.java"/>
165 <exclude name="**/*Abstract*Test.java"/>
166 </fileset>
167 </batchtest>
168 <batchtest todir="${maven.test.reports}" if="test">
169 <fileset dir="${maven.build.testDir.0}">
170 <include name="**/${test}.java"/>
171 <exclude name="**/*Abstract*Test.java"/>
172 </fileset>
173 </batchtest>
174 </junit>
175 </target>
176
177 <target name="test-junit-present">
178 <available classname="junit.framework.Test" property="junit.present"/>
179 </target>
180
181 <target name="test-junit-status"
182 depends="test-junit-present">
183 <condition property="junit.missing">
184 <and>
185 <isfalse value="${junit.present}"/>
186 <isfalse value="${maven.test.skip}"/>
187 </and>
188 </condition>
189 <condition property="junit.skipped">
190 <or>
191 <isfalse value="${junit.present}"/>
192 <istrue value="${maven.test.skip}"/>
193 </or>
194 </condition>
195 </target>
196
197 <target name="junit-missing"
198 depends="test-junit-status"
199 if="junit.missing">
200 <echo>=================================== WARNING ===================================</echo>
201 <echo> JUnit is not present in your $ANT_HOME/lib directory. Tests not executed.</echo>
202 <echo>===============================================================================</echo>
203 </target>
204
205 <!-- ====================================================================== -->
206 <!-- Javadoc target -->
207 <!-- ====================================================================== -->
208
209 <target name="javadoc" description="Generates the Javadoc of the application">
210 <javadoc sourcepath="${maven.build.srcDir.0}"
211 packagenames="*"
212 destdir="${maven.reporting.outputDirectory}/apidocs"
213 access="protected"
214 old="false"
215 verbose="false"
216 encoding="UTF-8"
217 version="true"
218 use="true"
219 author="true"
220 splitindex="false"
221 nodeprecated="false"
222 nodeprecatedlist="false"
223 notree="false"
224 noindex="false"
225 nohelp="false"
226 nonavbar="false"
227 serialwarn="false"
228 charset="ISO-8859-1"
229 linksource="true"
230 breakiterator="false">
231 <link href="http://download.oracle.com/javase/1.5.0/docs/api/"/>
232 <group title="User packages"/>
233 <group title="Implementation packages"/>
234 </javadoc>
235 </target>
236
237 <!-- ====================================================================== -->
238 <!-- Package target -->
239 <!-- ====================================================================== -->
240
241 <target name="package" depends="compile,test" description="Package the application">
242 <jar jarfile="${maven.build.dir}/${maven.build.finalName}.jar"
243 compress="true"
244 index="false"
245 manifest="src/conf/MANIFEST.MF"
246 basedir="${maven.build.outputDir}"
247 excludes="**/package.html"/>
248 </target>
249
250 <!-- ====================================================================== -->
251 <!-- A dummy target for the package named after the type it creates -->
252 <!-- ====================================================================== -->
253
254 <target name="jar" depends="package" description="Builds the jar for the application"/>
255
256 <!-- ====================================================================== -->
257 <!-- Download dependencies target -->
258 <!-- ====================================================================== -->
259
260 <target name="test-offline">
261 <condition property="maven.mode.offline">
262 <equals arg1="${maven.settings.offline}" arg2="true"/>
263 </condition>
264 </target>
265
266 <target name="get-deps"
267 depends="test-offline"
268 description="Download all dependencies"
269 unless="maven.mode.offline">
270 <mkdir dir="${maven.repo.local}"/>
271 <mkdir dir="${maven.repo.local}/org/joda/joda-convert/1.2"/>
272 <get src="http://repo.maven.apache.org/maven2/org/joda/joda-convert/1.2/joda-convert-1.2.jar"
273 dest="${maven.repo.local}/org/joda/joda-convert/1.2/joda-convert-1.2.jar"
274 usetimestamp="false"
275 ignoreerrors="true"/>
276 <mkdir dir="${maven.repo.local}/junit/junit/3.8.2"/>
277 <get src="http://repo.maven.apache.org/maven2/junit/junit/3.8.2/junit-3.8.2.jar"
278 dest="${maven.repo.local}/junit/junit/3.8.2/junit-3.8.2.jar"
279 usetimestamp="false"
280 ignoreerrors="true"/>
281 </target>
282
283 </project>