debian/0000755000000000000000000000000012242332466007172 5ustar debian/watch0000644000000000000000000000020311675203276010223 0ustar version=3 http://docs.codehaus.org/display/BTM/Download/ http://bitronix.be/downloads/btm-dist-(.+).zip debian debian/orig-tar.sh debian/rules0000755000000000000000000000203512242330650010243 0ustar #!/usr/bin/make -f VERSION = $(shell dpkg-parsechangelog | sed -n 's,^Version: \(.*\)-.*,\1,p') export JAVA_HOME := /usr/lib/jvm/default-java D := /usr/share/java/ export CLASSPATH := $(D)slf4j-api.jar:$(D)geronimo-jms_1.1_spec-1.1.jar:$(D)geronimo-jta-1.0.1b-spec.jar:$(D)mockito-core.jar # use this CP in order to get test output logging during the build # you will also need to install liblogback-java #export CLASSPATH := $(D)slf4j-api.jar:$(D)geronimo-jms_1.1_spec-1.1.jar:$(D)geronimo-jta-1.0.1b-spec.jar:$(D)mockito-core.jar:$(D)logback-classic.jar:$(D)logback-core.jar %: dh $@ override_dh_auto_build: CLASSPATH=$(CLASSPATH) ant -Djar.version=$(VERSION) override_dh_auto_install: mh_installpom -plibbtm-java -e$(VERSION) pom.xml mh_installjar -plibbtm-java -l -e$(VERSION) pom.xml dist/btm-$(VERSION).jar override_dh_clean: dh_clean rm -rf $(CURDIR)/debian/.mh rm -rf target/* rm -f TESTS-TestSuites.xml rm -f src/bitronix/tm/Version.java get-orig-source: uscan --debug --force-download --download-version $(VERSION) --rename debian/changelog0000644000000000000000000000320212242332462011035 0ustar libbtm-java (2.1.4-1) unstable; urgency=low * Team upload. * New upstream release. * Add and freshen patch for FTBFS with JDK 7. (Closes: #706702) - Thanks to Shuxiong Ye * Add fix-jms-proper-usage-mock-test.patch to address FTBFS test failure. * Bump Standards-Version to 3.9.5. * Bump debian/compat and debhelper dependency to 9. * Update Vcs fields to canonical URLs. -- tony mancill Mon, 18 Nov 2013 06:35:15 +0000 libbtm-java (2.1.2-1) unstable; urgency=low [ by sponsor Steffen Moeller ] * Added pkg-java member Brian to uploaders. * Added DMUA flag * Updated dependency to libgeronimo-jta-1.1-spec-java and adjusted CLASSPATH [ merged from Miquel Landaeta's patch for bug #652184 ] * Fix lintian warning with copyright file. [ we all independently contributing to the previous FTBFS] (Closes: #652184) -- Brian Thomason Fri, 23 Dec 2011 23:56:40 +0100 libbtm-java (2.1.2-0ubuntu3) precise; urgency=low * Added missing ant-optional build-dep -- Brian Thomason Wed, 14 Dec 2011 23:31:32 +0000 libbtm-java (2.1.2-0ubuntu2) precise; urgency=low * Added missing junit build-dep -- Brian Thomason Wed, 14 Dec 2011 18:05:55 -0500 libbtm-java (2.1.2-0ubuntu1) precise; urgency=low * New upstream release * Bumped Standards-Version (no changes) -- Brian Thomason Wed, 07 Dec 2011 17:06:29 +0000 libbtm-java (1.3.3-1) unstable; urgency=low * Initial Release (closes: #581671). -- Torsten Werner Sat, 15 May 2010 12:51:47 +0200 debian/patches/0000755000000000000000000000000012242330325010611 5ustar debian/patches/transition-to-openjdk7.patch0000644000000000000000000000500212242326277016173 0ustar Description: Address FTBFS with JDK 7 Author: Shuxiong Ye Forwarded: http://bitronix-transaction-manager.10986.n7.nabble.com/libbtm-java-2-1-2-Fail-to-build-from-source-with-Java7-td1499.html --- a/src/bitronix/tm/resource/jdbc/PoolingDataSource.java +++ b/src/bitronix/tm/resource/jdbc/PoolingDataSource.java @@ -47,6 +47,7 @@ import java.lang.reflect.Proxy; import java.sql.Connection; import java.sql.SQLException; +import java.sql.SQLFeatureNotSupportedException; import java.util.Iterator; import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; @@ -404,4 +405,10 @@ public void reset() throws Exception { pool.reset(); } + + @Override + public java.util.logging.Logger getParentLogger() + throws SQLFeatureNotSupportedException { + throw new SQLFeatureNotSupportedException(); + } } --- a/src/bitronix/tm/resource/jdbc/lrc/LrcXADataSource.java +++ b/src/bitronix/tm/resource/jdbc/lrc/LrcXADataSource.java @@ -29,6 +29,7 @@ import java.sql.Connection; import java.sql.Driver; import java.sql.SQLException; +import java.sql.SQLFeatureNotSupportedException; import java.util.Properties; /** @@ -127,4 +128,10 @@ public String toString() { return "a JDBC LrcXADataSource on " + driverClassName + " with URL " + url; } + + @Override + public java.util.logging.Logger getParentLogger() + throws SQLFeatureNotSupportedException { + throw new SQLFeatureNotSupportedException(); + } } --- a/test/bitronix/tm/mock/resource/jdbc/MockDriver.java +++ b/test/bitronix/tm/mock/resource/jdbc/MockDriver.java @@ -24,6 +24,7 @@ import java.sql.SQLException; import java.sql.Connection; import java.sql.DriverPropertyInfo; +import java.sql.SQLFeatureNotSupportedException; import java.util.Properties; /** @@ -55,4 +56,10 @@ public DriverPropertyInfo[] getPropertyInfo(String url, Properties info) throws SQLException { return new DriverPropertyInfo[0]; } + + @Override + public java.util.logging.Logger getParentLogger() + throws SQLFeatureNotSupportedException { + throw new SQLFeatureNotSupportedException(); + } } --- a/test/bitronix/tm/mock/resource/jdbc/MockitoXADataSource.java +++ b/test/bitronix/tm/mock/resource/jdbc/MockitoXADataSource.java @@ -218,4 +218,10 @@ public void setUselessThing(Object uselessThing) { this.uselessThing = uselessThing; } + + @Override + public java.util.logging.Logger getParentLogger() + throws SQLFeatureNotSupportedException { + throw new SQLFeatureNotSupportedException(); + } } debian/patches/series0000644000000000000000000000012512242327055012032 0ustar add-pom-file.patch transition-to-openjdk7.patch fix-jms-proper-usage-mock-test.patch debian/patches/add-pom-file.patch0000644000000000000000000000345211675203276014111 0ustar Description: Add POM file Author: Brian Thomason --- /dev/null +++ libbtm-java-2.1.2/pom.xml @@ -0,0 +1,46 @@ + + + 4.0.0 + org.codehaus.btm + btm + Bitronix Transaction Manager + 2006 + @version@ + http://docs.codehaus.org/display/BTM/Home + + + + javax.transaction + jta + 1.1 + + + + org.apache.geronimo.specs + geronimo-jms_1.1_spec + 1.0.1 + true + + + + org.slf4j + slf4j-api + 1.6.0 + + + + org.slf4j + slf4j-log4j12 + 1.6.0 + runtime + true + + + org.slf4j + slf4j-jdk14 + 1.6.0 + runtime + true + + + debian/patches/fix-jms-proper-usage-mock-test.patch0000644000000000000000000000164512242330324017527 0ustar Description: work-around for test failure due to parent class being called for each setUp(). Author: tony mancill --- a/test/bitronix/tm/mock/JmsProperUsageMockTest.java +++ b/test/bitronix/tm/mock/JmsProperUsageMockTest.java @@ -101,9 +101,11 @@ assertEquals(Status.STATUS_COMMITTING, ((JournalLogEvent) orderedEvents.get(i++)).getStatus()); assertEquals(true, ((XAResourceCommitEvent) orderedEvents.get(i++)).isOnePhase()); assertEquals(Status.STATUS_COMMITTED, ((JournalLogEvent) orderedEvents.get(i++)).getStatus()); - } - public void testSerialization() throws Exception { + // setUp/tearDown cannot be called twice + //} + + //public void testSerialization() throws Exception { ByteArrayOutputStream baos = new ByteArrayOutputStream(); ObjectOutputStream oos = new ObjectOutputStream(baos); oos.writeObject(poolingConnectionFactory1); debian/orig-tar.sh0000755000000000000000000000056111675203276011264 0ustar #!/bin/sh -e # called by uscan with '--upstream-version' DIR=btm-dist-$2 TAR=../libbtm-java_$2.orig.tar.gz unzip $3 GZIP=--best tar czf $TAR --exclude='*.jar' --exclude='*.tlog' $DIR rm -rf $DIR ../$2 $3 # move to directory 'tarballs' if [ -r .svn/deb-layout ]; then . .svn/deb-layout mv $TAR $origDir echo "moved $TAR to $origDir" fi debian/source/0000755000000000000000000000000011705566363010502 5ustar debian/source/format0000644000000000000000000000001411675203276011705 0ustar 3.0 (quilt) debian/compat0000644000000000000000000000000212242302712010357 0ustar 9 debian/copyright0000644000000000000000000000073211705561775011141 0ustar Format: http://dep.debian.net/deps/dep5/ Source: http://docs.codehaus.org/display/BTM/Download Upstream-Name: Bitronix JTA Transaction Manager Upstream-Contact: Bitronix Files: * Copyright: 2005-2010, Bitronix License: LGPL-2.1 Files: debian/* Copyright: Copyright 2010, Torsten Werner License: LGPL-2.1 License: LGPL-2.1 On Debian GNU/Linux system you can find the complete text of the LGPL-2.1 license in '/usr/share/common-licenses/LGPL-2.1' debian/control0000644000000000000000000000237212242332440010571 0ustar Source: libbtm-java Section: java Priority: optional Maintainer: Debian Java Maintainers Uploaders: Torsten Werner , Brian Thomason Build-Depends: debhelper (>= 9), maven-repo-helper, default-jdk, ant, libgeronimo-jta-1.1-spec-java, libgeronimo-jms-1.1-spec-java, libslf4j-java, libmockito-java, junit, ant-optional Standards-Version: 3.9.5 Homepage: http://docs.codehaus.org/display/BTM/Home Vcs-Svn: svn://anonscm.debian.org/pkg-java/trunk/libbtm-java Vcs-Browser: http://anonscm.debian.org/viewvc/pkg-java/trunk/libbtm-java/ Package: libbtm-java Architecture: all Depends: ${misc:Depends} Description: Bitronix JTA Transaction Manager The Bitronix Transaction Manager (BTM) is a simple but complete implementation of the JTA 1.0.1B API. It is a fully working XA transaction manager that provides all services required by the JTA API while trying to keep the code as simple as possible for easier understanding of the XA semantics. This is BTM's strongest point compared to its competitors: it is trivial to configure and when something goes wrong it is much easier to figure out what to do thanks to the great care placed in useful error reporting and logging.