version.major=1
version.minor=1
version.build=0
-version.patch=0
+version.patch=1
version.suffix=
# ----- Default Base Path for Dependent Packages -----
<pathelement location="${h2.jar}"/>
</path>
+ <fileset id="license.notice" dir="${basedir}">
+ <include name="NOTICE"/>
+ <include name="LICENSE"/>
+ </fileset>
+
<!-- Version info filter set -->
<tstamp>
<format property="TODAY" pattern="MMM d yyyy" locale="en"/>
<!-- connection pool API file-->
<jar jarfile="${tomcat-jdbc-api.jar}" update="true">
<fileset dir="${tomcat.api}"/>
+ <fileset refid="license.notice"/>
</jar>
<delete file="${basedir}/java/org/apache/tomcat/jdbc/pool/package.html"/>
</target>
<fileset dir="${basedir}/java">
<include name="org/apache/tomcat/jdbc/**/*.xml" />
</fileset>
+ <fileset refid="license.notice"/>
</jar>
<!-- connection pool source file-->
<fileset dir="${basedir}/java">
<include name="org/apache/tomcat/jdbc/**" />
</fileset>
+ <fileset refid="license.notice"/>
</jar>
</target>
<fileset dir="${basedir}/test">
<include name="org/apache/tomcat/jdbc/**/*.xml" />
</fileset>
+ <fileset refid="license.notice"/>
</jar>
<jar jarfile="${tomcat-jdbc-test-src.jar}" update="true">
<fileset dir="${basedir}/test">
<include name="org/apache/tomcat/jdbc/**" />
</fileset>
+ <fileset refid="license.notice"/>
</jar>
</target>
# 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
--- /dev/null
+/*\r
+ * Licensed to the Apache Software Foundation (ASF) under one or more\r
+ * contributor license agreements. See the NOTICE file distributed with\r
+ * this work for additional information regarding copyright ownership.\r
+ * The ASF licenses this file to You under the Apache License, Version 2.0\r
+ * (the "License"); you may not use this file except in compliance with\r
+ * the License. You may obtain a copy of the License at\r
+ *\r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+package org.apache.tomcat.jdbc.test;\r
+\r
+import org.apache.tomcat.jdbc.pool.interceptor.ConnectionState;\r
+\r
+public class Bug50571 extends DefaultTestCase{\r
+ \r
+ public Bug50571(String name) {\r
+ super(name);\r
+ }\r
+ \r
+ @Override\r
+ public void setUp() throws Exception {\r
+ super.setUp();\r
+ this.datasource.setUrl("jdbc:h2:~/.h2/test;QUERY_TIMEOUT=0;DB_CLOSE_ON_EXIT=FALSE");\r
+ this.datasource.setJdbcInterceptors(ConnectionState.class.getName());\r
+ this.datasource.setDefaultTransactionIsolation(-55);\r
+ this.datasource.setInitialSize(1);\r
+ }\r
+ \r
+ public void testBug50571() throws Exception {\r
+ this.datasource.getConnection().close();\r
+ }\r
+}\r
+/*
+ * 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;