svn commit: r1345021 - in /tomcat/tc7.0.x/trunk: ./ build.xml test/webapp-3.0/bug53257/index.jsp

2012-06-01 Thread markt
Author: markt
Date: Fri Jun  1 09:08:37 2012
New Revision: 1345021

URL: http://svn.apache.org/viewvc?rev=1345021view=rev
Log:
Fix checkstyle warnings in Ant build

Modified:
tomcat/tc7.0.x/trunk/   (props changed)
tomcat/tc7.0.x/trunk/build.xml
tomcat/tc7.0.x/trunk/test/webapp-3.0/bug53257/index.jsp

Propchange: tomcat/tc7.0.x/trunk/
--
  Merged /tomcat/trunk:r1345020

Modified: tomcat/tc7.0.x/trunk/build.xml
URL: 
http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/build.xml?rev=1345021r1=1345020r2=1345021view=diff
==
--- tomcat/tc7.0.x/trunk/build.xml (original)
+++ tomcat/tc7.0.x/trunk/build.xml Fri Jun  1 09:08:37 2012
@@ -467,6 +467,9 @@
 !-- Exclude these else Gump runs validate on them --
 exclude name=**/org/apache/tomcat/dbcp/**/
 exclude name=**/tomcat-deps/**/
+!-- Exclude simple test files --
+exclude name=test/webapp-3.0/bug53257/*.txt/
+exclude name=test/webapp-3.0-fragments/WEB-INF/classes/*.txt/
   /fileset
   fileset dir=modules/jdbc-pool 
 exclude name=.*/**/

Modified: tomcat/tc7.0.x/trunk/test/webapp-3.0/bug53257/index.jsp
URL: 
http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/test/webapp-3.0/bug53257/index.jsp?rev=1345021r1=1345020r2=1345021view=diff
==
--- tomcat/tc7.0.x/trunk/test/webapp-3.0/bug53257/index.jsp (original)
+++ tomcat/tc7.0.x/trunk/test/webapp-3.0/bug53257/index.jsp Fri Jun  1 09:08:37 
2012
@@ -13,7 +13,8 @@
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
---%%@page contentType=text/plain; charset=UTF-8
+--%
+%@page contentType=text/plain; charset=UTF-8
 %%@page import=java.net.URL,java.net.URLConnection%%
 String[] testFiles = new String[] {foo;bar.txt, foobar.txt,
 foo#bar.txt, foo%bar.txt, foo+bar.txt};
@@ -22,13 +23,13 @@
 if (url == null) {
 out.print(FAIL (url) -  + testFile + \n);
 } else {
-   URLConnection conn = url.openConnection();
-   long lastModified = conn.getLastModified();
-   if (lastModified == -1) {
-   out.print(FAIL (last modified)-  + testFile + \n);
-   } else {
-   out.print(PASS -  + testFile + \n);
-   }
+URLConnection conn = url.openConnection();
+long lastModified = conn.getLastModified();
+if (lastModified == -1) {
+out.print(FAIL (last modified)-  + testFile + \n);
+} else {
+out.print(PASS -  + testFile + \n);
+}
 }
 }
 %
\ No newline at end of file



-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



Re: svn commit: r1345021 - in /tomcat/tc7.0.x/trunk: ./ build.xml test/webapp-3.0/bug53257/index.jsp

2012-06-01 Thread Konstantin Kolinko
2012/6/1  ma...@apache.org:
 Author: markt
 Date: Fri Jun  1 09:08:37 2012
 New Revision: 1345021

 URL: http://svn.apache.org/viewvc?rev=1345021view=rev
 Log:
 Fix checkstyle warnings in Ant build

 Modified:
    tomcat/tc7.0.x/trunk/   (props changed)
    tomcat/tc7.0.x/trunk/build.xml
    tomcat/tc7.0.x/trunk/test/webapp-3.0/bug53257/index.jsp

 Propchange: tomcat/tc7.0.x/trunk/
 --
  Merged /tomcat/trunk:r1345020

 Modified: tomcat/tc7.0.x/trunk/build.xml
 URL: 
 http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/build.xml?rev=1345021r1=1345020r2=1345021view=diff
 ==
 --- tomcat/tc7.0.x/trunk/build.xml (original)
 +++ tomcat/tc7.0.x/trunk/build.xml Fri Jun  1 09:08:37 2012
 @@ -467,6 +467,9 @@
         !-- Exclude these else Gump runs validate on them --
         exclude name=**/org/apache/tomcat/dbcp/**/
         exclude name=**/tomcat-deps/**/
 +        !-- Exclude simple test files --
 +        exclude name=test/webapp-3.0/bug53257/*.txt/

OK. I'll add them to res/rat/rat-excludes.txt, for RAT reports done by buildbot
http://tomcat.apache.org/ci.html#Buildbot

 +        exclude name=test/webapp-3.0-fragments/WEB-INF/classes/*.txt/

?? I do not see any files there. Did you forget to commit something?

There are no test failures though (apart the usual TestCometProcessor).

       /fileset
       fileset dir=modules/jdbc-pool 
         exclude name=.*/**/


Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



Re: svn commit: r1345021 - in /tomcat/tc7.0.x/trunk: ./ build.xml test/webapp-3.0/bug53257/index.jsp

2012-06-01 Thread Mark Thomas
On 01/06/2012 17:02, Konstantin Kolinko wrote:
 2012/6/1  ma...@apache.org:

  exclude name=**/tomcat-deps/**/
 +!-- Exclude simple test files --
 +exclude name=test/webapp-3.0/bug53257/*.txt/
 
 OK. I'll add them to res/rat/rat-excludes.txt, for RAT reports done by 
 buildbot
 http://tomcat.apache.org/ci.html#Buildbot

Cheers

 +exclude name=test/webapp-3.0-fragments/WEB-INF/classes/*.txt/
 
 ?? I do not see any files there. Did you forget to commit something?

Yes. Sorry. Fixed now.

 There are no test failures though (apart the usual TestCometProcessor).

That is expected. The file is required to trigger the failure (which has
been fixed anyway).

Mark

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org