1 |
tomwij 13/10/02 22:23:11 |
2 |
|
3 |
Added: felix-shell-1.4.3-build.xml |
4 |
Log: |
5 |
New package for dev-java/felix-shell, Felix Shell. Direct dependency of Struts 2. |
6 |
|
7 |
(Portage version: HEAD/cvs/Linux x86_64, signed Manifest commit with key 6D34E57D) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 dev-java/felix-shell/files/felix-shell-1.4.3-build.xml |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/felix-shell/files/felix-shell-1.4.3-build.xml?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/felix-shell/files/felix-shell-1.4.3-build.xml?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: felix-shell-1.4.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 5/13/13 2:41 PM --> |
30 |
<!-- See: http://maven.apache.org/plugins/maven-ant-plugin/ --> |
31 |
<!-- --> |
32 |
<!-- ====================================================================== --> |
33 |
|
34 |
<project name="org.apache.felix.shell-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="org.apache.felix.shell-1.4.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="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.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/osgi/org.osgi.core/4.1.0/org.osgi.core-4.1.0.jar"/> |
65 |
<pathelement location="${maven.repo.local}/org/osgi/org.osgi.compendium/4.0.0/org.osgi.compendium-4.0.0.jar"/> |
66 |
</path> |
67 |
<path id="build.test.classpath"> |
68 |
<pathelement location="${maven.repo.local}/org/osgi/org.osgi.core/4.1.0/org.osgi.core-4.1.0.jar"/> |
69 |
<pathelement location="${maven.repo.local}/org/osgi/org.osgi.compendium/4.0.0/org.osgi.compendium-4.0.0.jar"/> |
70 |
<pathelement location="${maven.repo.local}/junit/junit/4.0/junit-4.0.jar"/> |
71 |
<pathelement location="${maven.repo.local}/org/easymock/easymock/2.4/easymock-2.4.jar"/> |
72 |
<pathelement location="${maven.repo.local}/org/mockito/mockito-all/1.7/mockito-all-1.7.jar"/> |
73 |
</path> |
74 |
|
75 |
<!-- ====================================================================== --> |
76 |
<!-- Cleaning up target --> |
77 |
<!-- ====================================================================== --> |
78 |
|
79 |
<target name="clean" description="Clean the output directory"> |
80 |
<delete dir="${maven.build.dir}"/> |
81 |
</target> |
82 |
|
83 |
<!-- ====================================================================== --> |
84 |
<!-- Compilation target --> |
85 |
<!-- ====================================================================== --> |
86 |
|
87 |
<target name="compile" depends="get-deps" description="Compile the code"> |
88 |
<mkdir dir="${maven.build.outputDir}"/> |
89 |
<javac destdir="${maven.build.outputDir}" |
90 |
encoding="UTF-8" |
91 |
nowarn="false" |
92 |
debug="true" |
93 |
optimize="false" |
94 |
deprecation="true" |
95 |
target="1.3" |
96 |
verbose="false" |
97 |
fork="false" |
98 |
source="1.3"> |
99 |
<src> |
100 |
<pathelement location="${maven.build.srcDir.0}"/> |
101 |
</src> |
102 |
<classpath refid="build.classpath"/> |
103 |
</javac> |
104 |
<copy todir="${maven.build.outputDir}"> |
105 |
<fileset dir="${maven.build.resourceDir.0}"/> |
106 |
</copy> |
107 |
<mkdir dir="${maven.build.outputDir}/META-INF"/> |
108 |
<copy todir="${maven.build.outputDir}/META-INF"> |
109 |
<fileset dir="${maven.build.resourceDir.1}"> |
110 |
<include name="changelog.txt"/> |
111 |
</fileset> |
112 |
</copy> |
113 |
</target> |
114 |
|
115 |
<!-- ====================================================================== --> |
116 |
<!-- Test-compilation target --> |
117 |
<!-- ====================================================================== --> |
118 |
|
119 |
<target name="compile-tests" |
120 |
depends="compile" |
121 |
description="Compile the test code" |
122 |
unless="maven.test.skip"> |
123 |
<mkdir dir="${maven.build.testOutputDir}"/> |
124 |
<javac destdir="${maven.build.testOutputDir}" |
125 |
encoding="UTF-8" |
126 |
nowarn="false" |
127 |
debug="true" |
128 |
optimize="false" |
129 |
deprecation="true" |
130 |
target="1.3" |
131 |
verbose="false" |
132 |
fork="false" |
133 |
source="1.3"> |
134 |
<src> |
135 |
<pathelement location="${maven.build.testDir.0}"/> |
136 |
</src> |
137 |
<classpath> |
138 |
<path refid="build.test.classpath"/> |
139 |
<pathelement location="${maven.build.outputDir}"/> |
140 |
</classpath> |
141 |
</javac> |
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="**/Test*.java"/> |
165 |
<include name="**/*Test.java"/> |
166 |
<include name="**/*TestCase.java"/> |
167 |
<exclude name="**/*Abstract*Test.java"/> |
168 |
</fileset> |
169 |
</batchtest> |
170 |
<batchtest todir="${maven.test.reports}" if="test"> |
171 |
<fileset dir="${maven.build.testDir.0}"> |
172 |
<include name="**/${test}.java"/> |
173 |
<exclude name="**/*Abstract*Test.java"/> |
174 |
</fileset> |
175 |
</batchtest> |
176 |
</junit> |
177 |
</target> |
178 |
|
179 |
<target name="test-junit-present"> |
180 |
<available classname="junit.framework.Test" property="junit.present"/> |
181 |
</target> |
182 |
|
183 |
<target name="test-junit-status" |
184 |
depends="test-junit-present"> |
185 |
<condition property="junit.missing"> |
186 |
<and> |
187 |
<isfalse value="${junit.present}"/> |
188 |
<isfalse value="${maven.test.skip}"/> |
189 |
</and> |
190 |
</condition> |
191 |
<condition property="junit.skipped"> |
192 |
<or> |
193 |
<isfalse value="${junit.present}"/> |
194 |
<istrue value="${maven.test.skip}"/> |
195 |
</or> |
196 |
</condition> |
197 |
</target> |
198 |
|
199 |
<target name="junit-missing" |
200 |
depends="test-junit-status" |
201 |
if="junit.missing"> |
202 |
<echo>=================================== WARNING ===================================</echo> |
203 |
<echo> JUnit is not present in your $ANT_HOME/lib directory. Tests not executed.</echo> |
204 |
<echo>===============================================================================</echo> |
205 |
</target> |
206 |
|
207 |
<!-- ====================================================================== --> |
208 |
<!-- Javadoc target --> |
209 |
<!-- ====================================================================== --> |
210 |
|
211 |
<target name="javadoc" description="Generates the Javadoc of the application"> |
212 |
<javadoc sourcepath="${maven.build.srcDir.0}" |
213 |
packagenames="*" |
214 |
destdir="${maven.reporting.outputDirectory}/apidocs" |
215 |
access="protected" |
216 |
old="false" |
217 |
verbose="false" |
218 |
version="true" |
219 |
use="true" |
220 |
author="true" |
221 |
splitindex="false" |
222 |
nodeprecated="false" |
223 |
nodeprecatedlist="false" |
224 |
notree="false" |
225 |
noindex="false" |
226 |
nohelp="false" |
227 |
nonavbar="false" |
228 |
serialwarn="false" |
229 |
charset="ISO-8859-1" |
230 |
linksource="false" |
231 |
breakiterator="false"/> |
232 |
</target> |
233 |
|
234 |
<!-- ====================================================================== --> |
235 |
<!-- Package target --> |
236 |
<!-- ====================================================================== --> |
237 |
|
238 |
<target name="package" depends="compile,test" description="Package the application"> |
239 |
<jar jarfile="${maven.build.dir}/${maven.build.finalName}.jar" |
240 |
compress="true" |
241 |
index="false" |
242 |
basedir="${maven.build.outputDir}" |
243 |
excludes="**/package.html"> |
244 |
</jar> |
245 |
</target> |
246 |
|
247 |
<!-- ====================================================================== --> |
248 |
<!-- A dummy target for the package named after the type it creates --> |
249 |
<!-- ====================================================================== --> |
250 |
|
251 |
<target name="jar" depends="package" description="Builds the jar for the application"/> |
252 |
|
253 |
<!-- ====================================================================== --> |
254 |
<!-- Download dependencies target --> |
255 |
<!-- ====================================================================== --> |
256 |
|
257 |
<target name="test-offline"> |
258 |
<condition property="maven.mode.offline"> |
259 |
<equals arg1="${maven.settings.offline}" arg2="true"/> |
260 |
</condition> |
261 |
</target> |
262 |
|
263 |
<target name="get-deps" |
264 |
depends="test-offline" |
265 |
description="Download all dependencies" |
266 |
unless="maven.mode.offline"> |
267 |
<mkdir dir="${maven.repo.local}"/> |
268 |
<mkdir dir="${maven.repo.local}/org/osgi/org.osgi.core/4.1.0"/> |
269 |
<get src="http://repository.apache.org/snapshots/org/osgi/org.osgi.core/4.1.0/org.osgi.core-4.1.0.jar" |
270 |
dest="${maven.repo.local}/org/osgi/org.osgi.core/4.1.0/org.osgi.core-4.1.0.jar" |
271 |
usetimestamp="false" |
272 |
ignoreerrors="true"/> |
273 |
<get src="http://repo.maven.apache.org/maven2/org/osgi/org.osgi.core/4.1.0/org.osgi.core-4.1.0.jar" |
274 |
dest="${maven.repo.local}/org/osgi/org.osgi.core/4.1.0/org.osgi.core-4.1.0.jar" |
275 |
usetimestamp="false" |
276 |
ignoreerrors="true"/> |
277 |
<mkdir dir="${maven.repo.local}/org/osgi/org.osgi.compendium/4.0.0"/> |
278 |
<get src="http://repository.apache.org/snapshots/org/osgi/org.osgi.compendium/4.0.0/org.osgi.compendium-4.0.0.jar" |
279 |
dest="${maven.repo.local}/org/osgi/org.osgi.compendium/4.0.0/org.osgi.compendium-4.0.0.jar" |
280 |
usetimestamp="false" |
281 |
ignoreerrors="true"/> |
282 |
<get src="http://repo.maven.apache.org/maven2/org/osgi/org.osgi.compendium/4.0.0/org.osgi.compendium-4.0.0.jar" |
283 |
dest="${maven.repo.local}/org/osgi/org.osgi.compendium/4.0.0/org.osgi.compendium-4.0.0.jar" |
284 |
usetimestamp="false" |
285 |
ignoreerrors="true"/> |
286 |
<mkdir dir="${maven.repo.local}/junit/junit/4.0"/> |
287 |
<get src="http://repository.apache.org/snapshots/junit/junit/4.0/junit-4.0.jar" |
288 |
dest="${maven.repo.local}/junit/junit/4.0/junit-4.0.jar" |
289 |
usetimestamp="false" |
290 |
ignoreerrors="true"/> |
291 |
<get src="http://repo.maven.apache.org/maven2/junit/junit/4.0/junit-4.0.jar" |
292 |
dest="${maven.repo.local}/junit/junit/4.0/junit-4.0.jar" |
293 |
usetimestamp="false" |
294 |
ignoreerrors="true"/> |
295 |
<mkdir dir="${maven.repo.local}/org/easymock/easymock/2.4"/> |
296 |
<get src="http://repository.apache.org/snapshots/org/easymock/easymock/2.4/easymock-2.4.jar" |
297 |
dest="${maven.repo.local}/org/easymock/easymock/2.4/easymock-2.4.jar" |
298 |
usetimestamp="false" |
299 |
ignoreerrors="true"/> |
300 |
<get src="http://repo.maven.apache.org/maven2/org/easymock/easymock/2.4/easymock-2.4.jar" |
301 |
dest="${maven.repo.local}/org/easymock/easymock/2.4/easymock-2.4.jar" |
302 |
usetimestamp="false" |
303 |
ignoreerrors="true"/> |
304 |
<mkdir dir="${maven.repo.local}/org/mockito/mockito-all/1.7"/> |
305 |
<get src="http://repository.apache.org/snapshots/org/mockito/mockito-all/1.7/mockito-all-1.7.jar" |
306 |
dest="${maven.repo.local}/org/mockito/mockito-all/1.7/mockito-all-1.7.jar" |
307 |
usetimestamp="false" |
308 |
ignoreerrors="true"/> |
309 |
<get src="http://repo.maven.apache.org/maven2/org/mockito/mockito-all/1.7/mockito-all-1.7.jar" |
310 |
dest="${maven.repo.local}/org/mockito/mockito-all/1.7/mockito-all-1.7.jar" |
311 |
usetimestamp="false" |
312 |
ignoreerrors="true"/> |
313 |
</target> |
314 |
|
315 |
</project> |