1 |
monsieurp 15/06/03 08:00:13 |
2 |
|
3 |
Added: tomcat-jstl-spec-1.2.5-build.xml |
4 |
Log: |
5 |
Initial commit. Fix bug 551032. |
6 |
|
7 |
Signed-off-by: Patrice Clement <monsieurp@g.o> |
8 |
(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 93491BB8) |
9 |
|
10 |
Revision Changes Path |
11 |
1.1 dev-java/tomcat-jstl-spec/files/tomcat-jstl-spec-1.2.5-build.xml |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/tomcat-jstl-spec/files/tomcat-jstl-spec-1.2.5-build.xml?rev=1.1&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/tomcat-jstl-spec/files/tomcat-jstl-spec-1.2.5-build.xml?rev=1.1&content-type=text/plain |
15 |
|
16 |
Index: tomcat-jstl-spec-1.2.5-build.xml |
17 |
=================================================================== |
18 |
<?xml version="1.0" encoding="UTF-8"?> |
19 |
|
20 |
<!-- ====================================================================== --> |
21 |
<!-- Ant build file (http://ant.apache.org/) for Ant 1.6.2 or above. --> |
22 |
<!-- ====================================================================== --> |
23 |
|
24 |
<!-- ====================================================================== --> |
25 |
<!-- ===================== - DO NOT EDIT THIS FILE! - ===================== --> |
26 |
<!-- ====================================================================== --> |
27 |
<!-- --> |
28 |
<!-- Any modifications will be overwritten. --> |
29 |
<!-- --> |
30 |
<!-- Generated by Maven Ant Plugin on 5/25/15 5:16 PM --> |
31 |
<!-- See: http://maven.apache.org/plugins/maven-ant-plugin/ --> |
32 |
<!-- --> |
33 |
<!-- ====================================================================== --> |
34 |
|
35 |
<project name="taglibs-standard-spec-from-maven" default="package" basedir="."> |
36 |
|
37 |
<!-- ====================================================================== --> |
38 |
<!-- Build environment properties --> |
39 |
<!-- ====================================================================== --> |
40 |
|
41 |
<property file="${user.home}/.m2/maven.properties"/> |
42 |
<property file="maven-build.properties"/> |
43 |
|
44 |
<property name="maven.build.finalName" value="taglibs-standard-spec-1.2.5"/> |
45 |
<property name="maven.build.dir" value="target"/> |
46 |
<property name="maven.build.outputDir" value="${maven.build.dir}/classes"/> |
47 |
<property name="maven.build.srcDir.0" value="src/main/java"/> |
48 |
<property name="maven.build.resourceDir.0" value="src/main/resources"/> |
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 |
</path> |
65 |
<path id="build.test.classpath"> |
66 |
</path> |
67 |
|
68 |
<!-- ====================================================================== --> |
69 |
<!-- Cleaning up target --> |
70 |
<!-- ====================================================================== --> |
71 |
|
72 |
<target name="clean" description="Clean the output directory"> |
73 |
<delete dir="${maven.build.dir}"/> |
74 |
</target> |
75 |
|
76 |
<!-- ====================================================================== --> |
77 |
<!-- Compilation target --> |
78 |
<!-- ====================================================================== --> |
79 |
|
80 |
<target name="compile" description="Compile the code"> |
81 |
<mkdir dir="${maven.build.outputDir}"/> |
82 |
<javac destdir="${maven.build.outputDir}" |
83 |
encoding="UTF-8" |
84 |
nowarn="false" |
85 |
debug="true" |
86 |
optimize="false" |
87 |
deprecation="true" |
88 |
target="1.5" |
89 |
verbose="false" |
90 |
fork="false" |
91 |
source="1.5"> |
92 |
<src> |
93 |
<pathelement location="${maven.build.srcDir.0}"/> |
94 |
</src> |
95 |
<classpath refid="build.classpath"/> |
96 |
</javac> |
97 |
</target> |
98 |
|
99 |
<!-- ====================================================================== --> |
100 |
<!-- Test-compilation target --> |
101 |
<!-- ====================================================================== --> |
102 |
|
103 |
<target name="compile-tests" |
104 |
depends="compile" |
105 |
description="Compile the test code" |
106 |
unless="maven.test.skip"> |
107 |
<mkdir dir="${maven.build.testOutputDir}"/> |
108 |
<javac destdir="${maven.build.testOutputDir}" |
109 |
encoding="UTF-8" |
110 |
nowarn="false" |
111 |
debug="true" |
112 |
optimize="false" |
113 |
deprecation="true" |
114 |
target="1.5" |
115 |
verbose="false" |
116 |
fork="false" |
117 |
source="1.5"> |
118 |
<src> |
119 |
<pathelement location="${maven.build.testDir.0}"/> |
120 |
</src> |
121 |
<classpath> |
122 |
<path refid="build.test.classpath"/> |
123 |
<pathelement location="${maven.build.outputDir}"/> |
124 |
</classpath> |
125 |
</javac> |
126 |
</target> |
127 |
|
128 |
<!-- ====================================================================== --> |
129 |
<!-- Run all tests --> |
130 |
<!-- ====================================================================== --> |
131 |
|
132 |
<target name="test" |
133 |
depends="compile-tests, junit-missing" |
134 |
unless="junit.skipped" |
135 |
description="Run the test cases"> |
136 |
<mkdir dir="${maven.test.reports}"/> |
137 |
<junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir="."> |
138 |
<sysproperty key="basedir" value="."/> |
139 |
<formatter type="xml"/> |
140 |
<formatter type="plain" usefile="false"/> |
141 |
<classpath> |
142 |
<path refid="build.test.classpath"/> |
143 |
<pathelement location="${maven.build.outputDir}"/> |
144 |
<pathelement location="${maven.build.testOutputDir}"/> |
145 |
</classpath> |
146 |
<batchtest todir="${maven.test.reports}" unless="test"> |
147 |
<fileset dir="${maven.build.testDir.0}"> |
148 |
<include name="**/Test*.java"/> |
149 |
<include name="**/*Test.java"/> |
150 |
<include name="**/*TestCase.java"/> |
151 |
<exclude name="**/*Abstract*Test.java"/> |
152 |
</fileset> |
153 |
</batchtest> |
154 |
<batchtest todir="${maven.test.reports}" if="test"> |
155 |
<fileset dir="${maven.build.testDir.0}"> |
156 |
<include name="**/${test}.java"/> |
157 |
<exclude name="**/*Abstract*Test.java"/> |
158 |
</fileset> |
159 |
</batchtest> |
160 |
</junit> |
161 |
</target> |
162 |
|
163 |
<target name="test-junit-present"> |
164 |
<available classname="junit.framework.Test" property="junit.present" classpathref="build.test.classpath"/> |
165 |
</target> |
166 |
|
167 |
<target name="test-junit-status" |
168 |
depends="test-junit-present"> |
169 |
<condition property="junit.missing"> |
170 |
<and> |
171 |
<isfalse value="${junit.present}"/> |
172 |
<isfalse value="${maven.test.skip}"/> |
173 |
</and> |
174 |
</condition> |
175 |
<condition property="junit.skipped"> |
176 |
<or> |
177 |
<isfalse value="${junit.present}"/> |
178 |
<istrue value="${maven.test.skip}"/> |
179 |
</or> |
180 |
</condition> |
181 |
</target> |
182 |
|
183 |
<target name="junit-missing" |
184 |
depends="test-junit-status" |
185 |
if="junit.missing"> |
186 |
<echo>=================================== WARNING ===================================</echo> |
187 |
<echo> JUnit is not present in the test classpath or your $ANT_HOME/lib directory. Tests not executed.</echo> |
188 |
<echo>===============================================================================</echo> |
189 |
</target> |
190 |
|
191 |
<!-- ====================================================================== --> |
192 |
<!-- Javadoc target --> |
193 |
<!-- ====================================================================== --> |
194 |
|
195 |
<target name="javadoc" description="Generates the Javadoc of the application"> |
196 |
<javadoc sourcepath="${maven.build.srcDir.0}" |
197 |
packagenames="*" |
198 |
destdir="${maven.reporting.outputDirectory}/apidocs" |
199 |
access="protected" |
200 |
old="false" |
201 |
verbose="false" |
202 |
version="true" |
203 |
use="true" |
204 |
author="true" |
205 |
splitindex="false" |
206 |
nodeprecated="false" |
207 |
nodeprecatedlist="false" |
208 |
notree="false" |
209 |
noindex="false" |
210 |
nohelp="false" |
211 |
nonavbar="false" |
212 |
serialwarn="false" |
213 |
charset="ISO-8859-1" |
214 |
linksource="false" |
215 |
breakiterator="false"> |
216 |
<link href="http://download.oracle.com/javase/1.5.0/docs/api"/> |
217 |
</javadoc> |
218 |
</target> |
219 |
|
220 |
<!-- ====================================================================== --> |
221 |
<!-- Package target --> |
222 |
<!-- ====================================================================== --> |
223 |
|
224 |
<target name="package" depends="compile" description="Package the application"> |
225 |
<jar jarfile="${maven.build.dir}/${maven.build.finalName}.jar" |
226 |
compress="true" |
227 |
index="false" |
228 |
basedir="${maven.build.outputDir}" |
229 |
excludes="**/package.html"> |
230 |
<manifest> |
231 |
<attribute name="Main-Class" value="Main"/> |
232 |
</manifest> |
233 |
</jar> |
234 |
</target> |
235 |
|
236 |
<!-- ====================================================================== --> |
237 |
<!-- A dummy target for the package named after the type it creates --> |
238 |
<!-- ====================================================================== --> |
239 |
|
240 |
<target name="jar" depends="package" description="Builds the jar for the application"/> |
241 |
|
242 |
</project> |