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