/[gentoo-x86]/dev-java/commons-vfs/files/commons-vfs-2.0-build.xml
Gentoo

Contents of /dev-java/commons-vfs/files/commons-vfs-2.0-build.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download) (as text)
Fri Jul 5 13:51:35 2013 UTC (6 years, 10 months ago) by tomwij
Branch: MAIN
CVS Tags: HEAD
File MIME type: application/xml
Error occurred while calculating annotation data.
Version bump to 2.0, needed for version bump of dev-java/ant-ivy to 2.3.0.

(Portage version: 2.1.12.11/cvs/Linux x86_64, signed Manifest commit with key 6D34E57D)

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

  ViewVC Help
Powered by ViewVC 1.1.20