debian/0000755000000000000000000000000012256657620007201 5ustar debian/patches/0000755000000000000000000000000012256650764010632 5ustar debian/patches/java7-compat.diff0000644000000000000000000000160412256645021013744 0ustar This patch fixes API updates in Java 7. The package can be built with Java 7 with this patch. --- a/src/java/com/jamonapi/proxy/JAMonDataSource.java +++ b/src/java/com/jamonapi/proxy/JAMonDataSource.java @@ -77,5 +77,9 @@ public Reference getReference() throws NamingException { return ((Referenceable)realDataSource).getReference(); } + + public java.util.logging.Logger getParentLogger() throws java.sql.SQLFeatureNotSupportedException { + throw new UnsupportedOperationException("getParentLogger"); + } } --- a/src/java/com/jamonapi/proxy/JAMonDriver.java +++ b/src/java/com/jamonapi/proxy/JAMonDriver.java @@ -245,6 +245,10 @@ } + public java.util.logging.Logger getParentLogger() throws java.sql.SQLFeatureNotSupportedException { + throw new UnsupportedOperationException("getParentLogger"); + } + } debian/patches/api-fix.diff0000644000000000000000000000303412256645021013007 0ustar This patch fixes several API ubdates in Java 1.6 and Tomcat 6. The package can be built with Java 1.6 with this patch. --- a/src/java/com/jamonapi/proxy/JAMonDataSource.java +++ b/src/java/com/jamonapi/proxy/JAMonDataSource.java @@ -45,9 +45,15 @@ public Connection getConnection(String userName, String passWord) throws SQLException { return MonProxyFactory.monitor(realDataSource.getConnection(userName, passWord)); + } + + public T unwrap(Class iface) throws SQLException { + return null; } - + public boolean isWrapperFor(Class iface) throws SQLException { + return false; + } public int getLoginTimeout() throws SQLException { return realDataSource.getLoginTimeout(); --- a/src/java/com/jamontomcat/JAMonTomcat4Valve.java +++ b/src/java/com/jamontomcat/JAMonTomcat4Valve.java @@ -56,14 +56,13 @@ * test xml - read property */ - public void invoke(Request request, Response response, ValveContext valveContext) throws IOException, ServletException { + public void invoke(org.apache.catalina.connector.Request request, org.apache.catalina.connector.Response response) throws IOException, ServletException { HttpMon httpMon=null; try { httpMon=httpMonFactory.start(request, response); // tomcat 4/5 - if (valveContext!=null) - valveContext.invokeNext(request, response); + this.getNext().invoke(request, response); } catch (Throwable e) { httpMon.throwException(e); debian/patches/series0000644000000000000000000000005212256645021012032 0ustar api-fix.diff build.diff java7-compat.diff debian/patches/build.diff0000644000000000000000000000276412256645021012562 0ustar --- a/build.xml +++ b/build.xml @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + --- a/build.properties 2012-06-14 08:15:53.674554881 -0430 +++ b/build.properties 2012-06-25 15:02:20.000000000 -0430 @@ -0,0 +1,9 @@ +class.dir=build +source.dir=src/java +jar.name=jamon.jar +doc.dir=docs +doc.packagenames=com.* +# Ensure that source and target are 1.5 +# For backwards compat on Java 7 +ant.build.javac.source=1.5 +ant.build.javac.target=1.5 debian/compat0000644000000000000000000000000212256645021010367 0ustar 5 debian/orig-tar.sh0000755000000000000000000000053412256645021011256 0ustar #!/bin/sh -e # called by uscan with '--upstream-version' TAR=../libjamon-java_$2.orig.tar.gz DIR=jamonapi unzip $3 tar -c -z -f $TAR --exclude '*.jar' --exclude '*.war' $DIR rm -rf $3 $DIR # move to directory 'tarballs' if [ -r .svn/deb-layout ]; then . .svn/deb-layout mv $TAR $origDir echo "moved $TAR to $origDir" fi debian/control0000644000000000000000000000205712256657023010605 0ustar Source: libjamon-java Section: java Priority: extra Maintainer: Debian Java Maintainers Uploaders: Torsten Werner , Luke Cycon Build-Depends: ant, quilt, cdbs, debhelper (>= 5), default-jdk, libgeronimo-interceptor-3.0-spec-java, libjetty-java, liblog4j1.2-java, libservlet2.5-java, libtomcat6-java, maven-repo-helper Standards-Version: 3.9.5 Homepage: http://jamonapi.sourceforge.net/ Vcs-Browser: http://anonscm.debian.org/viewvc/pkg-java/trunk/libjamon-java/ Vcs-Svn: svn://anonscm.debian.org/pkg-java/trunk/libjamon-java Package: libjamon-java Architecture: all Depends: ${shlibs:Depends}, ${misc:Depends} Description: Java API for easy monitoring production applications The Java Application Monitor (JAMon) is a free, simple, high performance, thread safe, Java API that allows developers to easily monitor production applications. JAMon can be used to determine application performance bottlenecks, user/application interactions, track application scalability, and more. debian/README.source0000644000000000000000000000350712256645021011355 0ustar This package uses quilt to manage all modifications to the upstream source. Changes are stored in the source package as diffs in debian/patches and applied during the build. To configure quilt to use debian/patches instead of patches, you want either to export QUILT_PATCHES=debian/patches in your environment or use this snippet in your ~/.quiltrc: for where in ./ ../ ../../ ../../../ ../../../../ ../../../../../; do if [ -e ${where}debian/rules -a -d ${where}debian/patches ]; then export QUILT_PATCHES=debian/patches fi done To get the fully patched source after unpacking the source package, cd to the root level of the source package and run: quilt push -a The last patch listed in debian/patches/series will become the current patch. To add a new set of changes, first run quilt push -a, and then run: quilt new where is a descriptive name for the patch, used as the filename in debian/patches. Then, for every file that will be modified by this patch, run: quilt add before editing those files. You must tell quilt with quilt add what files will be part of the patch before making changes or quilt will not work properly. After editing the files, run: quilt refresh to save the results as a patch. Alternately, if you already have an external patch and you just want to add it to the build system, run quilt push -a and then: quilt import -P /path/to/patch quilt push -a (add -p 0 to quilt import if needed). as above is the filename to use in debian/patches. The last quilt push -a will apply the patch to make sure it works properly. To remove an existing patch from the list of patches that will be applied, run: quilt delete You may need to run quilt pop -a to unapply patches first before running this command. debian/copyright0000644000000000000000000000370712256645021011133 0ustar This package was debianized by Torsten Werner on Sun May 27 23:39:07 CEST 2007. It was downloaded from . Upstream Authors: Steve Souza Ed Desrosiers Eric Laufer Ron Weinstein Peter Blagrove Jeroen Borgers Jack Shirazi Java Ranch Copyright: Copyright (c) 2002 Steve Souza . All rights reserved. License: Redistribution in binary form, with or without modifications, are permitted provided that the following conditions are met: - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - If modifications are made to source code then this license should indicate that fact in the "Modifications" section above. - Neither the author, nor the contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. The Debian packaging is copyright (C) 2007, Torsten Werner and is licensed under the GPL, see `/usr/share/common-licenses/GPL'. debian/ant.properties0000644000000000000000000000006612256645021012073 0ustar ant.build.javac.target=1.5 ant.build.javac.source=1.5 debian/rules0000755000000000000000000000076112256655002010255 0ustar #!/usr/bin/make -f include /usr/share/cdbs/1/class/ant.mk include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/rules/patchsys-quilt.mk JAVA_HOME := /usr/lib/jvm/default-java DEB_JARS := catalina geronimo-interceptor-3.0-spec jetty jetty-util log4j-1.2 servlet-api-2.5 install/libjamon-java:: mh_installpom -plibjamon-java debian/pom.xml mh_installjar -plibjamon-java --java-lib debian/pom.xml jamon.jar clean:: mh_clean get-orig-source: uscan --force-download --rename debian/pom.xml0000644000000000000000000000235612256653243010521 0ustar 4.0.0 com.jamonapi jamon 2.7 log4j log4j 1.2.x true org.apache.tomcat catalina debian true org.mortbay.jetty jetty 6.x true org.mortbay.jetty jetty-util 6.x true javax.servlet servlet-api 2.5 true debian/source/0000755000000000000000000000000012256651012010466 5ustar debian/source/format0000644000000000000000000000001412256645021011677 0ustar 3.0 (quilt) debian/watch0000644000000000000000000000012112256645021010214 0ustar version=3 http://sf.net/jamonapi/jamonall_(\d)(\d).zip debian debian/orig-tar.sh debian/changelog0000644000000000000000000000601712256657063011060 0ustar libjamon-java (2.7-4) unstable; urgency=low * Team upload. * Provide Maven artifacts. (Closes: #729087) - Add dependency on maven-repo-helper. - Add pom.xml file. * Bump Standards-Version to 3.9.5. No changes were required. * Update Homepage field. * Use canonical URLs in Vcs-* fields. -- Miguel Landaeta Wed, 25 Dec 2013 19:37:35 -0300 libjamon-java (2.7-3) unstable; urgency=low * Team upload. [ Miguel Landaeta ] * Rename ant build files patch. * Fix FTBFS with OpenJDK7. * Bump Standards-Version to 3.9.3. No changes were required. [ tony mancill ] * Remove needless dependency on JRE. -- Miguel Landaeta Mon, 25 Jun 2012 19:25:20 -0430 libjamon-java (2.7-2) unstable; urgency=low * Switch to source format 3.0. * Update Standards-Version: 3.8.4. -- Torsten Werner Mon, 03 May 2010 21:44:51 +0200 libjamon-java (2.7-1ubuntu1) lucid; urgency=low * Merge from debian testing, remaining changes: - debian/control: Build-depend on libjetty-java rather than full jetty - debian/control, debian/rules: Depend on geronimo-interceptor-3.0-spec rather than glassfish-javaee, to avoid pulling glassfish into main - debian/control: Use -headless runtimes, bump dependency to java5 - debian/ant.properties: Build java5 code to match dependency -- Thierry Carrez Mon, 30 Nov 2009 11:38:34 +0100 libjamon-java (2.7-1) unstable; urgency=low [ Emmanuel Bourg ] * Update of the URLs * Rename Jakarta Commons to Apache Commons [ Torsten Werner ] * new upstream version * Move package to Alioth and change Maintainer. * Update Vcs and Homepage headers in debian/control. * Switch from kaffe to default-jdk and default-jre. * Add Build-Depends: glassfish-javaee, jetty. * Disable compiler warnings. * Switch to tomcat6. * Add missing Build-Depends: liblog4j1.2-java. [ Luke Cycon ] * Added new patch (api-fix.diff) - Fix issues to allow building by Java 1.6 - Fix issues caused be recenct tomcat API updates * Bump Standards-Version: 3.8.3. No changes. * Updated Vcs address in debian/control/ svn+ssh:// to svn:// * Add build depends: quilt * Updated copyright to comply with Debian Stadards * Moved package to correct section ( java ) * Added debian/README.source * Added myself to uploaders -- Luke Cycon Sun, 13 Sep 2009 10:33:36 -0700 libjamon-java (2.5-1ubuntu2) karmic; urgency=low * Added debian/ant.properties to build java2-compatible code -- Thierry Carrez Tue, 25 Aug 2009 11:31:47 +0200 libjamon-java (2.5-1ubuntu1) karmic; urgency=low * debian/control, debian/rules: Build with gcj-jdk * debian/control: Depend on default-jre-headless | java2-runtime-headless -- Thierry Carrez Mon, 17 Aug 2009 09:58:10 +0200 libjamon-java (2.5-1) unstable; urgency=low * Initial release (Closes: #426315) -- Torsten Werner Sun, 27 May 2007 23:43:41 +0200