<property name="version.minor" value="0" />
<property name="version.build" value="3" />
<property name="version.patch" value="-beta" />
- <property name="version" value="${version.major}.${version.minor}.${version.build}${version.patch}" />
+ <property name="version" value="${version.major}.${version.minor}.${version.build} ${version.patch}" />
<!-- property values you must customize for successful building!!! -->
<property file="${user.home}/build.properties"/>
<property file="${basedir}/modules/jdbc-pool/build.properties"/>
</tar>
<gzip src="${destdir}/apache-tomcat-jdbc-${version}.tar"
destfile="${destdir}/apache-tomcat-jdbc-${version}.tar.gz"/>
- <delete file="${destdir}/apache-tomcat-jdbc-${version}.tar"/>
+ <delete file="${destdir}/apache-tomcat-jdbc-${version}.tar"/>
+ <echo message="Options +Indexes" file="${destdir}/.htaccess"/>
</target>
<!-- Download and dependency building -->
this.connect();
} //reconnect
- protected synchronized void disconnect(boolean finalize) throws SQLException {
+ protected synchronized void disconnect(boolean finalize) {
if (isDiscarded()) {
return;
}
setDiscarded(true);
if (connection != null) {
- connection.close();
+ try {
+ connection.close();
+ }catch (Exception ignore) {
+ if (log.isDebugEnabled()) {
+ log.debug("Unable to close underlying SQL connection",ignore);
+ }
+ }
}
connection = null;
if (finalize) parent.finalize(this);
public boolean abandon() {
try {
disconnect(true);
- } catch (SQLException x) {
+ } catch (Exception x) {
log.error("", x);
} //catch
return false;
public void release() {
try {
disconnect(true);
- } catch (SQLException x) {
- if (log.isDebugEnabled()) {
- log.debug("Unable to close SQL connection",x);
- }
} catch (Exception x) {
if (log.isDebugEnabled()) {
log.debug("Unable to close SQL connection",x);
-VERSION=v1.0.2-beta
+VERSION=v1.0.3-beta
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