From 1ab27ed83501d3bf74f120db31263042eab9f3aa Mon Sep 17 00:00:00 2001 From: fhanik Date: Thu, 3 Mar 2011 19:20:38 +0000 Subject: [PATCH] Add missing files and license header Add NOTICE/LICENSE to all JAR files git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1076736 13f79535-47bb-0310-9956-ffa450edef68 --- modules/jdbc-pool/build.properties.default | 2 +- modules/jdbc-pool/build.xml | 10 ++++++ modules/jdbc-pool/sign.sh | 2 +- .../test/org/apache/tomcat/jdbc/test/Bug50571.java | 39 ++++++++++++++++++++++ .../test/org/apache/tomcat/jdbc/test/Bug50805.java | 16 +++++++++ 5 files changed, 67 insertions(+), 2 deletions(-) create mode 100644 modules/jdbc-pool/test/org/apache/tomcat/jdbc/test/Bug50571.java diff --git a/modules/jdbc-pool/build.properties.default b/modules/jdbc-pool/build.properties.default index 23b40cf33..46fcb47c2 100644 --- a/modules/jdbc-pool/build.properties.default +++ b/modules/jdbc-pool/build.properties.default @@ -28,7 +28,7 @@ version.major=1 version.minor=1 version.build=0 -version.patch=0 +version.patch=1 version.suffix= # ----- Default Base Path for Dependent Packages ----- diff --git a/modules/jdbc-pool/build.xml b/modules/jdbc-pool/build.xml index 0e8255004..389b91092 100644 --- a/modules/jdbc-pool/build.xml +++ b/modules/jdbc-pool/build.xml @@ -76,6 +76,11 @@ + + + + + @@ -126,6 +131,7 @@ + @@ -152,6 +158,7 @@ + @@ -159,6 +166,7 @@ + @@ -184,11 +192,13 @@ + + diff --git a/modules/jdbc-pool/sign.sh b/modules/jdbc-pool/sign.sh index 3b676427f..d58914000 100755 --- a/modules/jdbc-pool/sign.sh +++ b/modules/jdbc-pool/sign.sh @@ -15,7 +15,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -VERSION=v1.1.0.0 +VERSION=v1.1.0.1 for i in $(find output/release/$VERSION -name "*.zip" -o -name "*.tar.gz"); do echo Signing $i echo $1|gpg --passphrase-fd 0 -a -b $i diff --git a/modules/jdbc-pool/test/org/apache/tomcat/jdbc/test/Bug50571.java b/modules/jdbc-pool/test/org/apache/tomcat/jdbc/test/Bug50571.java new file mode 100644 index 000000000..8a5650cbe --- /dev/null +++ b/modules/jdbc-pool/test/org/apache/tomcat/jdbc/test/Bug50571.java @@ -0,0 +1,39 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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. + */ +package org.apache.tomcat.jdbc.test; + +import org.apache.tomcat.jdbc.pool.interceptor.ConnectionState; + +public class Bug50571 extends DefaultTestCase{ + + public Bug50571(String name) { + super(name); + } + + @Override + public void setUp() throws Exception { + super.setUp(); + this.datasource.setUrl("jdbc:h2:~/.h2/test;QUERY_TIMEOUT=0;DB_CLOSE_ON_EXIT=FALSE"); + this.datasource.setJdbcInterceptors(ConnectionState.class.getName()); + this.datasource.setDefaultTransactionIsolation(-55); + this.datasource.setInitialSize(1); + } + + public void testBug50571() throws Exception { + this.datasource.getConnection().close(); + } +} diff --git a/modules/jdbc-pool/test/org/apache/tomcat/jdbc/test/Bug50805.java b/modules/jdbc-pool/test/org/apache/tomcat/jdbc/test/Bug50805.java index 3605e1eee..80fc23e82 100644 --- a/modules/jdbc-pool/test/org/apache/tomcat/jdbc/test/Bug50805.java +++ b/modules/jdbc-pool/test/org/apache/tomcat/jdbc/test/Bug50805.java @@ -1,3 +1,19 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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. + */ package org.apache.tomcat.jdbc.test; import java.sql.Connection; -- 2.11.0