Gentoo Archives: gentoo-commits

From: "Patrice Clement (monsieurp)" <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-java/tomcat-jstl-el/files: tomcat-jstl-el-1.2.5-build.xml
Date: Wed, 03 Jun 2015 07:56:46
Message-Id: 20150603075637.EFFC5A24@oystercatcher.gentoo.org
1 monsieurp 15/06/03 07:56:37
2
3 Added: tomcat-jstl-el-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-el/files/tomcat-jstl-el-1.2.5-build.xml
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/tomcat-jstl-el/files/tomcat-jstl-el-1.2.5-build.xml?rev=1.1&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/tomcat-jstl-el/files/tomcat-jstl-el-1.2.5-build.xml?rev=1.1&content-type=text/plain
15
16 Index: tomcat-jstl-el-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 6/2/15 9:43 PM -->
31 <!-- See: http://maven.apache.org/plugins/maven-ant-plugin/ -->
32 <!-- -->
33 <!-- ====================================================================== -->
34
35 <project name="taglibs-standard-jstlel-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-jstlel-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 <copy todir="${maven.build.outputDir}">
98 <fileset dir="${maven.build.resourceDir.0}"/>
99 </copy>
100 </target>
101
102 <!-- ====================================================================== -->
103 <!-- Test-compilation target -->
104 <!-- ====================================================================== -->
105
106 <target name="compile-tests"
107 depends="compile"
108 description="Compile the test code"
109 unless="maven.test.skip">
110 <mkdir dir="${maven.build.testOutputDir}"/>
111 <javac destdir="${maven.build.testOutputDir}"
112 encoding="UTF-8"
113 nowarn="false"
114 debug="true"
115 optimize="false"
116 deprecation="true"
117 target="1.5"
118 verbose="false"
119 fork="false"
120 source="1.5">
121 <src>
122 <pathelement location="${maven.build.testDir.0}"/>
123 </src>
124 <classpath>
125 <path refid="build.test.classpath"/>
126 <pathelement location="${maven.build.outputDir}"/>
127 </classpath>
128 </javac>
129 <copy todir="${maven.build.testOutputDir}">
130 <fileset dir="${maven.build.testResourceDir.0}"/>
131 </copy>
132 </target>
133
134 <!-- ====================================================================== -->
135 <!-- Run all tests -->
136 <!-- ====================================================================== -->
137
138 <target name="test"
139 depends="compile-tests, junit-missing"
140 unless="junit.skipped"
141 description="Run the test cases">
142 <mkdir dir="${maven.test.reports}"/>
143 <junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir=".">
144 <sysproperty key="basedir" value="."/>
145 <formatter type="xml"/>
146 <formatter type="plain" usefile="false"/>
147 <classpath>
148 <path refid="build.test.classpath"/>
149 <pathelement location="${maven.build.outputDir}"/>
150 <pathelement location="${maven.build.testOutputDir}"/>
151 </classpath>
152 <batchtest todir="${maven.test.reports}" unless="test">
153 <fileset dir="${maven.build.testDir.0}">
154 <include name="**/Test*.java"/>
155 <include name="**/*Test.java"/>
156 <include name="**/*TestCase.java"/>
157 <exclude name="**/*Abstract*Test.java"/>
158 </fileset>
159 </batchtest>
160 <batchtest todir="${maven.test.reports}" if="test">
161 <fileset dir="${maven.build.testDir.0}">
162 <include name="**/${test}.java"/>
163 <exclude name="**/*Abstract*Test.java"/>
164 </fileset>
165 </batchtest>
166 </junit>
167 </target>
168
169 <target name="test-junit-present">
170 <available classname="junit.framework.Test" property="junit.present" classpathref="build.test.classpath"/>
171 </target>
172
173 <target name="test-junit-status"
174 depends="test-junit-present">
175 <condition property="junit.missing">
176 <and>
177 <isfalse value="${junit.present}"/>
178 <isfalse value="${maven.test.skip}"/>
179 </and>
180 </condition>
181 <condition property="junit.skipped">
182 <or>
183 <isfalse value="${junit.present}"/>
184 <istrue value="${maven.test.skip}"/>
185 </or>
186 </condition>
187 </target>
188
189 <target name="junit-missing"
190 depends="test-junit-status"
191 if="junit.missing">
192 <echo>=================================== WARNING ===================================</echo>
193 <echo> JUnit is not present in the test classpath or your $ANT_HOME/lib directory. Tests not executed.</echo>
194 <echo>===============================================================================</echo>
195 </target>
196
197 <!-- ====================================================================== -->
198 <!-- Javadoc target -->
199 <!-- ====================================================================== -->
200
201 <target name="javadoc" description="Generates the Javadoc of the application">
202 <javadoc sourcepath="${maven.build.srcDir.0}"
203 packagenames="*"
204 destdir="${maven.reporting.outputDirectory}/apidocs"
205 access="protected"
206 old="false"
207 verbose="false"
208 version="true"
209 use="true"
210 author="true"
211 splitindex="false"
212 nodeprecated="false"
213 nodeprecatedlist="false"
214 notree="false"
215 noindex="false"
216 nohelp="false"
217 nonavbar="false"
218 serialwarn="false"
219 charset="ISO-8859-1"
220 linksource="false"
221 breakiterator="false">
222 <link href="http://download.oracle.com/javase/1.5.0/docs/api"/>
223 </javadoc>
224 </target>
225
226 <!-- ====================================================================== -->
227 <!-- Package target -->
228 <!-- ====================================================================== -->
229
230 <target name="package" depends="compile,test" description="Package the application">
231 <jar jarfile="${maven.build.dir}/${maven.build.finalName}.jar"
232 compress="true"
233 index="false"
234 basedir="${maven.build.outputDir}"
235 excludes="**/package.html">
236 <manifest>
237 <attribute name="Main-Class" value="Main"/>
238 </manifest>
239 </jar>
240 </target>
241
242 <!-- ====================================================================== -->
243 <!-- A dummy target for the package named after the type it creates -->
244 <!-- ====================================================================== -->
245
246 <target name="jar" depends="package" description="Builds the jar for the application"/>
247
248 <!-- ====================================================================== -->
249 <!-- Download dependencies target -->
250 <!-- ====================================================================== -->
251
252 <target name="test-offline">
253 <condition property="maven.mode.offline">
254 <equals arg1="${maven.settings.offline}" arg2="true"/>
255 </condition>
256 </target>
257
258 </project>