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-impl/files: tomcat-jstl-impl-1.2.5-SetSupport.patch tomcat-jstl-impl-1.2.5-ImportSupport.patch tomcat-jstl-impl-1.2.5-build.xml
Date: Wed, 03 Jun 2015 07:58:17
Message-Id: 20150603075811.F21ACA1C@oystercatcher.gentoo.org
1 monsieurp 15/06/03 07:58:11
2
3 Added: tomcat-jstl-impl-1.2.5-SetSupport.patch
4 tomcat-jstl-impl-1.2.5-ImportSupport.patch
5 tomcat-jstl-impl-1.2.5-build.xml
6 Log:
7 Initial commit. Fix bug 551032.
8
9 Signed-off-by: Patrice Clement <monsieurp@g.o>
10 (Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 93491BB8)
11
12 Revision Changes Path
13 1.1 dev-java/tomcat-jstl-impl/files/tomcat-jstl-impl-1.2.5-SetSupport.patch
14
15 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/tomcat-jstl-impl/files/tomcat-jstl-impl-1.2.5-SetSupport.patch?rev=1.1&view=markup
16 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/tomcat-jstl-impl/files/tomcat-jstl-impl-1.2.5-SetSupport.patch?rev=1.1&content-type=text/plain
17
18 Index: tomcat-jstl-impl-1.2.5-SetSupport.patch
19 ===================================================================
20 --- impl/src/test/java/org/apache/taglibs/standard/tag/common/core/SetSupportTest.java.orig 2015-06-01 22:59:35.208000000 +0000
21 +++ impl/src/test/java/org/apache/taglibs/standard/tag/common/core/SetSupportTest.java 2015-06-01 22:59:54.191000000 +0000
22 @@ -334,30 +334,12 @@
23 }
24
25 @Test
26 - public void testResultFromBodyContent() throws JspException {
27 - tag = new MockSetSupport();
28 - BodyContent bodyContent = createMock(BodyContent.class);
29 - expect(bodyContent.getString()).andStubReturn(" Hello ");
30 - replay(bodyContent);
31 - tag.setBodyContent(bodyContent);
32 - Assert.assertEquals(VALUE, tag.getResult());
33 - }
34 -
35 - @Test
36 public void testResultFromNullBodyContent() throws JspException {
37 tag = new MockSetSupport();
38 tag.setBodyContent(null);
39 Assert.assertEquals(tag.getResult(), "");
40 }
41
42 - @Test
43 - public void testResultFromEmptyBodyContent() throws JspException {
44 - tag = new MockSetSupport();
45 - BodyContent bodyContent = createMock(BodyContent.class);
46 - expect(bodyContent.getString()).andStubReturn(null);
47 - Assert.assertEquals("", tag.getResult());
48 - }
49 -
50 public static class MockSetSupport extends SetSupport {
51 private final boolean valueSpecified;
52 private final Object value;
53
54
55
56 1.1 dev-java/tomcat-jstl-impl/files/tomcat-jstl-impl-1.2.5-ImportSupport.patch
57
58 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/tomcat-jstl-impl/files/tomcat-jstl-impl-1.2.5-ImportSupport.patch?rev=1.1&view=markup
59 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/tomcat-jstl-impl/files/tomcat-jstl-impl-1.2.5-ImportSupport.patch?rev=1.1&content-type=text/plain
60
61 Index: tomcat-jstl-impl-1.2.5-ImportSupport.patch
62 ===================================================================
63 --- impl/src/main/java/org/apache/taglibs/standard/tag/common/core/ImportSupport.java.orig 2015-06-01 22:34:34.882000000 +0000
64 +++ impl/src/main/java/org/apache/taglibs/standard/tag/common/core/ImportSupport.java 2015-06-01 22:35:29.078000000 +0000
65 @@ -36,6 +36,7 @@
66 import javax.servlet.ServletContext;
67 import javax.servlet.ServletException;
68 import javax.servlet.ServletOutputStream;
69 +import javax.servlet.WriteListener;
70 import javax.servlet.http.HttpServletRequest;
71 import javax.servlet.http.HttpServletResponse;
72 import javax.servlet.http.HttpServletResponseWrapper;
73 @@ -430,6 +431,24 @@
74 public void write(int b) throws IOException {
75 bos.write(b);
76 }
77 +
78 + @Override
79 + public boolean isReady() {
80 + return true;
81 + }
82 +
83 + @Override
84 + public void setWriteListener(WriteListener writeListener) {
85 + }
86 +
87 + @Override
88 + public void close() throws IOException {
89 + }
90 +
91 + @Override
92 + public void flush() throws IOException {
93 + }
94 +
95 };
96
97 /**
98
99
100
101 1.1 dev-java/tomcat-jstl-impl/files/tomcat-jstl-impl-1.2.5-build.xml
102
103 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/tomcat-jstl-impl/files/tomcat-jstl-impl-1.2.5-build.xml?rev=1.1&view=markup
104 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/tomcat-jstl-impl/files/tomcat-jstl-impl-1.2.5-build.xml?rev=1.1&content-type=text/plain
105
106 Index: tomcat-jstl-impl-1.2.5-build.xml
107 ===================================================================
108 <?xml version="1.0" encoding="UTF-8"?>
109
110 <!-- ====================================================================== -->
111 <!-- Ant build file (http://ant.apache.org/) for Ant 1.6.2 or above. -->
112 <!-- ====================================================================== -->
113
114 <!-- ====================================================================== -->
115 <!-- ===================== - DO NOT EDIT THIS FILE! - ===================== -->
116 <!-- ====================================================================== -->
117 <!-- -->
118 <!-- Any modifications will be overwritten. -->
119 <!-- -->
120 <!-- Generated by Maven Ant Plugin on 6/1/15 9:48 PM -->
121 <!-- See: http://maven.apache.org/plugins/maven-ant-plugin/ -->
122 <!-- -->
123 <!-- ====================================================================== -->
124
125 <project name="taglibs-standard-impl-from-maven" default="package" basedir=".">
126
127 <!-- ====================================================================== -->
128 <!-- Build environment properties -->
129 <!-- ====================================================================== -->
130
131 <property file="${user.home}/.m2/maven.properties"/>
132 <property file="maven-build.properties"/>
133
134 <property name="maven.build.finalName" value="taglibs-standard-impl-1.2.5"/>
135 <property name="maven.build.dir" value="target"/>
136 <property name="maven.build.outputDir" value="${maven.build.dir}/classes"/>
137 <property name="maven.build.srcDir.0" value="src/main/java"/>
138 <property name="maven.build.resourceDir.0" value="src/main/resources"/>
139 <property name="maven.build.testOutputDir" value="${maven.build.dir}/test-classes"/>
140 <property name="maven.build.testDir.0" value="src/test/java"/>
141 <property name="maven.build.testResourceDir.0" value="src/test/resources"/>
142 <property name="maven.test.reports" value="${maven.build.dir}/test-reports"/>
143 <property name="maven.reporting.outputDirectory" value="${maven.build.dir}/site"/>
144
145 <property name="maven.repo.local" value="${user.home}/.m2/repository"/>
146 <property name="maven.settings.offline" value="false"/>
147 <property name="maven.settings.interactiveMode" value="true"/>
148
149 <!-- ====================================================================== -->
150 <!-- Defining classpaths -->
151 <!-- ====================================================================== -->
152
153 <path id="build.classpath">
154 </path>
155 <path id="build.test.classpath">
156 </path>
157
158 <!-- ====================================================================== -->
159 <!-- Cleaning up target -->
160 <!-- ====================================================================== -->
161
162 <target name="clean" description="Clean the output directory">
163 <delete dir="${maven.build.dir}"/>
164 </target>
165
166 <!-- ====================================================================== -->
167 <!-- Compilation target -->
168 <!-- ====================================================================== -->
169
170 <target name="compile" description="Compile the code">
171 <mkdir dir="${maven.build.outputDir}"/>
172 <javac destdir="${maven.build.outputDir}"
173 encoding="UTF-8"
174 nowarn="false"
175 debug="true"
176 optimize="false"
177 deprecation="true"
178 target="1.5"
179 verbose="false"
180 fork="false"
181 source="1.5">
182 <src>
183 <pathelement location="${maven.build.srcDir.0}"/>
184 </src>
185 <classpath refid="build.classpath"/>
186 </javac>
187 <copy todir="${maven.build.outputDir}">
188 <fileset dir="${maven.build.resourceDir.0}"/>
189 </copy>
190 </target>
191
192 <!-- ====================================================================== -->
193 <!-- Test-compilation target -->
194 <!-- ====================================================================== -->
195
196 <target name="compile-tests"
197 depends="compile"
198 description="Compile the test code"
199 unless="maven.test.skip">
200 <mkdir dir="${maven.build.testOutputDir}"/>
201 <javac destdir="${maven.build.testOutputDir}"
202 encoding="UTF-8"
203 nowarn="false"
204 debug="true"
205 optimize="false"
206 deprecation="true"
207 target="1.5"
208 verbose="false"
209 fork="false"
210 source="1.5">
211 <src>
212 <pathelement location="${maven.build.testDir.0}"/>
213 </src>
214 <classpath>
215 <path refid="build.test.classpath"/>
216 <pathelement location="${maven.build.outputDir}"/>
217 </classpath>
218 </javac>
219 <copy todir="${maven.build.testOutputDir}">
220 <fileset dir="${maven.build.testResourceDir.0}"/>
221 </copy>
222 </target>
223
224 <!-- ====================================================================== -->
225 <!-- Run all tests -->
226 <!-- ====================================================================== -->
227
228 <target name="test"
229 depends="compile-tests, junit-missing"
230 unless="junit.skipped"
231 description="Run the test cases">
232 <mkdir dir="${maven.test.reports}"/>
233 <junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir=".">
234 <sysproperty key="basedir" value="."/>
235 <formatter type="xml"/>
236 <formatter type="plain" usefile="false"/>
237 <classpath>
238 <path refid="build.test.classpath"/>
239 <pathelement location="${maven.build.outputDir}"/>
240 <pathelement location="${maven.build.testOutputDir}"/>
241 </classpath>
242 <batchtest todir="${maven.test.reports}" unless="test">
243 <fileset dir="${maven.build.testDir.0}">
244 <include name="**/Test*.java"/>
245 <include name="**/*Test.java"/>
246 <include name="**/*TestCase.java"/>
247 <exclude name="**/*Abstract*Test.java"/>
248 <exclude name="**/ExprSupportTest.java"/>
249 <exclude name="**/EscapeXMLTest.java"/>
250 </fileset>
251 </batchtest>
252 <batchtest todir="${maven.test.reports}" if="test">
253 <fileset dir="${maven.build.testDir.0}">
254 <include name="**/${test}.java"/>
255 <exclude name="**/*Abstract*Test.java"/>
256 <exclude name="**/ExprSupportTest.java"/>
257 <exclude name="**/EscapeXMLTest.java"/>
258 </fileset>
259 </batchtest>
260 </junit>
261 </target>
262
263 <target name="test-junit-present">
264 <available classname="junit.framework.Test" property="junit.present" classpathref="build.test.classpath"/>
265 </target>
266
267 <target name="test-junit-status"
268 depends="test-junit-present">
269 <condition property="junit.missing">
270 <and>
271 <isfalse value="${junit.present}"/>
272 <isfalse value="${maven.test.skip}"/>
273 </and>
274 </condition>
275 <condition property="junit.skipped">
276 <or>
277 <isfalse value="${junit.present}"/>
278 <istrue value="${maven.test.skip}"/>
279 </or>
280 </condition>
281 </target>
282
283 <target name="junit-missing"
284 depends="test-junit-status"
285 if="junit.missing">
286 <echo>=================================== WARNING ===================================</echo>
287 <echo> JUnit is not present in the test classpath or your $ANT_HOME/lib directory. Tests not executed.</echo>
288 <echo>===============================================================================</echo>
289 </target>
290
291 <!-- ====================================================================== -->
292 <!-- Javadoc target -->
293 <!-- ====================================================================== -->
294
295 <target name="javadoc" description="Generates the Javadoc of the application">
296 <javadoc sourcepath="${maven.build.srcDir.0}"
297 packagenames="*"
298 destdir="${maven.reporting.outputDirectory}/apidocs"
299 access="protected"
300 old="false"
301 verbose="false"
302 version="true"
303 use="true"
304 author="true"
305 splitindex="false"
306 nodeprecated="false"
307 nodeprecatedlist="false"
308 notree="false"
309 noindex="false"
310 nohelp="false"
311 nonavbar="false"
312 serialwarn="false"
313 charset="ISO-8859-1"
314 linksource="false"
315 breakiterator="false">
316 <link href="http://download.oracle.com/javase/1.5.0/docs/api"/>
317 </javadoc>
318 </target>
319
320 <!-- ====================================================================== -->
321 <!-- Package target -->
322 <!-- ====================================================================== -->
323
324 <target name="package" depends="compile,test" description="Package the application">
325 <jar jarfile="${maven.build.dir}/${maven.build.finalName}.jar"
326 compress="true"
327 index="false"
328 basedir="${maven.build.outputDir}"
329 excludes="**/package.html">
330 <manifest>
331 <attribute name="Main-Class" value="Main"/>
332 </manifest>
333 </jar>
334 </target>
335
336 <!-- ====================================================================== -->
337 <!-- A dummy target for the package named after the type it creates -->
338 <!-- ====================================================================== -->
339
340 <target name="jar" depends="package" description="Builds the jar for the application"/>
341
342 <!-- ====================================================================== -->
343 <!-- Download dependencies target -->
344 <!-- ====================================================================== -->
345
346 <target name="test-offline">
347 <condition property="maven.mode.offline">
348 <equals arg1="${maven.settings.offline}" arg2="true"/>
349 </condition>
350 </target>
351 </project>