Gentoo Archives: gentoo-commits

From: "William Thomson (wltjr)" <wltjr@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-servers/tomcat/files/5.5: jsr152_jsr154_examples_build_xml.patch main_tomcat_catalina_jasper_build_xml.patch
Date: Sat, 08 Sep 2007 18:35:23
Message-Id: E1IU52l-0000fu-R9@stork.gentoo.org
1 wltjr 07/09/08 18:28:31
2
3 Added: jsr152_jsr154_examples_build_xml.patch
4 main_tomcat_catalina_jasper_build_xml.patch
5 Log:
6 Bumped to latest release, unified multiple patch files into two, partly result of having to re-create patches. Dropped ~x86-fbsd keyword due to it missing on a dep per bug #191729.
7 (Portage version: 2.1.3.7)
8
9 Revision Changes Path
10 1.1 www-servers/tomcat/files/5.5/jsr152_jsr154_examples_build_xml.patch
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/tomcat/files/5.5/jsr152_jsr154_examples_build_xml.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/tomcat/files/5.5/jsr152_jsr154_examples_build_xml.patch?rev=1.1&content-type=text/plain
14
15 Index: jsr152_jsr154_examples_build_xml.patch
16 ===================================================================
17 diff -Naur apache-tomcat-5.5.25-src_orig/servletapi/jsr152/build.xml apache-tomcat-5.5.25-src/servletapi/jsr152/build.xml
18 --- apache-tomcat-5.5.25-src_orig/servletapi/jsr152/build.xml 2007-09-08 12:24:17.000000000 -0400
19 +++ apache-tomcat-5.5.25-src/servletapi/jsr152/build.xml 2007-09-08 14:14:30.000000000 -0400
20 @@ -37,6 +37,7 @@
21
22 <path id="examples.classpath">
23 <pathelement location="${jsp-api.build}/classes"/>
24 + <pathelement location="${jsp-api.jar}"/>
25 <pathelement location="${servlet-api.jar}"/>
26 <pathelement location="${mail.jar}"/>
27 </path>
28 @@ -244,7 +245,7 @@
29 <target name="jar" depends="compile"
30 description="Create jar">
31
32 - <!-- Prepare Manifest -->
33 + <!-- Prepare Manifest
34 <copy tofile="${jsp-api.build}/manifest"
35 file="src/etc/manifest" overwrite="yes">
36 <filterset>
37 @@ -253,13 +254,12 @@
38 </filterset>
39 </copy>
40
41 - <!-- Create JAR file -->
42 <jar jarfile="${jsp-api.jar}"
43 basedir="${jsp-api.build}/classes"
44 manifest="${jsp-api.build}/manifest">
45 <include name="javax/servlet/jsp/**" />
46 </jar>
47 -
48 +-->
49 </target>
50
51 <target name="dist" depends="compile,examples,javadoc,jar"
52 diff -Naur apache-tomcat-5.5.25-src_orig/servletapi/jsr154/build.xml apache-tomcat-5.5.25-src/servletapi/jsr154/build.xml
53 --- apache-tomcat-5.5.25-src_orig/servletapi/jsr154/build.xml 2007-09-08 12:24:17.000000000 -0400
54 +++ apache-tomcat-5.5.25-src/servletapi/jsr154/build.xml 2007-09-08 14:10:08.000000000 -0400
55 @@ -34,6 +34,7 @@
56 <property name="servlet-api.jar" value="${servlet-api.dist}/lib/servlet-api.jar"/>
57 <path id="examples.classpath">
58 <pathelement location="${servlet-api.build}/classes"/>
59 + <pathelement location="${servlet-api.jar}"/>
60 </path>
61
62
63 @@ -142,7 +143,7 @@
64 <target name="jar" depends="compile"
65 description="Create the jar">
66
67 - <!-- Prepare Manifest -->
68 + <!-- Prepare Manifest
69 <copy tofile="${servlet-api.build}/manifest"
70 file="src/etc/manifest" overwrite="yes">
71 <filterset>
72 @@ -151,14 +152,13 @@
73 </filterset>
74 </copy>
75
76 - <!-- Create JAR file -->
77 <jar jarfile="${servlet-api.jar}"
78 basedir="${servlet-api.build}/classes"
79 manifest="${servlet-api.build}/manifest">
80 <include name="javax/servlet/**"/>
81 <exclude name="javax/servlet/jsp/**"/>
82 </jar>
83 -
84 +-->
85 </target>
86
87 <target name="dist" depends="compile,examples,javadoc,jar"
88
89
90
91 1.1 www-servers/tomcat/files/5.5/main_tomcat_catalina_jasper_build_xml.patch
92
93 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/tomcat/files/5.5/main_tomcat_catalina_jasper_build_xml.patch?rev=1.1&view=markup
94 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/tomcat/files/5.5/main_tomcat_catalina_jasper_build_xml.patch?rev=1.1&content-type=text/plain
95
96 Index: main_tomcat_catalina_jasper_build_xml.patch
97 ===================================================================
98 diff -Naur apache-tomcat-5.5.25-src_orig/build/build.xml apache-tomcat-5.5.25-src/build/build.xml
99 --- apache-tomcat-5.5.25-src_orig/build/build.xml 2007-09-08 12:24:17.000000000 -0400
100 +++ apache-tomcat-5.5.25-src/build/build.xml 2007-09-08 12:57:43.000000000 -0400
101 @@ -161,6 +161,7 @@
102
103 <!-- ====================== DEPLOY: Copy Static Files =================== -->
104 <target name="deploy-static" depends="init">
105 +<!--
106 <copy file="${jsp-api.jar}" todir="${tomcat.build}/common/lib"/>
107 <copy file="${servlet-api.jar}" todir="${tomcat.build}/common/lib"/>
108
109 @@ -179,9 +180,10 @@
110 <copy tofile="${tomcat.build}/bin/tomcat-native.tar.gz"
111 file="${tomcat-native.tar.gz}" />
112
113 - <!-- <copy todir="${tomcat.build}/common/lib" file="${ant.jar}"/>
114 - <copy todir="${tomcat.build}/common/lib" file="${ant-launcher.jar}"/> -->
115 + <copy todir="${tomcat.build}/common/lib" file="${ant.jar}"/>
116 + <copy todir="${tomcat.build}/common/lib" file="${ant-launcher.jar}"/>
117 <copy todir="${tomcat.build}/common/lib" file="${jasper-compiler-jdt.jar}"/>
118 +-->
119 </target>
120
121 <!-- ====================== Build all components =================== -->
122 @@ -413,15 +415,14 @@
123 <target name="build-webapps-precompile"
124 depends="init" description="Precompile webapps" >
125
126 + <antcall target="build-webapp-precompile-admin" />
127 + <antcall target="build-webapp-precompile-examples" />
128 +
129 <!-- JSPC -->
130 - <property name="admin.base" location="${tomcat.build}/server/webapps/admin" />
131 <property name="ROOT.base" location="${tomcat.build}/webapps/ROOT" />
132 - <property name="jsp-examples.base" location="${tomcat.build}/webapps/jsp-examples" />
133
134 - <mkdir dir="${admin.base}/WEB-INF/src/admin" />
135 <mkdir dir="${ROOT.base}/WEB-INF/src" />
136 <mkdir dir="${ROOT.base}/WEB-INF/classes" />
137 - <mkdir dir="${jsp-examples.base}/WEB-INF/src" />
138
139 <path id="jspc.classpath">
140 <pathelement location="${java.home}/../lib/tools.jar"/>
141 @@ -455,23 +456,6 @@
142 addWebXmlMappings="true"
143 outputDir="${ROOT.base}/WEB-INF/src" />
144
145 - <jasper2
146 - compile="false"
147 - validateXml="false"
148 - uriroot="${jsp-examples.base}"
149 - webXmlFragment="${jsp-examples.base}/WEB-INF/generated_web.xml"
150 - addWebXmlMappings="true"
151 - outputDir="${jsp-examples.base}/WEB-INF/src" />
152 -
153 - <jasper2
154 - package="admin"
155 - compile="false"
156 - validateXml="false"
157 - uriroot="${admin.base}"
158 - webXmlFragment="${admin.base}/WEB-INF/generated_web.xml"
159 - addWebXmlMappings="true"
160 - outputDir="${admin.base}/WEB-INF/src/admin" />
161 -
162 <javac destdir="${ROOT.base}/WEB-INF/classes"
163 optimize="off"
164 debug="${compile.debug}"
165 @@ -492,62 +476,90 @@
166 </classpath>
167 <include name="**" />
168 </javac>
169 + </target>
170
171 - <mkdir dir="${jsp-examples.base}/WEB-INF/src/tags"/>
172 - <copy todir="${jsp-examples.base}/WEB-INF/classes">
173 - <fileset dir="${jsp-examples.base}/WEB-INF/src">
174 - <include name="**/*.class" />
175 - </fileset>
176 - </copy>
177 -
178 - <javac destdir="${jsp-examples.base}/WEB-INF/classes"
179 + <target name="build-webapp-precompile-admin" unless="admin.precompile.notrequired">
180 + <property name="admin.base" location="${tomcat.build}/server/webapps/admin" />
181 + <mkdir dir="${admin.base}/WEB-INF/src/admin" />
182 + <taskdef classname="org.apache.jasper.JspC" name="jasper2" >
183 + <classpath refid="jspc.classpath"/>
184 + </taskdef>
185 + <jasper2
186 + package="admin"
187 + compile="false"
188 + validateXml="false"
189 + uriroot="${admin.base}"
190 + webXmlFragment="${admin.base}/WEB-INF/generated_web.xml"
191 + addWebXmlMappings="true"
192 + outputDir="${admin.base}/WEB-INF/src/admin" />
193 + <javac destdir="${admin.base}/WEB-INF/classes"
194 optimize="off"
195 debug="${compile.debug}"
196 deprecation="${compile.deprecation}"
197 source="${compile.source}"
198 failonerror="false"
199 - srcdir="${jsp-examples.base}/WEB-INF/src"
200 + srcdir="${admin.base}/WEB-INF/src"
201 excludes="**/*.smap">
202 <classpath>
203 <pathelement location="${java.home}/../lib/tools.jar"/>
204 <fileset dir="${tomcat.build}/server/lib">
205 <include name="*.jar"/>
206 </fileset>
207 - <fileset dir="${jsp-examples.base}/WEB-INF/lib">
208 + <fileset dir="${admin.base}/WEB-INF/lib">
209 <include name="*.jar"/>
210 </fileset>
211 <fileset dir="${tomcat.build}/common/lib">
212 <include name="*.jar"/>
213 </fileset>
214 <pathelement location="${tomcat.build}/classes"/>
215 - <pathelement location="${jsp-examples.base}/WEB-INF/classes"/>
216 </classpath>
217 - <include name="**" />
218 - <exclude name="tags/**" />
219 + <include name="admin/**" />
220 </javac>
221 + </target>
222
223 - <javac destdir="${admin.base}/WEB-INF/classes"
224 + <target name="build-webapp-precompile-examples" unless="examples.precompile.notrequired">
225 + <property name="jsp-examples.base" location="${tomcat.build}/webapps/jsp-examples" />
226 + <mkdir dir="${jsp-examples.base}/WEB-INF/src" />
227 + <taskdef classname="org.apache.jasper.JspC" name="jasper2" >
228 + <classpath refid="jspc.classpath"/>
229 + </taskdef>
230 + <jasper2
231 + compile="false"
232 + validateXml="false"
233 + uriroot="${jsp-examples.base}"
234 + webXmlFragment="${jsp-examples.base}/WEB-INF/generated_web.xml"
235 + addWebXmlMappings="true"
236 + outputDir="${jsp-examples.base}/WEB-INF/src" />
237 + <mkdir dir="${jsp-examples.base}/WEB-INF/src/tags"/>
238 + <copy todir="${jsp-examples.base}/WEB-INF/classes">
239 + <fileset dir="${jsp-examples.base}/WEB-INF/src">
240 + <include name="**/*.class" />
241 + </fileset>
242 + </copy>
243 + <javac destdir="${jsp-examples.base}/WEB-INF/classes"
244 optimize="off"
245 debug="${compile.debug}"
246 deprecation="${compile.deprecation}"
247 source="${compile.source}"
248 failonerror="false"
249 - srcdir="${admin.base}/WEB-INF/src"
250 + srcdir="${jsp-examples.base}/WEB-INF/src"
251 excludes="**/*.smap">
252 <classpath>
253 <pathelement location="${java.home}/../lib/tools.jar"/>
254 <fileset dir="${tomcat.build}/server/lib">
255 <include name="*.jar"/>
256 </fileset>
257 - <fileset dir="${admin.base}/WEB-INF/lib">
258 + <fileset dir="${jsp-examples.base}/WEB-INF/lib">
259 <include name="*.jar"/>
260 </fileset>
261 <fileset dir="${tomcat.build}/common/lib">
262 <include name="*.jar"/>
263 </fileset>
264 <pathelement location="${tomcat.build}/classes"/>
265 + <pathelement location="${jsp-examples.base}/WEB-INF/classes"/>
266 </classpath>
267 - <include name="admin/**" />
268 + <include name="**" />
269 + <exclude name="tags/**" />
270 </javac>
271 </target>
272
273 @@ -676,7 +688,6 @@
274 <param name="sourcefile" value="${commons-collections-src.loc}"/>
275 <param name="destfile" value="${tomcat-dbcp.jar}" />
276 </antcall>
277 - -->
278 <antcall target="downloadgz">
279 <param name="sourcefile" value="${commons-pool-src.loc}"/>
280 <param name="destfile" value="${tomcat-dbcp.jar}" />
281 @@ -694,6 +705,7 @@
282 <param name="destdir" value="${base.path}"/>
283 </antcall>
284 <antcall target="build-jasper-compiler-jdt" />
285 + -->
286 </target>
287
288 <target name="build-tomcat-dbcp">
289 @@ -773,14 +785,7 @@
290 </jar>
291 </target>
292
293 - <target name="build-webapps" depends="init"
294 - description="build webapps">
295 -
296 - <echo>========== Building: webapps </echo>
297 -
298 - <mkdir dir="${tomcat.build}/webapps" />
299 - <mkdir dir="${tomcat.build}/server/webapps" />
300 -
301 + <target name="build-examples" unless="examples.build.notrequired">
302 <!-- The build files are far too difficult to hack - just build it and copy -->
303 <ant dir="${api.home}/jsr154" target="dist">
304 </ant>
305 @@ -798,6 +803,17 @@
306 <exclude name="WEB-INF/tagPlugins.xml" />
307 </fileset>
308 </copy>
309 + </target>
310 +
311 + <target name="build-webapps" depends="init"
312 + description="build webapps">
313 +
314 + <echo>========== Building: webapps </echo>
315 +
316 + <mkdir dir="${tomcat.build}/webapps" />
317 + <mkdir dir="${tomcat.build}/server/webapps" />
318 +
319 + <antcall target="build-examples" />
320
321 <ant dir="${catalina.home}/webapps/ROOT" target="build-main">
322 <property name="webapps.build" value="${tomcat.build}/webapps" />
323 @@ -869,14 +885,7 @@
324 filtering="true" />
325
326 <!-- Build JARs for webapps classes -->
327 - <mkdir dir="${tomcat.build}/server/webapps/admin/WEB-INF/lib" />
328 - <jar jarfile="${tomcat.build}/server/webapps/admin/WEB-INF/lib/catalina-admin.jar"
329 - index="true">
330 - <fileset dir="${tomcat.build}/server/webapps/admin/WEB-INF/classes">
331 - <include name="**/*.class" />
332 - <include name="**/*.properties" />
333 - </fileset>
334 - </jar>
335 + <antcall target="fix-admin-webapp" />
336 <mkdir dir="${tomcat.build}/server/webapps/manager/WEB-INF/lib" />
337 <jar jarfile="${tomcat.build}/server/webapps/manager/WEB-INF/lib/catalina-manager.jar"
338 index="true">
339 @@ -915,9 +924,19 @@
340 todir="${tomcat.build}/conf/Catalina/localhost" />
341 <copy file="${tomcat.build}/server/webapps/host-manager/host-manager.xml"
342 todir="${tomcat.build}/conf/Catalina/localhost" />
343 + </target>
344 +
345 + <target name="fix-admin-webapp" unless="admin.build.notrequired">
346 + <mkdir dir="${tomcat.build}/server/webapps/admin/WEB-INF/lib" />
347 + <jar jarfile="${tomcat.build}/server/webapps/admin/WEB-INF/lib/catalina-admin.jar"
348 + index="true">
349 + <fileset dir="${tomcat.build}/server/webapps/admin/WEB-INF/classes">
350 + <include name="**/*.class" />
351 + <include name="**/*.properties" />
352 + </fileset>
353 + </jar>
354 <copy file="${tomcat.build}/server/webapps/admin/admin.xml"
355 todir="${tomcat.build}/conf/Catalina/localhost" />
356 -
357 </target>
358
359 <!-- ====================== Embed target =================== -->
360 @@ -1060,11 +1079,11 @@
361 <!-- ====================== Compat target =================== -->
362
363 <target name="compat" description="Create compatibility binaries for JREs before 1.5" >
364 -
365 +<!--
366 <copy todir="${tomcat.compat}/common/endorsed" file="${xercesImpl.jar}"/>
367 <copy todir="${tomcat.compat}/common/endorsed" file="${xml-apis.jar}"/>
368 <copy tofile="${tomcat.compat}/bin/jmx.jar" file="${jmx.jar}"/>
369 -
370 +-->
371 </target>
372
373 <!-- ====================== DEPLOY: Deploy Components =================== -->
374 @@ -1111,8 +1130,9 @@
375 <!-- Copy Unix JSVC from commons-daemon -->
376 <copy file="${commons-daemon.jsvc.tar.gz}"
377 tofile="${tomcat.dist}/bin/jsvc.tar.gz" />
378 +<!--
379 <copy todir="${tomcat.build}/bin" file="${commons-daemon.jar}" />
380 -
381 +-->
382 <echo>Target: Webapps precompilation ...</echo>
383
384 <antcall target="build-admin"/>
385 @@ -1213,11 +1233,11 @@
386 <target name="run-tester"
387 description="Catalina Tests" depends="dist-tester">
388
389 - <!-- For Java 1.4 -->
390 + <!-- For Java 1.4
391 <copy file="${jmx.jar}" tofile="${tomcat.build}/bin/jmx.jar" />
392 <copy todir="${tomcat.build}/common/endorsed" file="${xercesImpl.jar}"/>
393 <copy todir="${tomcat.build}/common/endorsed" file="${xml-apis.jar}"/>
394 -
395 + -->
396 <parallel>
397
398 <java classname="LauncherBootstrap" fork="yes">
399 @@ -1899,11 +1919,10 @@
400 <mkdir dir="${base.path}" />
401
402 <!-- commons-digester needs ../LICENSE -->
403 - <!-- That is ugly XXX needs a review -->
404 + <!-- That is ugly XXX needs a review
405 <copy file="LICENSE" tofile="../LICENSE"/>
406 <copy file="LICENSE" tofile="${base.path}/LICENSE"/>
407
408 - <!-- Downdown any sub package or tools needed. -->
409 <antcall target="downloadgz">
410 <param name="sourcefile" value="${commons-beanutils.loc}"/>
411 <param name="destfile" value="${commons-beanutils.jar}"/>
412 @@ -1940,7 +1959,6 @@
413 </antcall>
414
415 <antcall target="downloadgz">
416 - <!-- xerces2 brings 2 files, test for one of them -->
417 <param name="sourcefile" value="${xerces.loc}"/>
418 <param name="destfile" value="${xml-apis.jar}"/>
419 </antcall>
420 @@ -1961,7 +1979,6 @@
421 <param name="destfile" value="${commons-launcher.jar}"/>
422 </antcall>
423
424 - <!--
425 <antcall target="downloadgz">
426 <param name="sourcefile" value="${commons-pool.loc}"/>
427 <param name="destfile" value="${commons-pool.jar}"/>
428 @@ -1972,7 +1989,6 @@
429 <param name="destfile" value="${commons-dbcp.jar}"/>
430 <param name="destdir" value="${base.path}"/>
431 </antcall>
432 - -->
433
434 <antcall target="downloadgz">
435 <param name="sourcefile" value="${commons-httpclient.loc}"/>
436 @@ -2000,7 +2016,7 @@
437 <param name="destfile" value="${tomcat-native.tar.gz}"/>
438 <param name="destdir" value="${tomcat-native.home}"/>
439 </antcall>
440 -
441 + -->
442 <!-- Build the dependencies that are not yet released -->
443 <antcall target="build-depends"/>
444
445 diff -Naur apache-tomcat-5.5.25-src_orig/build.xml apache-tomcat-5.5.25-src/build.xml
446 --- apache-tomcat-5.5.25-src_orig/build.xml 2007-09-08 12:24:17.000000000 -0400
447 +++ apache-tomcat-5.5.25-src/build.xml 2007-09-08 12:45:21.000000000 -0400
448 @@ -81,13 +81,10 @@
449
450 <target name="checkout"
451 description="Update or checkout required sources from SVN">
452 -
453 +<!--
454 <echo level="info"
455 message="If the checkout fails, see http://tomcat.apache.org/svn.html and http://subversion.tigris.org/faq.html#proxy" />
456
457 - <!-- Bugzilla 37977: http://issues.apache.org/bugzilla/show_bug.cgi?id=37977 -->
458 - <!-- hackish: inputstring="t${line.separator}" is t+<enter> for svn -->
459 - <!-- to temporarily accept the certificate of svn.apache.org. -->
460 <exec dir="${basedir}"
461 executable="svn"
462 inputstring="t${line.separator}"
463 @@ -96,7 +93,7 @@
464 <arg value="${svnroot}/${current.loc}" />
465 <arg value="${basedir}" />
466 </exec>
467 -
468 +-->
469 </target>
470
471 <!-- *************** UTILITY TARGETS *************** -->
472 diff -Naur apache-tomcat-5.5.25-src_orig/container/catalina/build.xml apache-tomcat-5.5.25-src/container/catalina/build.xml
473 --- apache-tomcat-5.5.25-src_orig/container/catalina/build.xml 2007-09-08 12:24:17.000000000 -0400
474 +++ apache-tomcat-5.5.25-src/container/catalina/build.xml 2007-09-08 13:03:28.000000000 -0400
475 @@ -61,6 +61,7 @@
476 <pathelement location="${jaas.jar}"/>
477 <pathelement location="${javagroups.jar}"/>
478 <pathelement location="${jcert.jar}"/>
479 + <pathelement location="${jdt.jar}"/>
480 <pathelement location="${jmx.jar}"/>
481 <pathelement location="${jmx-remote.jar}"/>
482 <pathelement location="${jndi.jar}"/>
483 @@ -92,6 +93,7 @@
484 <pathelement location="${commons-modeler.jar}"/>
485 <pathelement location="${jaas.jar}"/>
486 <pathelement location="${jcert.jar}"/>
487 + <pathelement location="${jdt.jar}"/>
488 <pathelement location="${jmx.jar}"/>
489 <pathelement location="${jndi.jar}"/>
490 <pathelement location="${jnet.jar}"/>
491 @@ -549,9 +551,9 @@
492 file="${commons-logging-api.jar}"/>
493 <!--
494 <copy todir="${catalina.build}/common/lib" file="${servlet-api.jar}"/>
495 --->
496 <copy todir="${catalina.build}/common/lib"
497 file="${tomcat-dbcp.jar}" />
498 +-->
499
500 <!-- Configuration Files -->
501 <copy todir="${catalina.build}/conf">
502 diff -Naur apache-tomcat-5.5.25-src_orig/jasper/build.xml apache-tomcat-5.5.25-src/jasper/build.xml
503 --- apache-tomcat-5.5.25-src_orig/jasper/build.xml 2007-09-08 12:24:17.000000000 -0400
504 +++ apache-tomcat-5.5.25-src/jasper/build.xml 2007-09-08 13:02:30.000000000 -0400
505 @@ -47,6 +47,7 @@
506 <pathelement location="${jsp-api.jar}"/>
507 <pathelement location="${tools.jar}"/>
508 <pathelement location="${jasper-compiler-jdt.jar}"/>
509 + <pathelement location="${jdt.jar}"/>
510 <pathelement location="${xerces.jar}"/>
511 <pathelement location="${xercesImpl.jar}"/>
512 <pathelement location="${xml-apis.jar}"/>
513
514
515
516 --
517 gentoo-commits@g.o mailing list