Debian

Available patches from Ubuntu

To see Ubuntu differences wrt. to Debian, write down a grep-dctrl query identifying the packages you're interested in:
grep-dctrl -n -sPackage Sources.Debian
(e.g. -FPackage linux-ntfs or linux-ntfs)

Modified packages are listed below:

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: antlr3

antlr3 (3.2.is.3.2-0ubuntu1) oneiric; urgency=low * Back to genuine 3.2 release (LP: #814819) * Include an ant build script to avoid needing mavenhelper. -- Andrew Ross <ubuntu@rossfamily.co.uk> Mon, 18 Jul 2011 19:28:32 +0100 antlr3 (3.2.is.3.0.1-0ubuntu1) maverick; urgency=low * Revert back to 3.0.1+dfsg-4ubuntu2 for Maverick, since this version introduces too many new main dependencies, too late in the cycle (LP: #614393). Remaining changes: - Runtime depend on java2-runtime-headless rather than java2-runtime. * Drop antlr3-gcj to a Suggests -- Thierry Carrez (ttx) <thierry.carrez@ubuntu.com> Fri, 06 Aug 2010 17:17:53 +0200

Modifications :
  1. Download patch debian/scripts/antlr3.1

    --- 3.2-6/debian/scripts/antlr3.1 2010-07-25 21:02:20.000000000 +0000 +++ 3.2.is.3.2-0ubuntu1/debian/scripts/antlr3.1 2011-08-19 15:03:55.000000000 +0000 @@ -21,7 +21,7 @@ ANTLR \- ANother Tool for Language Recog .B java org.antlr.Tool .B or .B antlr3 -[\fIargs\fR] \fIfile.g\fR \[ \fIfile2.g\fR \fIfile3.g\fR ...] +[\fIargs\fR] \fIfile.g\fR [ \fIfile2.g\fR \fIfile3.g\fR ... ] .br .SH "DESCRIPTION" ANTLR, ANother Tool for Language Recognition, (formerly PCCTS) is a @@ -33,7 +33,7 @@ C++ or Java actions. specify output directory where all output generated. .TP \fB\-fo\fR \fIoutputDir\fR -same as -o but force even files with relative paths to dir. +same as \-o but force even files with relative paths to dir. .TP \fB\-lib\fR \fIdir\fR specify location of token files.
  2. Download patch debian/libantlr3-gunit-java-doc.doc-base.api

    --- 3.2-6/debian/libantlr3-gunit-java-doc.doc-base.api 2010-07-25 21:02:20.000000000 +0000 +++ 3.2.is.3.2-0ubuntu1/debian/libantlr3-gunit-java-doc.doc-base.api 1970-01-01 00:00:00.000000000 +0000 @@ -1,10 +0,0 @@ -Document: libantlr3-gunit-java -Title: API Javadoc for gUnit for ANTLR 3 -Author: ANTLR developers -Abstract: This is the API Javadoc provided for the - gUnit testing framework for Antlr3. -Section: Programming - -Format: HTML -Index: /usr/share/doc/libantlr3-gunit-java/api/index.html -Files: /usr/share/doc/libantlr3-gunit-java/api/*
  3. Download patch debian/README.source

    --- 3.2-6/debian/README.source 2010-06-20 22:04:22.000000000 +0000 +++ 3.2.is.3.2-0ubuntu1/debian/README.source 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -Information about antlr3 ------------------------------- - -This package was debianized using the mh_make command -from the maven-debian-helper package. - -The build system uses Maven but prevents it from downloading -anything from the Internet, making the build compliant with -the Debian policy. - -debian/generated-sources contains sources generated with the upstreams -distribution, using the command: - -mvn generate-sources -mkdir -p debian/generated-sources -cp -r tool/target/generated-sources/antlr3
  4. Download patch debian/rules

    --- 3.2-6/debian/rules 2011-09-27 20:59:14.000000000 +0000 +++ 3.2.is.3.2-0ubuntu1/debian/rules 2011-08-19 15:03:55.000000000 +0000 @@ -1,38 +1,43 @@ #!/usr/bin/make -f -# Uncomment this to turn on verbose mode. -#export DH_VERBOSE=1 - +include /usr/share/cdbs/1/class/ant.mk include /usr/share/cdbs/1/rules/debhelper.mk -include /usr/share/cdbs/1/class/maven.mk +include /usr/share/gcj/debian_defaults + +DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH) +ifneq (,$(filter $(DEB_HOST_ARCH), $(gcj_native_archs))) + with_native := yes +endif + +JAVA_HOME := /usr/lib/jvm/default-java +DEB_ANT_BUILDFILE := debian/build.xml +DEB_JARS := ant-antlr antlr stringtemplate +DEB_UPSTREAM_VERSION=3.2 -DEB_MAVEN_INSTALL_TO_USJ := false -DEB_MAVEN_BUILD_TARGET := package install -DEB_MAVEN_DOC_TARGET := javadoc:jar javadoc:aggregate -PACKAGE := $(DEB_SOURCE_PACKAGE) -VERSION := $(shell echo $(DEB_UPSTREAM_VERSION) | cut -d'+' -f1 -) -JAVA_HOME := /usr/lib/jvm/default-java -DEB_MAVEN_ARGS := -DbuildNumber="debian-$(shell echo $(DEB_NOEPOCH_VERSION) | sed 's/.*-//')" - -# Bootstrap the build with the generated sources taken from a normal run of -# mvn install on the Antlr source code -before-mvn-build:: PLUGIN_ARGS += -Dmaven.test.skip=true -Duse.maven.repo.local=true -before-mvn-build:: unpatch-poms +pre-build:: cp -r debian/generated-sources/antlr3/* tool/src/main/java - mh_patchpoms -pantlr3 --debian-build --keep-pom-version -idebian/maven.bootstrap.ignoreRules --maven-repo=$(DEB_MAVEN_REPO) - $(DEB_MAVEN_INVOKE) $(PLUGIN_ARGS) -N $(DEB_MAVEN_BUILD_TARGET) $(DEB_MAVEN_INSTALL_TARGET) - cd runtime/Java && $(DEB_MAVEN_INVOKE) $(PLUGIN_ARGS) $(DEB_MAVEN_BUILD_TARGET) $(DEB_MAVEN_INSTALL_TARGET) - cd tool && $(DEB_MAVEN_INVOKE) $(PLUGIN_ARGS) $(DEB_MAVEN_BUILD_TARGET) $(DEB_MAVEN_INSTALL_TARGET) - cd antlr3-maven-plugin && $(DEB_MAVEN_INVOKE) $(PLUGIN_ARGS) $(DEB_MAVEN_BUILD_TARGET) $(DEB_MAVEN_INSTALL_TARGET) - rm -rf tool/src/main/java/*.tokens - rm -rf tool/src/main/java/org/antlr/grammar/v3 - mh_unpatchpoms -pantlr3 - -binary-post-install/antlr3:: - mh_linkrepojar -pantlr3 runtime/Java/pom.xml /usr/share/java/antlr3-runtime.jar - mh_linkrepojar -pantlr3 tool/pom.xml /usr/share/java/antlr3.jar - mh_linkrepojar -plibantlr3-gunit-java gunit/pom.xml /usr/share/java/antlr3-gunit.jar - dh_installman -pantlr3 + +clean:: + rm -f tool/src/main/java/*.tokens + rm -f tool/src/main/java/org/antlr/grammar/v3/* + +install/antlr3:: + jh_classpath -c/usr/share/java/stringtemplate.jar build/antlr3.jar + jh_installlibs -pantlr3 --upstream-version=$(DEB_UPSTREAM_VERSION) \ + build/antlr3.jar build/antlr3-runtime.jar + +ifeq ($(with_native),yes) +install/antlr3-gcj:: install/antlr3 + dh_nativejava -pantlr3-gcj +endif + +binary-post-install/antlr3-gcj:: binary-post-install/antlr3 + [ -f debian/antlr3/usr/share/java/antlr3-$(DEB_UPSTREAM_VERSION).jar ] \ + || install -m 644 -D build/antlr3.jar \ + debian/antlr3/usr/share/java/antlr3-$(DEB_UPSTREAM_VERSION).jar + rm -rf debian/antlr3-gcj/usr/share/doc/antlr3-gcj + ln -s antlr3 \ + debian/antlr3-gcj/usr/share/doc/antlr3-gcj get-orig-source: - -uscan --download-version $(DEB_UPSTREAM_VERSION) --force-download --rename --repack + -uscan --download-version $(DEB_UPSTREAM_VERSION) --force-download --rename --repack
  5. Download patch debian/compat

    --- 3.2-6/debian/compat 2010-06-20 22:04:22.000000000 +0000 +++ 3.2.is.3.2-0ubuntu1/debian/compat 2011-08-19 15:02:53.000000000 +0000 @@ -1 +1 @@ -7 +6
  6. Download patch debian/control

    --- 3.2-6/debian/control 2011-09-27 20:59:14.000000000 +0000 +++ 3.2.is.3.2-0ubuntu1/debian/control 2011-08-19 15:03:55.000000000 +0000 @@ -1,25 +1,18 @@ Source: antlr3 -Section: java +Section: devel Priority: optional -Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> -Uploaders: Ludovic Claude <ludovic.claude@laposte.net>, Michael Koch <konqueror@gmx.de> -Build-Depends: debhelper (>= 7), cdbs, default-jdk, - maven-debian-helper (>= 1.1), libstringtemplate-java (>= 3.2.1), - libantlr-maven-plugin-java (>= 2.1), libmaven-plugin-testing-java, - libmaven-javadoc-plugin-java, libmaven-install-plugin-java, - default-jdk-doc, libmaven-plugin-tools-java -Standards-Version: 3.9.0 -Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/antlr3 -Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/trunk/antlr3 -Homepage: http://www.antlr.org/ +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> +Uploaders: Michael Koch <konqueror@gmx.de> +Build-Depends: debhelper (>= 7), cdbs, default-jdk, ant-optional, antlr, + antlr3, libstringtemplate-java (>= 3.2.1), javahelper (>= 0.32~), gcj-native-helper +Standards-Version: 3.9.2 Package: antlr3 Architecture: all -Depends: ${misc:Depends}, - default-jre-headless | java2-runtime-headless | - java5-runtime-headless | java6-runtime-headless, - libstringtemplate-java -Recommends: ${maven:OptionalDepends} +Depends: ${misc:Depends}, + default-jre-headless | java2-runtime-headless, libstringtemplate-java +Suggests: antlr3-gcj Description: language tool for constructing recognizers, compilers etc ANTLR, ANother Tool for Language Recognition, (formerly PCCTS) is a language tool that provides a framework for constructing recognizers, @@ -35,90 +28,14 @@ Description: language tool for construct files (e.g., HTML, SGML). ANTLR is designed to handle all of your translation tasks. -Package: antlr3-doc -Architecture: all -Section: doc -Depends: ${misc:Depends}, default-jdk-doc -Suggests: libantlr3-java -Description: language tool for constructing compilers etc - documentation - ANTLR, ANother Tool for Language Recognition, (formerly PCCTS) is - a language tool that provides a framework for constructing recognizers, - compilers, and translators from grammatical descriptions containing C++ - or Java actions [You can use PCCTS 1.xx to generate C-based parsers]. - . - This package provides the API documentation for ANTLR 3 - -Package: antlr3-maven-plugin -Architecture: all -Depends: ${misc:Depends}, antlr3 (>= ${source:Version}), - libmaven2-core-java, libplexus-compiler-api-java -Description: Maven plugin for ANTLR 3 +Package: antlr3-gcj +Architecture: any +Depends: antlr3 (>= ${source:Version}), ${misc:Depends}, ${shlibs:Depends} +Description: language tool for constructing recognizers, compilers etc (native code) ANTLR, ANother Tool for Language Recognition, (formerly PCCTS) is a language tool that provides a framework for constructing recognizers, compilers, and translators from grammatical descriptions containing C++ or Java actions [You can use PCCTS 1.xx to generate C-based parsers]. - . - This package provides the Maven plugin that allow to compile ANTLR 3 - grammars during a Maven build - -Package: libantlr3-gunit-java -Architecture: all -Depends: ${misc:Depends}, antlr3 (>= ${source:Version}), junit4 -Suggests: antlr3-gunit-maven-plugin -Description: Unit Test framework for ANTLR grammars - gUnit is a "Unit Test" framework for ANTLR grammars. It provides a simple - way to write and run automated tests for ANTLR grammars in a manner similar - to Java unit testing framework jUnit. The basic idea is to create a bunch of - input/output pairs for rules in a grammar and gUnit will verify the expected - output/result. The input can be a single line or multiple lines of strings or - even an external file. The output can be simply success or failure, an - abstract syntax tree (AST), a rule return value, or some text output which - could be a rule's template return value. The current version of gUnit has 2 - main functions, interpreter and jUnit generator. The interpreter interprets - your gUnit script and runs unit tests using Java reflection to invoke methods - in your parser objects. The generator, on the other hand, translates your - gUnit script to jUnit Java code that you can compile and execute by hand. - -Package: libantlr3-gunit-java-doc -Architecture: all -Section: doc -Depends: ${misc:Depends}, antlr3-doc, junit4-doc -Suggests: libantlr3-gunit-java -Description: API documentation for gUnit - gUnit is a "Unit Test" framework for ANTLR grammars. It provides a simple - way to write and run automated tests for ANTLR grammars in a manner similar - to Java unit testing framework jUnit. The basic idea is to create a bunch of - input/output pairs for rules in a grammar and gUnit will verify the expected - output/result. The input can be a single line or multiple lines of strings or - even an external file. The output can be simply success or failure, an - abstract syntax tree (AST), a rule return value, or some text output which - could be a rule's template return value. The current version of gUnit has 2 - main functions, interpreter and jUnit generator. The interpreter interprets - your gUnit script and runs unit tests using Java reflection to invoke methods - in your parser objects. The generator, on the other hand, translates your - gUnit script to jUnit Java code that you can compile and execute by hand. - . - This package provides the API documentation for gUnit for ANTLR 3 - -Package: antlr3-gunit-maven-plugin -Architecture: all -Depends: ${misc:Depends}, libantlr3-gunit-java (>= ${source:Version}), - libmaven2-core-java, libplexus-compiler-api-java -Description: Maven plugin for gUnit, a unit test framework for ANTLR grammars - gUnit is a "Unit Test" framework for ANTLR grammars. It provides a simple - way to write and run automated tests for ANTLR grammars in a manner similar - to Java unit testing framework jUnit. The basic idea is to create a bunch of - input/output pairs for rules in a grammar and gUnit will verify the expected - output/result. The input can be a single line or multiple lines of strings or - even an external file. The output can be simply success or failure, an - abstract syntax tree (AST), a rule return value, or some text output which - could be a rule's template return value. The current version of gUnit has 2 - main functions, interpreter and jUnit generator. The interpreter interprets - your gUnit script and runs unit tests using Java reflection to invoke methods - in your parser objects. The generator, on the other hand, translates your - gUnit script to jUnit Java code that you can compile and execute by hand. - . - This package provides the Maven plugin that allow to run gUnit tests during - a Maven build - + . + This package contains the natively compiled code for use by gij.
  7. Download patch debian/antlr3.poms

    --- 3.2-6/debian/antlr3.poms 2010-07-25 21:02:20.000000000 +0000 +++ 3.2.is.3.2-0ubuntu1/debian/antlr3.poms 1970-01-01 00:00:00.000000000 +0000 @@ -1,6 +0,0 @@ -pom.xml -runtime/Java/pom.xml -tool/pom.xml -antlr3-maven-plugin/pom.xml --package=antlr3-maven-plugin -gunit/pom.xml --package=libantlr3-gunit-java -gunit-maven-plugin/pom.xml --package=antlr3-gunit-maven-plugin
  8. Download patch debian/maven.rules

    --- 3.2-6/debian/maven.rules 2010-07-25 21:02:20.000000000 +0000 +++ 3.2.is.3.2-0ubuntu1/debian/maven.rules 1970-01-01 00:00:00.000000000 +0000 @@ -1,30 +0,0 @@ -# Maven rules - transform Maven dependencies and plugins -# Format of this file is: -# [group] [artifact] [type] [version] -# where each element can be either -# - the exact string, for example org.apache for the group, or 3.1 -# for the version. In this case, the element is simply matched -# and left as it is -# - * (the star character, alone). In this case, anything will -# match and be left as it is. For example, using * on the -# position of the artifact field will match any artifact id -# - a regular expression of the form s/match/replace/ -# in this case, elements that match are transformed using -# the regex rule. -# All elements much match before a rule can be applied -# Example rule: match jar with groupid= junit, artifactid= junit -# and version starting with 3., replacing the version with 3.x -# junit junit jar s/3\..*/3.x/ -antlr antlr jar s/2\..*/2.x/ * -junit junit jar s/4\..*/4.x/ * -org.antlr antlr * s/3\..*/3.x/ * -org.antlr antlr-master * s/3\..*/3.x/ * -org.antlr antlr-runtime * s/3\..*/3.x/ * -#org.antlr antlr-maven-plugin maven-plugin s/3\..*/3.2/ * -org.antlr gunit * s/3\..*/3.x/ * -org.antlr stringtemplate * s/3\..*/3.x/ * -s/org.apache.maven.shared/org.apache.maven.plugin-testing/ maven-plugin-testing * s/.*/debian/ * -s/org.apache.maven.shared/org.apache.maven.plugin-testing/ maven-plugin-testing-harness * s/.*/debian/ * -s/org.apache.maven.shared/org.apache.maven.plugin-testing/ maven-plugin-testing-tools * s/.*/debian/ * -s/org.apache.maven.shared/org.apache.maven.plugin-testing/ maven-test-tools * s/.*/debian/ * -
  9. Download patch debian/antlr3-doc.install

    --- 3.2-6/debian/antlr3-doc.install 2010-06-20 22:04:22.000000000 +0000 +++ 3.2.is.3.2-0ubuntu1/debian/antlr3-doc.install 1970-01-01 00:00:00.000000000 +0000 @@ -1,2 +0,0 @@ -target/site/apidocs/* usr/share/doc/antlr3/api -
  10. Download patch debian/orig-tar.sh

    --- 3.2-6/debian/orig-tar.sh 2010-06-20 22:04:22.000000000 +0000 +++ 3.2.is.3.2-0ubuntu1/debian/orig-tar.sh 1970-01-01 00:00:00.000000000 +0000 @@ -1,20 +0,0 @@ -#!/bin/sh -e - -TAR=../antlr3_$2.orig.tar.gz -DIR=antlr-$2 -ORIG_TAR=$3 - -tar -x -z -v -f $ORIG_TAR - -find $DIR -name ".*" -exec rm '{}' \; -rm -f $TAR -tar -c -z -f $TAR $DIR -rm -rf $DIR - -# move to directory 'tarballs' -if [ -r .svn/deb-layout ]; then - . .svn/deb-layout - mv $TAR $origDir - echo "moved $TAR to $origDir" -fi -
  11. Download patch debian/watch

    --- 3.2-6/debian/watch 2010-06-20 22:04:22.000000000 +0000 +++ 3.2.is.3.2-0ubuntu1/debian/watch 2011-08-19 15:02:53.000000000 +0000 @@ -1,2 +1,3 @@ version=3 -http://www.antlr.org/download/ /antlr-(.*)\.tar\.gz debian debian/orig-tar.sh +opts=uversionmangle=s/rc\d//,dversionmangle=s/\+dfsg// \ +http://www.antlr.org/download/ antlr-(.*)\.tar\.gz debian uupdate
  12. Download patch debian/maven.cleanIgnoreRules

    --- 3.2-6/debian/maven.cleanIgnoreRules 2010-07-25 21:02:20.000000000 +0000 +++ 3.2.is.3.2-0ubuntu1/debian/maven.cleanIgnoreRules 1970-01-01 00:00:00.000000000 +0000 @@ -1,21 +0,0 @@ -# Maven clean ignore rules - ignore some Maven dependencies and plugins during the clean phase -# Format of this file is: -# [group] [artifact] [type] [version] -# where each element can be either -# - the exact string, for example org.apache for the group, or 3.1 -# for the version. In this case, the element is simply matched -# and left as it is -# - * (the star character, alone). In this case, anything will -# match and be left as it is. For example, using * on the -# position of the artifact field will match any artifact id -# All elements much match before a rule can be applied -# Example rule: match jar with groupid= junit, artifactid= junit -# and version starting with 3., this dependency is then removed -# from the POM -# junit junit jar s/3\..*/3.x/ -org.antlr antlr3-maven-plugin maven-plugin * -org.apache.maven.plugins maven-assembly-plugin maven-plugin * -org.apache.maven.plugins maven-project-info-reports-plugin maven-plugin * -org.apache.maven.wagon wagon-ssh-external jar * -org.codehaus.mojo buildnumber-maven-plugin maven-plugin * -org.codehaus.mojo findbugs-maven-plugin maven-plugin *
  13. Download patch debian/maven.properties

    --- 3.2-6/debian/maven.properties 2011-01-08 00:58:12.000000000 +0000 +++ 3.2.is.3.2-0ubuntu1/debian/maven.properties 1970-01-01 00:00:00.000000000 +0000 @@ -1,3 +0,0 @@ -# Include here properties to pass to Maven during the build. -# For example: -maven.test.skip=true
  14. Download patch debian/maven.bootstrap.ignoreRules

    --- 3.2-6/debian/maven.bootstrap.ignoreRules 2010-06-20 22:04:22.000000000 +0000 +++ 3.2.is.3.2-0ubuntu1/debian/maven.bootstrap.ignoreRules 1970-01-01 00:00:00.000000000 +0000 @@ -1,26 +0,0 @@ -# Maven ignore rules - ignore some Maven dependencies and plugins -# Format of this file is: -# [group] [artifact] [type] [version] -# where each element can be either -# - the exact string, for example org.apache for the group, or 3.1 -# for the version. In this case, the element is simply matched -# and left as it is -# - * (the star character, alone). In this case, anything will -# match and be left as it is. For example, using * on the -# position of the artifact field will match any artifact id -# All elements much match before a rule can be applied -# Example rule: match jar with groupid= junit, artifactid= junit -# and version starting with 3., this dependency is then removed -# from the POM -# junit junit jar s/3\..*/3.x/ -org.antlr gunit jar * -org.antlr maven-gunit-plugin maven-plugin * -org.apache.maven.plugins maven-assembly-plugin maven-plugin * -org.apache.maven.plugins maven-project-info-reports-plugin maven-plugin * -org.apache.maven.plugins maven-site-plugin maven-plugin * -org.apache.maven.wagon wagon-ssh-external jar * -org.codehaus.mojo buildnumber-maven-plugin maven-plugin * -org.codehaus.mojo findbugs-maven-plugin maven-plugin * -org.antlr antlr3-maven-plugin maven-plugin * - -
  15. Download patch debian/maven.ignoreRules

    --- 3.2-6/debian/maven.ignoreRules 2010-06-20 22:04:22.000000000 +0000 +++ 3.2.is.3.2-0ubuntu1/debian/maven.ignoreRules 1970-01-01 00:00:00.000000000 +0000 @@ -1,21 +0,0 @@ -# Maven ignore rules - ignore some Maven dependencies and plugins -# Format of this file is: -# [group] [artifact] [type] [version] -# where each element can be either -# - the exact string, for example org.apache for the group, or 3.1 -# for the version. In this case, the element is simply matched -# and left as it is -# - * (the star character, alone). In this case, anything will -# match and be left as it is. For example, using * on the -# position of the artifact field will match any artifact id -# All elements much match before a rule can be applied -# Example rule: match jar with groupid= junit, artifactid= junit -# and version starting with 3., this dependency is then removed -# from the POM -# junit junit jar s/3\..*/3.x/ -org.apache.maven.plugins maven-assembly-plugin maven-plugin * -org.apache.maven.plugins maven-project-info-reports-plugin maven-plugin * -org.apache.maven.wagon wagon-ssh-external jar * -org.codehaus.mojo buildnumber-maven-plugin maven-plugin * -org.codehaus.mojo findbugs-maven-plugin maven-plugin * -
  16. Download patch debian/antlr3-doc.doc-base.api

    --- 3.2-6/debian/antlr3-doc.doc-base.api 2010-06-20 22:04:22.000000000 +0000 +++ 3.2.is.3.2-0ubuntu1/debian/antlr3-doc.doc-base.api 1970-01-01 00:00:00.000000000 +0000 @@ -1,10 +0,0 @@ -Document: antlr3-api -Title: API Javadoc for ANTLR 3 -Author: ANTLR developers -Abstract: This is the API Javadoc provided for the - antlr3 library. -Section: Programming - -Format: HTML -Index: /usr/share/doc/antlr3/api/index.html -Files: /usr/share/doc/antlr3/api/*
  17. Download patch debian/maven.publishedRules

    --- 3.2-6/debian/maven.publishedRules 2010-06-20 22:04:22.000000000 +0000 +++ 3.2.is.3.2-0ubuntu1/debian/maven.publishedRules 1970-01-01 00:00:00.000000000 +0000 @@ -1,18 +0,0 @@ -# Maven published rules - additional rules to publish, to help -# the packaging work of Debian maintainers using mh_make -# Format of this file is: -# [group] [artifact] [type] [version] -# where each element can be either -# - the exact string, for example org.apache for the group, or 3.1 -# for the version. In this case, the element is simply matched -# and left as it is -# - * (the star character, alone). In this case, anything will -# match and be left as it is. For example, using * on the -# position of the artifact field will match any artifact id -# - a regular expression of the form s/match/replace/ -# in this case, elements that match are transformed using -# the regex rule. -# All elements much match before a rule can be applied -# Example rule: match any dependency whose group is ant, -# replacing it with org.apache.ant -# s/ant/org.apache.ant/ * * s/.*/debian/
  18. Download patch debian/libantlr3-gunit-java-doc.install

    --- 3.2-6/debian/libantlr3-gunit-java-doc.install 2010-07-25 21:02:20.000000000 +0000 +++ 3.2.is.3.2-0ubuntu1/debian/libantlr3-gunit-java-doc.install 1970-01-01 00:00:00.000000000 +0000 @@ -1,2 +0,0 @@ -gunit/target/apidocs/* usr/share/doc/libantlr3-gunit-java/api -
  19. Download patch debian/build.xml
  20. Download patch debian/copyright

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: asm2

asm2 (2.2.3-4ubuntu2) natty; urgency=low * Amended build process to execute test suite (LP: #452900) * Amended misc javac and javadoc warning messages (LP: #452910) * Updated Standards-Version: 3.9.1, no changes required. * Added source/format: 3.0 (quilt). -- James Page <james.page@canonical.com> Wed, 09 Feb 2011 19:42:17 +0100 asm2 (2.2.3-4ubuntu1) maverick; urgency=low * Updated copyright attribution to INRIA / France Telecom (LP: #452901) -- Thierry Carrez (ttx) <thierry.carrez@ubuntu.com> Wed, 25 Aug 2010 09:14:45 +0200

Modifications :
  1. Download patch test/perf/org/objectweb/asm/ASMMemTest.java
  2. Download patch test/perf/org/objectweb/asm/ALLPerfTest.java
  3. Download patch .pc/javadoc_warnings.diff/src/org/objectweb/asm/tree/ClassNode.java
  4. Download patch test/perf/org/objectweb/asm/ASMPerfTest.java

    --- 2.2.3-4/test/perf/org/objectweb/asm/ASMPerfTest.java 2006-07-05 16:32:22.000000000 +0100 +++ 2.2.3-4ubuntu2/test/perf/org/objectweb/asm/ASMPerfTest.java 1970-01-01 01:00:00.000000000 +0100 @@ -1,138 +0,0 @@ -/*** - * ASM performance test: measures the performances of asm package - * Copyright (c) 2002-2005 France Telecom - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. 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. - * 3. Neither the name of the copyright holders nor the names of its - * contributors may be used to endorse or promote products derived from - * this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS 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. - */ -package org.objectweb.asm; - -import org.objectweb.asm.ClassAdapter; -import org.objectweb.asm.ClassReader; -import org.objectweb.asm.ClassVisitor; -import org.objectweb.asm.ClassWriter; -import org.objectweb.asm.MethodAdapter; -import org.objectweb.asm.MethodVisitor; -import org.objectweb.asm.Opcodes; - -import java.io.InputStream; - -/** - * @author Eric Bruneton - */ -public class ASMPerfTest extends ALLPerfTest { - - final static Integer ONE = new Integer(1); - - public static void main(final String args[]) throws Exception { - System.out.println("ASM PERFORMANCES\n"); - new ASMPerfTest().perfs(args); - } - - ALLPerfTest newInstance() { - return new ASMPerfTest(); - } - - byte[] nullAdaptClass(final InputStream is, final String name) - throws Exception - { - ClassReader cr = new ClassReader(is); - ClassWriter cw = new ClassWriter(compute); - ClassAdapter ca = new ClassAdapter(cw); - cr.accept(ca, skipDebug); - return cw.toByteArray(); - } - - byte[] counterAdaptClass(final InputStream is, final String name) - throws Exception - { - ClassReader cr = new ClassReader(is); - ClassWriter cw = new ClassWriter(false); - ClassAdapter ca = new CounterClassAdapter(cw); - cr.accept(ca, false); - return cw.toByteArray(); - } - - static class CounterClassAdapter extends ClassAdapter implements Opcodes { - - private String owner; - - CounterClassAdapter(ClassVisitor cv) { - super(cv); - } - - public void visit( - int version, - int access, - String name, - String signature, - String superName, - String[] interfaces) - { - super.visit(version, access, name, signature, superName, interfaces); - if ((access & ACC_INTERFACE) == 0) { - cv.visitField(ACC_PUBLIC, "_counter", "I", null, null); - } - owner = name; - } - - public MethodVisitor visitMethod( - int access, - String name, - String desc, - String signature, - String[] exceptions) - { - MethodVisitor mv = super.visitMethod(access, - name, - desc, - signature, - exceptions); - if (!name.equals("<init>") - && (access & (ACC_STATIC | ACC_NATIVE | ACC_ABSTRACT)) == 0) - { - return new CounterMethodAdapter(mv, owner); - } - return mv; - } - } - - static class CounterMethodAdapter extends MethodAdapter implements Opcodes { - - CounterMethodAdapter(MethodVisitor mv, String owner) { - super(mv); - mv.visitVarInsn(ALOAD, 0); - mv.visitVarInsn(ALOAD, 0); - mv.visitFieldInsn(GETFIELD, owner, "_counter", "I"); - mv.visitLdcInsn(ONE); - mv.visitInsn(IADD); - mv.visitFieldInsn(PUTFIELD, owner, "_counter", "I"); - } - - public void visitMaxs(int maxStack, int maxLocals) { - super.visitMaxs(Math.max(maxStack, 2), maxLocals); - } - } -}
  5. Download patch .pc/testsuite_fix.diff/test/perf/org/objectweb/asm/ASMMemTest.java
  6. Download patch .pc/testsuite_fix.diff/test/perf/all.xml

    --- 2.2.3-4/.pc/testsuite_fix.diff/test/perf/all.xml 1970-01-01 01:00:00.000000000 +0100 +++ 2.2.3-4ubuntu2/.pc/testsuite_fix.diff/test/perf/all.xml 2006-07-05 16:32:13.000000000 +0100 @@ -0,0 +1,21 @@ +<project name="perf" default="test"> + <target name="test"> + <java classname="org.objectweb.asm.ALLPerfTest" fork="yes"> + <classpath> + <pathelement location="${out.build}"/> + <pathelement location="${out.test}"/> + <fileset dir="${test}"> + <include name="lib/bcel.jar"/> + <include name="lib/serp.jar"/> + <include name="lib/javassist.jar"/> + <!-- xslt engines --> + <include name="lib/jd.xslt-1.5.5.jar"/> + <include name="lib/saxon7.jar"/> + <include name="lib/xalan-2.6.0.jar"/> + </fileset> + </classpath> + <arg value="${out.test}/"/> + <arg value="${java.home}/../lib/tools.jar"/> + </java> + </target> +</project>
  7. Download patch debian/rules

    --- 2.2.3-4/debian/rules 2011-02-09 22:04:49.000000000 +0000 +++ 2.2.3-4ubuntu2/debian/rules 2011-02-09 18:41:33.000000000 +0000 @@ -7,8 +7,10 @@ include /usr/share/cdbs/1/rules/patchsys PACKAGE := $(DEB_SOURCE_PACKAGE) VERSION := $(DEB_UPSTREAM_VERSION) JAVA_HOME := /usr/lib/jvm/default-java -DEB_JARS := gnujaxp ant-junit junit xalan2 ow_util_ant_tasks +DEB_JARS := gnujaxp ant-junit junit xalan2 ow_util_ant_tasks janino commons-lang.jar DEB_ANT_BUILD_TARGET := dist +DEB_ANT_CHECK_TARGET := test +DEB_ANT_ARGS := -Dasm.test=/usr/share/java/commons-lang.jar install/libasm2-java:: mh_installpoms -plib$(PACKAGE)-java
  8. Download patch .pc/.version

    --- 2.2.3-4/.pc/.version 1970-01-01 01:00:00.000000000 +0100 +++ 2.2.3-4ubuntu2/.pc/.version 2011-02-09 22:02:26.000000000 +0000 @@ -0,0 +1 @@ +2
  9. Download patch .pc/javac_warnings.diff/src/org/objectweb/asm/attrs/StackMapTableAttribute.java
  10. Download patch .pc/testsuite_fix.diff/test/perf/org/objectweb/asm/xml/XMLPerfTest.java
  11. Download patch test/perf/all.xml

    --- 2.2.3-4/test/perf/all.xml 2006-07-05 16:32:13.000000000 +0100 +++ 2.2.3-4ubuntu2/test/perf/all.xml 1970-01-01 01:00:00.000000000 +0100 @@ -1,21 +0,0 @@ -<project name="perf" default="test"> - <target name="test"> - <java classname="org.objectweb.asm.ALLPerfTest" fork="yes"> - <classpath> - <pathelement location="${out.build}"/> - <pathelement location="${out.test}"/> - <fileset dir="${test}"> - <include name="lib/bcel.jar"/> - <include name="lib/serp.jar"/> - <include name="lib/javassist.jar"/> - <!-- xslt engines --> - <include name="lib/jd.xslt-1.5.5.jar"/> - <include name="lib/saxon7.jar"/> - <include name="lib/xalan-2.6.0.jar"/> - </fileset> - </classpath> - <arg value="${out.test}/"/> - <arg value="${java.home}/../lib/tools.jar"/> - </java> - </target> -</project>
  12. Download patch .pc/testsuite_fix.diff/test/perf/org/objectweb/asm/BCELPerfTest.java

    --- 2.2.3-4/.pc/testsuite_fix.diff/test/perf/org/objectweb/asm/BCELPerfTest.java 1970-01-01 01:00:00.000000000 +0100 +++ 2.2.3-4ubuntu2/.pc/testsuite_fix.diff/test/perf/org/objectweb/asm/BCELPerfTest.java 2006-07-05 16:32:13.000000000 +0100 @@ -0,0 +1,142 @@ +/*** + * ASM performance test: measures the performances of asm package + * Copyright (c) 2002-2005 France Telecom + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. 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. + * 3. Neither the name of the copyright holders nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS 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. + */ +package org.objectweb.asm; + +import org.apache.bcel.Constants; +import org.apache.bcel.classfile.ClassParser; +import org.apache.bcel.classfile.JavaClass; +import org.apache.bcel.classfile.Method; +import org.apache.bcel.generic.ALOAD; +import org.apache.bcel.generic.ClassGen; +import org.apache.bcel.generic.ConstantPoolGen; +import org.apache.bcel.generic.FieldGen; +import org.apache.bcel.generic.GETFIELD; +import org.apache.bcel.generic.IADD; +import org.apache.bcel.generic.ICONST; +import org.apache.bcel.generic.InstructionHandle; +import org.apache.bcel.generic.InstructionList; +import org.apache.bcel.generic.MethodGen; +import org.apache.bcel.generic.PUTFIELD; +import org.apache.bcel.generic.Type; + +import java.io.InputStream; + +/** + * @author Eric Bruneton + */ +public class BCELPerfTest extends ALLPerfTest implements Constants { + + public static void main(final String args[]) throws Exception { + System.out.println("BCEL PERFORMANCES\n"); + new BCELPerfTest().perfs(args); + } + + ALLPerfTest newInstance() { + return new BCELPerfTest(); + } + + byte[] nullAdaptClass(final InputStream is, final String name) + throws Exception + { + JavaClass jc = new ClassParser(is, name + ".class").parse(); + ClassGen cg = new ClassGen(jc); + ConstantPoolGen cp = cg.getConstantPool(); + Method[] ms = cg.getMethods(); + for (int j = 0; j < ms.length; ++j) { + MethodGen mg = new MethodGen(ms[j], cg.getClassName(), cp); + boolean lv = ms[j].getLocalVariableTable() == null; + boolean ln = ms[j].getLineNumberTable() == null; + if (lv) { + mg.removeLocalVariables(); + } + if (ln) { + mg.removeLineNumbers(); + } + mg.stripAttributes(skipDebug); + InstructionList il = mg.getInstructionList(); + if (il != null) { + InstructionHandle ih = il.getStart(); + while (ih != null) { + ih = ih.getNext(); + } + if (compute) { + mg.setMaxStack(); + mg.setMaxLocals(); + } + } + cg.replaceMethod(ms[j], mg.getMethod()); + } + return cg.getJavaClass().getBytes(); + } + + byte[] counterAdaptClass(final InputStream is, final String name) + throws Exception + { + JavaClass jc = new ClassParser(is, name + ".class").parse(); + ClassGen cg = new ClassGen(jc); + ConstantPoolGen cp = cg.getConstantPool(); + if (!cg.isInterface()) { + FieldGen fg = new FieldGen(ACC_PUBLIC, + Type.getType("I"), + "_counter", + cp); + cg.addField(fg.getField()); + } + Method[] ms = cg.getMethods(); + for (int j = 0; j < ms.length; ++j) { + MethodGen mg = new MethodGen(ms[j], cg.getClassName(), cp); + if (!mg.getName().equals("<init>") && !mg.isStatic() + && !mg.isAbstract() && !mg.isNative()) + { + if (mg.getInstructionList() != null) { + InstructionList il = new InstructionList(); + il.append(new ALOAD(0)); + il.append(new ALOAD(0)); + il.append(new GETFIELD(cp.addFieldref(name, "_counter", "I"))); + il.append(new ICONST(1)); + il.append(new IADD()); + il.append(new PUTFIELD(cp.addFieldref(name, "_counter", "I"))); + mg.getInstructionList().insert(il); + mg.setMaxStack(Math.max(mg.getMaxStack(), 2)); + boolean lv = ms[j].getLocalVariableTable() == null; + boolean ln = ms[j].getLineNumberTable() == null; + if (lv) { + mg.removeLocalVariables(); + } + if (ln) { + mg.removeLineNumbers(); + } + cg.replaceMethod(ms[j], mg.getMethod()); + } + } + } + return cg.getJavaClass().getBytes(); + } +}
  13. Download patch debian/control

    --- 2.2.3-4/debian/control 2011-02-09 22:04:49.000000000 +0000 +++ 2.2.3-4ubuntu2/debian/control 2011-02-09 18:41:33.000000000 +0000 @@ -1,11 +1,13 @@ Source: asm2 Section: java Priority: optional -Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> Uploaders: Barry Hawkins <barry@alltc.com>, Michael Koch <konqueror@gmx.de> Build-Depends: debhelper (>= 6), cdbs, ant (>= 1.6.5), default-jdk, quilt -Build-Depends-Indep: maven-repo-helper, libow-util-ant-tasks-java (>= 1.3-2), openjdk-6-doc -Standards-Version: 3.8.2 +Build-Depends-Indep: maven-repo-helper, libow-util-ant-tasks-java (>= 1.3-2), openjdk-6-doc, + ant-optional (>= 1.6.5), janino, libcommons-lang-java, junit +Standards-Version: 3.9.1 Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/asm2 Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/trunk/asm2 Homepage: http://asm.objectweb.org/
  14. Download patch test/build.xml

    --- 2.2.3-4/test/build.xml 2006-07-05 16:32:12.000000000 +0100 +++ 2.2.3-4ubuntu2/test/build.xml 2011-02-09 22:02:26.000000000 +0000 @@ -100,17 +100,18 @@ <fail/> </target> - <target name="init" depends="properties,check"> + <target name="init" depends="properties"> <mkdir dir="${out.test}"/> <mkdir dir="${out.test}/reports"/> <path id="test.classpath"> <pathelement location="${classes}"/> + <pathelement path="${java.class.path}"/> <pathelement location="${out.test}"/> - <pathelement path="${bcel.path}"/> + <!--pathelement path="${bcel.path}"/> <pathelement path="${serp.path}"/> <pathelement path="${javassist.path}"/> <pathelement path="${janino.path}"/> - <path refid="cobertura.classpath"/> + <path refid="cobertura.classpath"/--> </path> </target> @@ -173,8 +174,8 @@ <multipleAnt dir="${test.conform}" inheritRefs="true"/> <!--multipleAnt dir="${test.deviance}" inheritRefs="true"/> <multipleAnt dir="${test.thread}" inheritRefs="true"/> - <multipleAnt dir="${test.stress}" inheritRefs="true"/--> - <multipleAnt dir="${test.perf}" inheritRefs="true"/> + <multipleAnt dir="${test.stress}" inheritRefs="true"/> + <multipleAnt dir="${test.perf}" inheritRefs="true"/--> </target> <target name="testType" depends="compile" if="test.type"> @@ -189,8 +190,8 @@ <multipleAnt dir="${test.conform}" target="${test.name}" inheritRefs="true"/> <!--multipleAnt dir="${test.deviance}" target="${test.name}" inheritRefs="true"/> <multipleAnt dir="${test.thread}" target="${test.name}" inheritRefs="true"/> - <multipleAnt dir="${test.stress}" target="${test.name}" inheritRefs="true"/--> - <multipleAnt dir="${test.perf}" target="${test.name}" inheritRefs="true"/> + <multipleAnt dir="${test.stress}" target="${test.name}" inheritRefs="true"/> + <multipleAnt dir="${test.perf}" target="${test.name}" inheritRefs="true"/--> </target> <target name="test" depends="testAll,testType,testGroup,testName">
  15. Download patch test/perf/org/objectweb/asm/SERPPerfTest.java

    --- 2.2.3-4/test/perf/org/objectweb/asm/SERPPerfTest.java 2006-07-05 16:32:23.000000000 +0100 +++ 2.2.3-4ubuntu2/test/perf/org/objectweb/asm/SERPPerfTest.java 1970-01-01 01:00:00.000000000 +0100 @@ -1,112 +0,0 @@ -/*** - * ASM performance test: measures the performances of asm package - * Copyright (c) 2002-2005 France Telecom - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. 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. - * 3. Neither the name of the copyright holders nor the names of its - * contributors may be used to endorse or promote products derived from - * this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS 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. - */ -package org.objectweb.asm; - -import serp.bytecode.BCClass; -import serp.bytecode.BCMethod; -import serp.bytecode.Code; -import serp.bytecode.Project; - -import java.io.InputStream; - -/** - * @author Eric Bruneton - */ -public class SERPPerfTest extends ALLPerfTest { - - private static Project p = new Project(); - - private static BCClass c; - - public static void main(final String args[]) throws Exception { - System.out.println("SERP PERFORMANCES\n"); - new SERPPerfTest().perfs(args); - } - - ALLPerfTest newInstance() { - return new SERPPerfTest(); - } - - byte[] nullAdaptClass(final InputStream is, final String name) - throws Exception - { - if (c != null) { - p.removeClass(c); - } - c = p.loadClass(is); - c.getDeclaredFields(); - BCMethod[] methods = c.getDeclaredMethods(); - for (int i = 0; i < methods.length; ++i) { - Code code = methods[i].getCode(false); - if (code != null) { - while (code.hasNext()) { - code.next(); - } - if (compute) { - code.calculateMaxStack(); - code.calculateMaxLocals(); - } - } - } - return c.toByteArray(); - } - - byte[] counterAdaptClass(final InputStream is, final String name) - throws Exception - { - if (c != null) { - p.removeClass(c); - } - c = p.loadClass(is); - c.getDeclaredFields(); - if (!c.isInterface()) { - c.declareField("_counter", "I"); - } - BCMethod[] methods = c.getDeclaredMethods(); - for (int i = 0; i < methods.length; ++i) { - BCMethod m = methods[i]; - if (!m.getName().equals("<init>") && !m.isStatic() - && !m.isAbstract() && !m.isNative()) - { - Code code = m.getCode(false); - if (code != null) { - code.aload().setLocal(0); - code.aload().setLocal(0); - code.getfield().setField(name, "_counter", "I"); - code.constant().setValue(1); - code.iadd(); - code.putfield().setField(name, "_counter", "I"); - code.setMaxStack(Math.max(code.getMaxStack(), 2)); - } - } - } - return c.toByteArray(); - } -}
  16. Download patch .pc/testsuite_fix.diff/test/perf/mem.xml

    --- 2.2.3-4/.pc/testsuite_fix.diff/test/perf/mem.xml 1970-01-01 01:00:00.000000000 +0100 +++ 2.2.3-4ubuntu2/.pc/testsuite_fix.diff/test/perf/mem.xml 2006-07-05 16:32:13.000000000 +0100 @@ -0,0 +1,12 @@ +<project name="perf" default="test"> + <target name="test"> + <java classname="org.objectweb.asm.ASMMemTest" fork="yes"> + <classpath> + <pathelement location="${out.build}"/> + <pathelement location="${out.test}"/> + </classpath> + <arg value="${java.home}/lib/rt.jar"/> + <arg value="2000"/> + </java> + </target> +</project>
  17. Download patch .pc/applied-patches

    --- 2.2.3-4/.pc/applied-patches 1970-01-01 01:00:00.000000000 +0100 +++ 2.2.3-4ubuntu2/.pc/applied-patches 2011-02-09 22:02:26.000000000 +0000 @@ -0,0 +1,4 @@ +build.patch +javac_warnings.diff +javadoc_warnings.diff +testsuite_fix.diff
  18. Download patch debian/patches/javac_warnings.diff

    --- 2.2.3-4/debian/patches/javac_warnings.diff 1970-01-01 01:00:00.000000000 +0100 +++ 2.2.3-4ubuntu2/debian/patches/javac_warnings.diff 2011-02-09 18:41:33.000000000 +0000 @@ -0,0 +1,27 @@ +Description: Remove invalid characters from .java files to prevent javac warnings +Author: James Page <james.page@canonical.com> +Forwarded: no +Index: asm2.fix-452910/src/org/objectweb/asm/attrs/StackMapTableAttribute.java +=================================================================== +--- asm2.fix-452910.orig/src/org/objectweb/asm/attrs/StackMapTableAttribute.java 2010-09-08 13:06:12.466772893 +0100 ++++ asm2.fix-452910/src/org/objectweb/asm/attrs/StackMapTableAttribute.java 2010-09-08 13:08:05.886075188 +0100 +@@ -43,9 +43,9 @@ + + /** + * The stack map attribute is used during the process of verification by +- * typechecking (§4.11.1). <br> <br> A stack map attribute consists of zero or ++ * typechecking ($4.11.1). <br> <br> A stack map attribute consists of zero or + * more stack map frames. Each stack map frame specifies (either explicitly or +- * implicitly) a bytecode offset, the verification types (§4.11.1) for the local ++ * implicitly) a bytecode offset, the verification types ($4.11.1) for the local + * variables, and the verification types for the operand stack. <br> <br> The + * type checker deals with and manipulates the expected types of a method's + * local variables and operand stack. Throughout this section, a location refers +@@ -625,6 +625,7 @@ + + int type = FULL_FRAME; + int k = 0; ++ + if (cstackSize == 0) { + k = clocalsSize - localsSize; + switch (k) {
  19. Download patch debian/patches/javadoc_warnings.diff

    --- 2.2.3-4/debian/patches/javadoc_warnings.diff 1970-01-01 01:00:00.000000000 +0100 +++ 2.2.3-4ubuntu2/debian/patches/javadoc_warnings.diff 2011-02-09 18:41:33.000000000 +0000 @@ -0,0 +1,129 @@ +Description: Remove invalid javadoc markup to prevent javadoc warnings +Author: James Page <james.page@canonical.com> +Forwarded: no +Index: asm2.fix-452910/src/org/objectweb/asm/tree/ClassNode.java +=================================================================== +--- asm2.fix-452910.orig/src/org/objectweb/asm/tree/ClassNode.java 2010-09-08 13:09:13.966150982 +0100 ++++ asm2.fix-452910/src/org/objectweb/asm/tree/ClassNode.java 2010-09-08 13:35:29.066511830 +0100 +@@ -115,24 +115,18 @@ + /** + * Informations about the inner classes of this class. This list is a list + * of {@link InnerClassNode} objects. +- * +- * @associates org.objectweb.asm.tree.InnerClassNode + */ + public List innerClasses; + + /** + * The fields of this class. This list is a list of {@link FieldNode} + * objects. +- * +- * @associates org.objectweb.asm.tree.FieldNode + */ + public List fields; + + /** + * The methods of this class. This list is a list of {@link MethodNode} + * objects. +- * +- * @associates org.objectweb.asm.tree.MethodNode + */ + public List methods; + +Index: asm2.fix-452910/src/org/objectweb/asm/tree/MemberNode.java +=================================================================== +--- asm2.fix-452910.orig/src/org/objectweb/asm/tree/MemberNode.java 2010-09-08 13:09:26.146699427 +0100 ++++ asm2.fix-452910/src/org/objectweb/asm/tree/MemberNode.java 2010-09-08 13:14:25.977952855 +0100 +@@ -46,8 +46,6 @@ + * The runtime visible annotations of this class, field or method. This list + * is a list of {@link AnnotationNode} objects. May be <tt>null</tt>. + * +- * @associates org.objectweb.asm.tree.AnnotationNode +- * @label visible + */ + public List visibleAnnotations; + +@@ -55,8 +53,6 @@ + * The runtime invisible annotations of this class, field or method. This + * list is a list of {@link AnnotationNode} objects. May be <tt>null</tt>. + * +- * @associates org.objectweb.asm.tree.AnnotationNode +- * @label invisible + */ + public List invisibleAnnotations; + +@@ -64,7 +60,6 @@ + * The non standard attributes of this class, field or method. This list is + * a list of {@link Attribute} objects. May be <tt>null</tt>. + * +- * @associates org.objectweb.asm.Attribute + */ + public List attrs; + +Index: asm2.fix-452910/src/org/objectweb/asm/tree/MethodNode.java +=================================================================== +--- asm2.fix-452910.orig/src/org/objectweb/asm/tree/MethodNode.java 2010-09-08 13:09:35.938575608 +0100 ++++ asm2.fix-452910/src/org/objectweb/asm/tree/MethodNode.java 2010-09-08 13:14:13.496075699 +0100 +@@ -90,8 +90,6 @@ + * The runtime visible parameter annotations of this method. These lists are + * lists of {@link AnnotationNode} objects. May be <tt>null</tt>. + * +- * @associates org.objectweb.asm.tree.AnnotationNode +- * @label invisible parameters + */ + public List[] visibleParameterAnnotations; + +@@ -99,8 +97,6 @@ + * The runtime invisible parameter annotations of this method. These lists + * are lists of {@link AnnotationNode} objects. May be <tt>null</tt>. + * +- * @associates org.objectweb.asm.tree.AnnotationNode +- * @label visible parameters + */ + public List[] invisibleParameterAnnotations; + +@@ -108,8 +104,6 @@ + * The instructions of this method. This list is a list of + * {@link AbstractInsnNode} objects. + * +- * @associates org.objectweb.asm.tree.AbstractInsnNode +- * @label instructions + */ + public List instructions; + +@@ -117,7 +111,6 @@ + * The try catch blocks of this method. This list is a list of + * {@link TryCatchBlockNode} objects. + * +- * @associates org.objectweb.asm.tree.TryCatchBlockNode + */ + public List tryCatchBlocks; + +@@ -135,7 +128,6 @@ + * The local variables of this method. This list is a list of + * {@link LocalVariableNode} objects. May be <tt>null</tt> + * +- * @associates org.objectweb.asm.tree.LocalVariableNode + */ + public List localVariables; + +@@ -143,7 +135,6 @@ + * The line numbers of this method. This list is a list of + * {@link LineNumberNode} objects. May be <tt>null</tt> + * +- * @associates org.objectweb.asm.tree.LineNumberNode + */ + public List lineNumbers; + +Index: asm2.fix-452910/src/org/objectweb/asm/util/AbstractVisitor.java +=================================================================== +--- asm2.fix-452910.orig/src/org/objectweb/asm/util/AbstractVisitor.java 2010-09-08 13:10:01.687956915 +0100 ++++ asm2.fix-452910/src/org/objectweb/asm/util/AbstractVisitor.java 2010-09-08 13:37:08.466386859 +0100 +@@ -34,6 +34,7 @@ + import java.util.List; + + import org.objectweb.asm.Attribute; ++import org.objectweb.asm.util.attrs.ASMifiable; + import org.objectweb.asm.util.attrs.ASMStackMapAttribute; + import org.objectweb.asm.util.attrs.ASMStackMapTableAttribute; +
  20. Download patch .pc/javadoc_warnings.diff/src/org/objectweb/asm/util/AbstractVisitor.java
  21. Download patch src/org/objectweb/asm/tree/ClassNode.java

    --- 2.2.3-4/src/org/objectweb/asm/tree/ClassNode.java 2006-07-05 16:32:30.000000000 +0100 +++ 2.2.3-4ubuntu2/src/org/objectweb/asm/tree/ClassNode.java 2011-02-09 22:02:26.000000000 +0000 @@ -115,24 +115,18 @@ public class ClassNode extends MemberNod /** * Informations about the inner classes of this class. This list is a list * of {@link InnerClassNode} objects. - * - * @associates org.objectweb.asm.tree.InnerClassNode */ public List innerClasses; /** * The fields of this class. This list is a list of {@link FieldNode} * objects. - * - * @associates org.objectweb.asm.tree.FieldNode */ public List fields; /** * The methods of this class. This list is a list of {@link MethodNode} * objects. - * - * @associates org.objectweb.asm.tree.MethodNode */ public List methods;
  22. Download patch test/perf/org/objectweb/asm/xml/XMLPerfTest.java
  23. Download patch test/perf/mem.xml

    --- 2.2.3-4/test/perf/mem.xml 2006-07-05 16:32:13.000000000 +0100 +++ 2.2.3-4ubuntu2/test/perf/mem.xml 1970-01-01 01:00:00.000000000 +0100 @@ -1,12 +0,0 @@ -<project name="perf" default="test"> - <target name="test"> - <java classname="org.objectweb.asm.ASMMemTest" fork="yes"> - <classpath> - <pathelement location="${out.build}"/> - <pathelement location="${out.test}"/> - </classpath> - <arg value="${java.home}/lib/rt.jar"/> - <arg value="2000"/> - </java> - </target> -</project>
  24. Download patch src/org/objectweb/asm/attrs/StackMapTableAttribute.java

    --- 2.2.3-4/src/org/objectweb/asm/attrs/StackMapTableAttribute.java 2006-07-05 16:32:12.000000000 +0100 +++ 2.2.3-4ubuntu2/src/org/objectweb/asm/attrs/StackMapTableAttribute.java 2011-02-09 22:02:26.000000000 +0000 @@ -43,9 +43,9 @@ import org.objectweb.asm.Type; /** * The stack map attribute is used during the process of verification by - * typechecking (§4.11.1). <br> <br> A stack map attribute consists of zero or + * typechecking ($4.11.1). <br> <br> A stack map attribute consists of zero or * more stack map frames. Each stack map frame specifies (either explicitly or - * implicitly) a bytecode offset, the verification types (§4.11.1) for the local + * implicitly) a bytecode offset, the verification types ($4.11.1) for the local * variables, and the verification types for the operand stack. <br> <br> The * type checker deals with and manipulates the expected types of a method's * local variables and operand stack. Throughout this section, a location refers @@ -625,6 +625,7 @@ public class StackMapTableAttribute exte int type = FULL_FRAME; int k = 0; + if (cstackSize == 0) { k = clocalsSize - localsSize; switch (k) {
  25. Download patch .pc/javadoc_warnings.diff/src/org/objectweb/asm/tree/MemberNode.java

    --- 2.2.3-4/.pc/javadoc_warnings.diff/src/org/objectweb/asm/tree/MemberNode.java 1970-01-01 01:00:00.000000000 +0100 +++ 2.2.3-4ubuntu2/.pc/javadoc_warnings.diff/src/org/objectweb/asm/tree/MemberNode.java 2006-07-05 16:32:29.000000000 +0100 @@ -0,0 +1,120 @@ +/*** + * ASM: a very small and fast Java bytecode manipulation framework + * Copyright (c) 2000-2005 INRIA, France Telecom + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. 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. + * 3. Neither the name of the copyright holders nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS 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. + */ +package org.objectweb.asm.tree; + +import java.util.ArrayList; +import java.util.List; + +import org.objectweb.asm.AnnotationVisitor; +import org.objectweb.asm.Attribute; + +/** + * An abstract class, field or method node. + * + * @author Eric Bruneton + */ +public abstract class MemberNode { + + /** + * The runtime visible annotations of this class, field or method. This list + * is a list of {@link AnnotationNode} objects. May be <tt>null</tt>. + * + * @associates org.objectweb.asm.tree.AnnotationNode + * @label visible + */ + public List visibleAnnotations; + + /** + * The runtime invisible annotations of this class, field or method. This + * list is a list of {@link AnnotationNode} objects. May be <tt>null</tt>. + * + * @associates org.objectweb.asm.tree.AnnotationNode + * @label invisible + */ + public List invisibleAnnotations; + + /** + * The non standard attributes of this class, field or method. This list is + * a list of {@link Attribute} objects. May be <tt>null</tt>. + * + * @associates org.objectweb.asm.Attribute + */ + public List attrs; + + /** + * Constructs a new {@link MemberNode}. + */ + public MemberNode() { + } + + /** + * Visits an annotation of this class, field or method. + * + * @param desc the class descriptor of the annotation class. + * @param visible <tt>true</tt> if the annotation is visible at runtime. + * @return a visitor to visit the annotation values. + */ + public AnnotationVisitor visitAnnotation( + final String desc, + final boolean visible) + { + AnnotationNode an = new AnnotationNode(desc); + if (visible) { + if (visibleAnnotations == null) { + visibleAnnotations = new ArrayList(1); + } + visibleAnnotations.add(an); + } else { + if (invisibleAnnotations == null) { + invisibleAnnotations = new ArrayList(1); + } + invisibleAnnotations.add(an); + } + return an; + } + + /** + * Visits a non standard attribute of this class, field or method. + * + * @param attr an attribute. + */ + public void visitAttribute(final Attribute attr) { + if (attrs == null) { + attrs = new ArrayList(1); + } + attrs.add(attr); + } + + /** + * Visits the end of this class, field or method. + */ + public void visitEnd() { + } +}
  26. Download patch debian/patches/series

    --- 2.2.3-4/debian/patches/series 2011-02-09 22:04:49.000000000 +0000 +++ 2.2.3-4ubuntu2/debian/patches/series 2011-02-09 18:41:33.000000000 +0000 @@ -1 +1,4 @@ build.patch +javac_warnings.diff +javadoc_warnings.diff +testsuite_fix.diff
  27. Download patch test/perf/org/objectweb/asm/JavassistPerfTest.java

    --- 2.2.3-4/test/perf/org/objectweb/asm/JavassistPerfTest.java 2006-07-05 16:32:20.000000000 +0100 +++ 2.2.3-4ubuntu2/test/perf/org/objectweb/asm/JavassistPerfTest.java 1970-01-01 01:00:00.000000000 +0100 @@ -1,112 +0,0 @@ -/*** - * ASM performance test: measures the performances of asm package - * Copyright (c) 2002-2005 France Telecom - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. 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. - * 3. Neither the name of the copyright holders nor the names of its - * contributors may be used to endorse or promote products derived from - * this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS 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. - */ -package org.objectweb.asm; - -import java.io.InputStream; -import java.lang.reflect.Modifier; - -import javassist.ClassPool; -import javassist.CtClass; -import javassist.CtField; -import javassist.CtMethod; -import javassist.bytecode.Bytecode; -import javassist.bytecode.CodeIterator; -import javassist.bytecode.MethodInfo; -import javassist.bytecode.Opcode; - -/** - * @author Eric Bruneton - */ -public class JavassistPerfTest extends ALLPerfTest { - - public static void main(final String args[]) throws Exception { - System.out.println("Javassist PERFORMANCES\n"); - new JavassistPerfTest().perfs(args); - } - - ClassPool pool; - - public JavassistPerfTest() { - pool = new ClassPool(null); - } - - ALLPerfTest newInstance() { - return new JavassistPerfTest(); - } - - byte[] nullAdaptClass(final InputStream is, final String name) - throws Exception - { - CtClass cc = pool.makeClass(is); - CtMethod[] ms = cc.getDeclaredMethods(); - for (int j = 0; j < ms.length; ++j) { - if (skipDebug) { - // is there a mean to remove the debug attributes? - } - if (compute) { - // how to force recomputation of maxStack and maxLocals? - } - } - return cc.toBytecode(); - } - - byte[] counterAdaptClass(final InputStream is, final String name) - throws Exception - { - CtClass cc = pool.makeClass(is); - if (!cc.isInterface()) { - cc.addField(new CtField(CtClass.intType, "_counter", cc)); - } - CtMethod[] ms = cc.getDeclaredMethods(); - for (int j = 0; j < ms.length; ++j) { - CtMethod m = ms[j]; - int modifiers = m.getModifiers(); - if (!Modifier.isStatic(modifiers) - && !Modifier.isAbstract(modifiers) - && !Modifier.isNative(modifiers)) - { - if (!m.isEmpty()) { - MethodInfo info = m.getMethodInfo(); - Bytecode bc = new Bytecode(info.getConstPool(), 1, 0); - bc.addAload(0); - bc.addAload(0); - bc.addGetfield(cc, "_counter", "I"); - bc.add(Opcode.ICONST_1); - bc.add(Opcode.IADD); - bc.addPutfield(cc, "_counter", "I"); - CodeIterator iter = info.getCodeAttribute().iterator(); - iter.begin(); - iter.insert(bc.get()); - } - } - } - return cc.toBytecode(); - } -}
  28. Download patch build.xml

    --- 2.2.3-4/build.xml 2006-07-05 16:32:20.000000000 +0100 +++ 2.2.3-4ubuntu2/build.xml 2011-02-09 22:02:26.000000000 +0000 @@ -90,13 +90,14 @@ <fail/> </target> - <target name="init" depends="properties,check"> + <target name="init" depends="properties"> <path id="classpath"> + <pathelement path="${java.class.path}"/> <pathelement location="${out.build}"/> </path> - <path id="cobertura.classpath"> + <!--path id="cobertura.classpath"> <fileset dir="test/lib"> <include name="cobertura-1.7.jar"/> <include name="log4j-1.2.9.jar"/> @@ -105,21 +106,20 @@ <include name="ccl.jar"/> <include name="javancss.jar"/> </fileset> - </path> + </path--> <taskdef name="multipleAnt" classname="org.objectweb.util.ant.MultipleAnt" - classpath="${objectweb.ant.tasks.path}"/> + /> <taskdef name="javadocMultipleLink" classname="org.objectweb.util.ant.JavadocMultipleLink" - classpath="${objectweb.ant.tasks.path}"/> + /> <taskdef name="multipleCopy" classname="org.objectweb.util.ant.MultipleCopy" - classpath="${objectweb.ant.tasks.path}"/> + /> - <taskdef classpathref="cobertura.classpath" resource="tasks.properties"/> </target> <!-- =================================== -->
  29. Download patch test/perf/org/objectweb/asm/BCELPerfTest.java

    --- 2.2.3-4/test/perf/org/objectweb/asm/BCELPerfTest.java 2006-07-05 16:32:13.000000000 +0100 +++ 2.2.3-4ubuntu2/test/perf/org/objectweb/asm/BCELPerfTest.java 1970-01-01 01:00:00.000000000 +0100 @@ -1,142 +0,0 @@ -/*** - * ASM performance test: measures the performances of asm package - * Copyright (c) 2002-2005 France Telecom - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. 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. - * 3. Neither the name of the copyright holders nor the names of its - * contributors may be used to endorse or promote products derived from - * this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS 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. - */ -package org.objectweb.asm; - -import org.apache.bcel.Constants; -import org.apache.bcel.classfile.ClassParser; -import org.apache.bcel.classfile.JavaClass; -import org.apache.bcel.classfile.Method; -import org.apache.bcel.generic.ALOAD; -import org.apache.bcel.generic.ClassGen; -import org.apache.bcel.generic.ConstantPoolGen; -import org.apache.bcel.generic.FieldGen; -import org.apache.bcel.generic.GETFIELD; -import org.apache.bcel.generic.IADD; -import org.apache.bcel.generic.ICONST; -import org.apache.bcel.generic.InstructionHandle; -import org.apache.bcel.generic.InstructionList; -import org.apache.bcel.generic.MethodGen; -import org.apache.bcel.generic.PUTFIELD; -import org.apache.bcel.generic.Type; - -import java.io.InputStream; - -/** - * @author Eric Bruneton - */ -public class BCELPerfTest extends ALLPerfTest implements Constants { - - public static void main(final String args[]) throws Exception { - System.out.println("BCEL PERFORMANCES\n"); - new BCELPerfTest().perfs(args); - } - - ALLPerfTest newInstance() { - return new BCELPerfTest(); - } - - byte[] nullAdaptClass(final InputStream is, final String name) - throws Exception - { - JavaClass jc = new ClassParser(is, name + ".class").parse(); - ClassGen cg = new ClassGen(jc); - ConstantPoolGen cp = cg.getConstantPool(); - Method[] ms = cg.getMethods(); - for (int j = 0; j < ms.length; ++j) { - MethodGen mg = new MethodGen(ms[j], cg.getClassName(), cp); - boolean lv = ms[j].getLocalVariableTable() == null; - boolean ln = ms[j].getLineNumberTable() == null; - if (lv) { - mg.removeLocalVariables(); - } - if (ln) { - mg.removeLineNumbers(); - } - mg.stripAttributes(skipDebug); - InstructionList il = mg.getInstructionList(); - if (il != null) { - InstructionHandle ih = il.getStart(); - while (ih != null) { - ih = ih.getNext(); - } - if (compute) { - mg.setMaxStack(); - mg.setMaxLocals(); - } - } - cg.replaceMethod(ms[j], mg.getMethod()); - } - return cg.getJavaClass().getBytes(); - } - - byte[] counterAdaptClass(final InputStream is, final String name) - throws Exception - { - JavaClass jc = new ClassParser(is, name + ".class").parse(); - ClassGen cg = new ClassGen(jc); - ConstantPoolGen cp = cg.getConstantPool(); - if (!cg.isInterface()) { - FieldGen fg = new FieldGen(ACC_PUBLIC, - Type.getType("I"), - "_counter", - cp); - cg.addField(fg.getField()); - } - Method[] ms = cg.getMethods(); - for (int j = 0; j < ms.length; ++j) { - MethodGen mg = new MethodGen(ms[j], cg.getClassName(), cp); - if (!mg.getName().equals("<init>") && !mg.isStatic() - && !mg.isAbstract() && !mg.isNative()) - { - if (mg.getInstructionList() != null) { - InstructionList il = new InstructionList(); - il.append(new ALOAD(0)); - il.append(new ALOAD(0)); - il.append(new GETFIELD(cp.addFieldref(name, "_counter", "I"))); - il.append(new ICONST(1)); - il.append(new IADD()); - il.append(new PUTFIELD(cp.addFieldref(name, "_counter", "I"))); - mg.getInstructionList().insert(il); - mg.setMaxStack(Math.max(mg.getMaxStack(), 2)); - boolean lv = ms[j].getLocalVariableTable() == null; - boolean ln = ms[j].getLineNumberTable() == null; - if (lv) { - mg.removeLocalVariables(); - } - if (ln) { - mg.removeLineNumbers(); - } - cg.replaceMethod(ms[j], mg.getMethod()); - } - } - } - return cg.getJavaClass().getBytes(); - } -}
  30. Download patch .pc/testsuite_fix.diff/test/build.xml
  31. Download patch .pc/testsuite_fix.diff/test/perf/org/objectweb/asm/JavassistPerfTest.java

    --- 2.2.3-4/.pc/testsuite_fix.diff/test/perf/org/objectweb/asm/JavassistPerfTest.java 1970-01-01 01:00:00.000000000 +0100 +++ 2.2.3-4ubuntu2/.pc/testsuite_fix.diff/test/perf/org/objectweb/asm/JavassistPerfTest.java 2006-07-05 16:32:20.000000000 +0100 @@ -0,0 +1,112 @@ +/*** + * ASM performance test: measures the performances of asm package + * Copyright (c) 2002-2005 France Telecom + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. 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. + * 3. Neither the name of the copyright holders nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS 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. + */ +package org.objectweb.asm; + +import java.io.InputStream; +import java.lang.reflect.Modifier; + +import javassist.ClassPool; +import javassist.CtClass; +import javassist.CtField; +import javassist.CtMethod; +import javassist.bytecode.Bytecode; +import javassist.bytecode.CodeIterator; +import javassist.bytecode.MethodInfo; +import javassist.bytecode.Opcode; + +/** + * @author Eric Bruneton + */ +public class JavassistPerfTest extends ALLPerfTest { + + public static void main(final String args[]) throws Exception { + System.out.println("Javassist PERFORMANCES\n"); + new JavassistPerfTest().perfs(args); + } + + ClassPool pool; + + public JavassistPerfTest() { + pool = new ClassPool(null); + } + + ALLPerfTest newInstance() { + return new JavassistPerfTest(); + } + + byte[] nullAdaptClass(final InputStream is, final String name) + throws Exception + { + CtClass cc = pool.makeClass(is); + CtMethod[] ms = cc.getDeclaredMethods(); + for (int j = 0; j < ms.length; ++j) { + if (skipDebug) { + // is there a mean to remove the debug attributes? + } + if (compute) { + // how to force recomputation of maxStack and maxLocals? + } + } + return cc.toBytecode(); + } + + byte[] counterAdaptClass(final InputStream is, final String name) + throws Exception + { + CtClass cc = pool.makeClass(is); + if (!cc.isInterface()) { + cc.addField(new CtField(CtClass.intType, "_counter", cc)); + } + CtMethod[] ms = cc.getDeclaredMethods(); + for (int j = 0; j < ms.length; ++j) { + CtMethod m = ms[j]; + int modifiers = m.getModifiers(); + if (!Modifier.isStatic(modifiers) + && !Modifier.isAbstract(modifiers) + && !Modifier.isNative(modifiers)) + { + if (!m.isEmpty()) { + MethodInfo info = m.getMethodInfo(); + Bytecode bc = new Bytecode(info.getConstPool(), 1, 0); + bc.addAload(0); + bc.addAload(0); + bc.addGetfield(cc, "_counter", "I"); + bc.add(Opcode.ICONST_1); + bc.add(Opcode.IADD); + bc.addPutfield(cc, "_counter", "I"); + CodeIterator iter = info.getCodeAttribute().iterator(); + iter.begin(); + iter.insert(bc.get()); + } + } + } + return cc.toBytecode(); + } +}
  32. Download patch src/org/objectweb/asm/tree/MemberNode.java

    --- 2.2.3-4/src/org/objectweb/asm/tree/MemberNode.java 2006-07-05 16:32:29.000000000 +0100 +++ 2.2.3-4ubuntu2/src/org/objectweb/asm/tree/MemberNode.java 2011-02-09 22:02:26.000000000 +0000 @@ -46,8 +46,6 @@ public abstract class MemberNode { * The runtime visible annotations of this class, field or method. This list * is a list of {@link AnnotationNode} objects. May be <tt>null</tt>. * - * @associates org.objectweb.asm.tree.AnnotationNode - * @label visible */ public List visibleAnnotations; @@ -55,8 +53,6 @@ public abstract class MemberNode { * The runtime invisible annotations of this class, field or method. This * list is a list of {@link AnnotationNode} objects. May be <tt>null</tt>. * - * @associates org.objectweb.asm.tree.AnnotationNode - * @label invisible */ public List invisibleAnnotations; @@ -64,7 +60,6 @@ public abstract class MemberNode { * The non standard attributes of this class, field or method. This list is * a list of {@link Attribute} objects. May be <tt>null</tt>. * - * @associates org.objectweb.asm.Attribute */ public List attrs;
  33. Download patch .pc/testsuite_fix.diff/test/perf/org/objectweb/asm/SERPPerfTest.java

    --- 2.2.3-4/.pc/testsuite_fix.diff/test/perf/org/objectweb/asm/SERPPerfTest.java 1970-01-01 01:00:00.000000000 +0100 +++ 2.2.3-4ubuntu2/.pc/testsuite_fix.diff/test/perf/org/objectweb/asm/SERPPerfTest.java 2006-07-05 16:32:23.000000000 +0100 @@ -0,0 +1,112 @@ +/*** + * ASM performance test: measures the performances of asm package + * Copyright (c) 2002-2005 France Telecom + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. 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. + * 3. Neither the name of the copyright holders nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS 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. + */ +package org.objectweb.asm; + +import serp.bytecode.BCClass; +import serp.bytecode.BCMethod; +import serp.bytecode.Code; +import serp.bytecode.Project; + +import java.io.InputStream; + +/** + * @author Eric Bruneton + */ +public class SERPPerfTest extends ALLPerfTest { + + private static Project p = new Project(); + + private static BCClass c; + + public static void main(final String args[]) throws Exception { + System.out.println("SERP PERFORMANCES\n"); + new SERPPerfTest().perfs(args); + } + + ALLPerfTest newInstance() { + return new SERPPerfTest(); + } + + byte[] nullAdaptClass(final InputStream is, final String name) + throws Exception + { + if (c != null) { + p.removeClass(c); + } + c = p.loadClass(is); + c.getDeclaredFields(); + BCMethod[] methods = c.getDeclaredMethods(); + for (int i = 0; i < methods.length; ++i) { + Code code = methods[i].getCode(false); + if (code != null) { + while (code.hasNext()) { + code.next(); + } + if (compute) { + code.calculateMaxStack(); + code.calculateMaxLocals(); + } + } + } + return c.toByteArray(); + } + + byte[] counterAdaptClass(final InputStream is, final String name) + throws Exception + { + if (c != null) { + p.removeClass(c); + } + c = p.loadClass(is); + c.getDeclaredFields(); + if (!c.isInterface()) { + c.declareField("_counter", "I"); + } + BCMethod[] methods = c.getDeclaredMethods(); + for (int i = 0; i < methods.length; ++i) { + BCMethod m = methods[i]; + if (!m.getName().equals("<init>") && !m.isStatic() + && !m.isAbstract() && !m.isNative()) + { + Code code = m.getCode(false); + if (code != null) { + code.aload().setLocal(0); + code.aload().setLocal(0); + code.getfield().setField(name, "_counter", "I"); + code.constant().setValue(1); + code.iadd(); + code.putfield().setField(name, "_counter", "I"); + code.setMaxStack(Math.max(code.getMaxStack(), 2)); + } + } + } + return c.toByteArray(); + } +}
  34. Download patch .pc/javadoc_warnings.diff/src/org/objectweb/asm/tree/MethodNode.java
  35. Download patch debian/patches/testsuite_fix.diff
  36. Download patch debian/source/format

    --- 2.2.3-4/debian/source/format 1970-01-01 01:00:00.000000000 +0100 +++ 2.2.3-4ubuntu2/debian/source/format 2011-02-09 22:02:26.000000000 +0000 @@ -0,0 +1 @@ +3.0 (quilt)
  37. Download patch src/org/objectweb/asm/tree/MethodNode.java

    --- 2.2.3-4/src/org/objectweb/asm/tree/MethodNode.java 2006-07-05 16:32:22.000000000 +0100 +++ 2.2.3-4ubuntu2/src/org/objectweb/asm/tree/MethodNode.java 2011-02-09 22:02:26.000000000 +0000 @@ -90,8 +90,6 @@ public class MethodNode extends MemberNo * The runtime visible parameter annotations of this method. These lists are * lists of {@link AnnotationNode} objects. May be <tt>null</tt>. * - * @associates org.objectweb.asm.tree.AnnotationNode - * @label invisible parameters */ public List[] visibleParameterAnnotations; @@ -99,8 +97,6 @@ public class MethodNode extends MemberNo * The runtime invisible parameter annotations of this method. These lists * are lists of {@link AnnotationNode} objects. May be <tt>null</tt>. * - * @associates org.objectweb.asm.tree.AnnotationNode - * @label visible parameters */ public List[] invisibleParameterAnnotations; @@ -108,8 +104,6 @@ public class MethodNode extends MemberNo * The instructions of this method. This list is a list of * {@link AbstractInsnNode} objects. * - * @associates org.objectweb.asm.tree.AbstractInsnNode - * @label instructions */ public List instructions; @@ -117,7 +111,6 @@ public class MethodNode extends MemberNo * The try catch blocks of this method. This list is a list of * {@link TryCatchBlockNode} objects. * - * @associates org.objectweb.asm.tree.TryCatchBlockNode */ public List tryCatchBlocks; @@ -135,7 +128,6 @@ public class MethodNode extends MemberNo * The local variables of this method. This list is a list of * {@link LocalVariableNode} objects. May be <tt>null</tt> * - * @associates org.objectweb.asm.tree.LocalVariableNode */ public List localVariables; @@ -143,7 +135,6 @@ public class MethodNode extends MemberNo * The line numbers of this method. This list is a list of * {@link LineNumberNode} objects. May be <tt>null</tt> * - * @associates org.objectweb.asm.tree.LineNumberNode */ public List lineNumbers;
  38. Download patch .pc/build.patch/build.xml
  39. Download patch debian/copyright
  40. Download patch .pc/testsuite_fix.diff/test/perf/org/objectweb/asm/ALLPerfTest.java
  41. Download patch .pc/testsuite_fix.diff/test/perf/org/objectweb/asm/ASMPerfTest.java

    --- 2.2.3-4/.pc/testsuite_fix.diff/test/perf/org/objectweb/asm/ASMPerfTest.java 1970-01-01 01:00:00.000000000 +0100 +++ 2.2.3-4ubuntu2/.pc/testsuite_fix.diff/test/perf/org/objectweb/asm/ASMPerfTest.java 2006-07-05 16:32:22.000000000 +0100 @@ -0,0 +1,138 @@ +/*** + * ASM performance test: measures the performances of asm package + * Copyright (c) 2002-2005 France Telecom + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. 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. + * 3. Neither the name of the copyright holders nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS 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. + */ +package org.objectweb.asm; + +import org.objectweb.asm.ClassAdapter; +import org.objectweb.asm.ClassReader; +import org.objectweb.asm.ClassVisitor; +import org.objectweb.asm.ClassWriter; +import org.objectweb.asm.MethodAdapter; +import org.objectweb.asm.MethodVisitor; +import org.objectweb.asm.Opcodes; + +import java.io.InputStream; + +/** + * @author Eric Bruneton + */ +public class ASMPerfTest extends ALLPerfTest { + + final static Integer ONE = new Integer(1); + + public static void main(final String args[]) throws Exception { + System.out.println("ASM PERFORMANCES\n"); + new ASMPerfTest().perfs(args); + } + + ALLPerfTest newInstance() { + return new ASMPerfTest(); + } + + byte[] nullAdaptClass(final InputStream is, final String name) + throws Exception + { + ClassReader cr = new ClassReader(is); + ClassWriter cw = new ClassWriter(compute); + ClassAdapter ca = new ClassAdapter(cw); + cr.accept(ca, skipDebug); + return cw.toByteArray(); + } + + byte[] counterAdaptClass(final InputStream is, final String name) + throws Exception + { + ClassReader cr = new ClassReader(is); + ClassWriter cw = new ClassWriter(false); + ClassAdapter ca = new CounterClassAdapter(cw); + cr.accept(ca, false); + return cw.toByteArray(); + } + + static class CounterClassAdapter extends ClassAdapter implements Opcodes { + + private String owner; + + CounterClassAdapter(ClassVisitor cv) { + super(cv); + } + + public void visit( + int version, + int access, + String name, + String signature, + String superName, + String[] interfaces) + { + super.visit(version, access, name, signature, superName, interfaces); + if ((access & ACC_INTERFACE) == 0) { + cv.visitField(ACC_PUBLIC, "_counter", "I", null, null); + } + owner = name; + } + + public MethodVisitor visitMethod( + int access, + String name, + String desc, + String signature, + String[] exceptions) + { + MethodVisitor mv = super.visitMethod(access, + name, + desc, + signature, + exceptions); + if (!name.equals("<init>") + && (access & (ACC_STATIC | ACC_NATIVE | ACC_ABSTRACT)) == 0) + { + return new CounterMethodAdapter(mv, owner); + } + return mv; + } + } + + static class CounterMethodAdapter extends MethodAdapter implements Opcodes { + + CounterMethodAdapter(MethodVisitor mv, String owner) { + super(mv); + mv.visitVarInsn(ALOAD, 0); + mv.visitVarInsn(ALOAD, 0); + mv.visitFieldInsn(GETFIELD, owner, "_counter", "I"); + mv.visitLdcInsn(ONE); + mv.visitInsn(IADD); + mv.visitFieldInsn(PUTFIELD, owner, "_counter", "I"); + } + + public void visitMaxs(int maxStack, int maxLocals) { + super.visitMaxs(Math.max(maxStack, 2), maxLocals); + } + } +}
  42. Download patch src/org/objectweb/asm/util/AbstractVisitor.java

    --- 2.2.3-4/src/org/objectweb/asm/util/AbstractVisitor.java 2006-07-05 16:32:12.000000000 +0100 +++ 2.2.3-4ubuntu2/src/org/objectweb/asm/util/AbstractVisitor.java 2011-02-09 22:02:26.000000000 +0000 @@ -34,6 +34,7 @@ import java.util.ArrayList; import java.util.List; import org.objectweb.asm.Attribute; +import org.objectweb.asm.util.attrs.ASMifiable; import org.objectweb.asm.util.attrs.ASMStackMapAttribute; import org.objectweb.asm.util.attrs.ASMStackMapTableAttribute;

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: batik

batik (1.7.ubuntu-8ubuntu1) precise; urgency=low * Merge from Debian testing (LP: #946158), remaining changes: + fix upstream version since we're stuck with this fake upstream version until the next upstream release - update debian/rules * Drop debian/patches/series diff as Debian now has their own version which works fine * Mark Vcs-* as XS-Debian-Vcs-* - update debian/control -- Micah Gersten <micahg@ubuntu.com> Sun, 04 Mar 2012 02:36:50 -0600

Modifications :
  1. Download patch debian/rules

    --- 1.7+dfsg-1/debian/rules 2012-03-12 19:29:01.000000000 +0000 +++ 1.7.ubuntu-8ubuntu1/debian/rules 2012-03-04 08:39:46.000000000 +0000 @@ -9,6 +9,8 @@ export JITC_PROCESSOR_TYPE=6 include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/ant.mk +export VERSION = $(shell echo $(DEB_UPSTREAM_VERSION) | sed s/\.ubuntu//) + arch = $(shell dpkg-architecture -qDEB_HOST_ARCH) JAVA_HOME_DIRS := /usr/lib/jvm/java-7-openjdk-$(arch) \ @@ -24,17 +26,15 @@ DEB_ANT_BUILDFILE := build.xml DEB_ANT_CLEAN_TARGET := clean # Increasing memory of the compiler -ANT_OPTS := -Xms256m -Xmx256m -Dbuild.sysclasspath=only +ANT_OPTS := -Xms256m -Xmx256m LIBRARY=batik -UPSTREAM_VERSION = $(subst +dfsg,,$(DEB_UPSTREAM_VERSION)) - LIB_NAMES = all libs install/libbatik-java:: # Install poms ant maven-artifacts - for jar in batik-$(UPSTREAM_VERSION)/maven/*/$(UPSTREAM_VERSION)/*.jar; do \ + for jar in batik-$(VERSION)/maven/*/$(VERSION)/*.jar; do \ pom=$$(dirname $$jar)/$$(basename $$jar .jar).pom; \ mh_installpom -v -plibbatik-java $$pom; \ mh_installjar -plibbatik-java -l $$pom $$jar; \ @@ -42,11 +42,11 @@ install/libbatik-java:: # Install batik-all.jar and batik-libs.jar for name in $(LIB_NAMES); do \ - install -m 644 batik-$(UPSTREAM_VERSION)/lib/batik-$$name.jar debian/libbatik-java/usr/share/java/batik-$$name-$(UPSTREAM_VERSION).jar; \ - ln -s batik-$$name-$(UPSTREAM_VERSION).jar debian/libbatik-java/usr/share/java/batik-$$name.jar; \ + install -m 644 batik-$(VERSION)/lib/batik-$$name.jar debian/libbatik-java/usr/share/java/batik-$$name-$(VERSION).jar; \ + ln -s batik-$$name-$(VERSION).jar debian/libbatik-java/usr/share/java/batik-$$name.jar; \ done - ln -s batik-all-$(UPSTREAM_VERSION).jar debian/libbatik-java/usr/share/java/batik-$(UPSTREAM_VERSION).jar; \ - ln -s batik-all-$(UPSTREAM_VERSION).jar debian/libbatik-java/usr/share/java/batik.jar; \ + ln -s batik-all-$(VERSION).jar debian/libbatik-java/usr/share/java/batik-$(VERSION).jar; \ + ln -s batik-all-$(VERSION).jar debian/libbatik-java/usr/share/java/batik.jar; \ # Install wrapper scripts install -d debian/libbatik-java/usr/bin
  2. Download patch debian/control

    --- 1.7+dfsg-1/debian/control 2012-03-12 19:43:35.000000000 +0000 +++ 1.7.ubuntu-8ubuntu1/debian/control 2012-03-04 08:40:26.000000000 +0000 @@ -1,18 +1,19 @@ Source: batik Section: java Priority: optional -Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> Uploaders: Wolfgang Baer <WBaer@gmx.de>, Michael Koch <konqueror@gmx.de>, Vincent Fourmond <fourmond@debian.org>, Onkar Shinde <onkarshinde@ubuntu.com> -Standards-Version: 3.9.3 +Standards-Version: 3.9.2 Build-Depends: debhelper (>= 5.0), cdbs Build-Depends-Indep: openjdk-6-jdk | sun-java5-jdk | sun-java6-jdk, ant, libbsf-java, libxalan2-java, rhino, libavalon-framework-java (>= 4.2.0), libcommons-io-java, libcommons-logging-java, libxml-commons-external-java, maven-repo-helper Homepage: http://xml.apache.org/batik/ -Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/batik -Vcs-Browser: http://svn.debian.org/viewsvn/pkg-java/trunk/batik +XS-Debian-Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/batik +XS-Debian-Vcs-Browser: http://svn.debian.org/viewsvn/pkg-java/trunk/batik Package: libbatik-java Architecture: all
  3. Download patch .pc/applied-patches

    --- 1.7+dfsg-1/.pc/applied-patches 2012-03-16 07:43:39.000000000 +0000 +++ 1.7.ubuntu-8ubuntu1/.pc/applied-patches 2012-03-16 07:43:44.000000000 +0000 @@ -1,3 +1,2 @@ 06_fix_paths_in_policy_files.patch source-1.5.patch -remove-js.patch
  4. Download patch debian/new-upstream

    --- 1.7+dfsg-1/debian/new-upstream 2012-03-12 18:57:12.000000000 +0000 +++ 1.7.ubuntu-8ubuntu1/debian/new-upstream 2008-03-31 21:07:30.000000000 +0000 @@ -1,7 +1,7 @@ #!/bin/sh # -# new-upstream: copyright 2012 by Vincent Fourmond. -# See debian/copyright file for details. +# new-upstream: copyright 2008 by Vincent Fourmond. +# Repackage a zip into a .tar.gz archive # # Called by uscan; from uscan(1): # @@ -15,25 +15,18 @@ # version=$2 -filename=`readlink -f $3` +filename=$3 dir=`mktemp -d` -curdir=`pwd` +# We repackage the upstream source zip file: +unzip $filename -d $dir +origname=batik_$version.orig.tar.gz -origname=batik_$version"+dfsg".orig.tar.xz - -echo "Repackaging batik version $version from $filename" - -# Abort on errors: -set -e - -# We repackage the upstream source file, skipping binary JAR files. +# We repackage excluding the lib/ subdir cd $dir -unzip $filename -cd $dir/batik* -find -name '*.jar' | xargs rm -cd .. -tar cvJf $curdir/../$origname batik*/ +tar cvz \ + -f $origname bat* cd - -rm -rf $dir +mv $dir/$origname .. +rm -rf $dir \ No newline at end of file
  5. Download patch debian/patches/remove-js.patch

    --- 1.7+dfsg-1/debian/patches/remove-js.patch 2012-03-12 19:24:09.000000000 +0000 +++ 1.7.ubuntu-8ubuntu1/debian/patches/remove-js.patch 1970-01-01 00:00:00.000000000 +0000 @@ -1,17 +0,0 @@ -Index: batik-1.7+dfsg/build.xml -=================================================================== ---- batik-1.7+dfsg.orig/build.xml 2012-03-12 20:23:44.334097595 +0100 -+++ batik-1.7+dfsg/build.xml 2012-03-12 20:24:06.986097050 +0100 -@@ -808,9 +808,9 @@ - <copy file="${src}/batik-xml.pom.template" tofile="${maven}/batik-xml/${completeVersion}/batik-xml-${completeVersion}.pom" filtering="true"/> - <copy file="${build}/lib/batik-xml.jar" tofile="${maven}/batik-xml/${completeVersion}/batik-xml-${completeVersion}.jar"/> - -- <mkdir dir="${maven}/batik-js/${completeVersion}"/> -- <copy file="${src}/batik-js.pom.template" tofile="${maven}/batik-js/${completeVersion}/batik-js-${completeVersion}.pom" filtering="true"/> -- <copy file="${build}/lib/js.jar" tofile="${maven}/batik-js/${completeVersion}/batik-js-${completeVersion}.jar"/> -+ <!-- <mkdir dir="${maven}/batik-js/${completeVersion}"/> --> -+ <!-- <copy file="${src}/batik-js.pom.template" tofile="${maven}/batik-js/${completeVersion}/batik-js-${completeVersion}.pom" filtering="true"/> --> -+ <!-- <copy file="${build}/lib/js.jar" tofile="${maven}/batik-js/${completeVersion}/batik-js-${completeVersion}.jar"/> --> - - <!-- Generate checksums of all artifacts and POMs --> - <checksum algorithm="MD5" fileext=".md5">
  6. Download patch debian/watch

    --- 1.7+dfsg-1/debian/watch 2012-03-12 18:58:02.000000000 +0000 +++ 1.7.ubuntu-8ubuntu1/debian/watch 2008-03-31 21:07:30.000000000 +0000 @@ -1,3 +1,2 @@ version=3 -opts=dversionmangle=s/\+dfsg// \ http://archive.apache.org/dist/xmlgraphics/batik/ batik-src-([0123456789.]*).zip debian debian/new-upstream Binary files 1.7+dfsg-1/documentation-sources/content/demo/batik-awt-util.jar and 1.7.ubuntu-8ubuntu1/documentation-sources/content/demo/batik-awt-util.jar differ Binary files 1.7+dfsg-1/documentation-sources/content/demo/batik-bridge.jar and 1.7.ubuntu-8ubuntu1/documentation-sources/content/demo/batik-bridge.jar differ Binary files 1.7+dfsg-1/documentation-sources/content/demo/batik-css.jar and 1.7.ubuntu-8ubuntu1/documentation-sources/content/demo/batik-css.jar differ Binary files 1.7+dfsg-1/documentation-sources/content/demo/batik-dom.jar and 1.7.ubuntu-8ubuntu1/documentation-sources/content/demo/batik-dom.jar differ Binary files 1.7+dfsg-1/documentation-sources/content/demo/batik-ext.jar and 1.7.ubuntu-8ubuntu1/documentation-sources/content/demo/batik-ext.jar differ Binary files 1.7+dfsg-1/documentation-sources/content/demo/batik-gvt.jar and 1.7.ubuntu-8ubuntu1/documentation-sources/content/demo/batik-gvt.jar differ Binary files 1.7+dfsg-1/documentation-sources/content/demo/batik-parser.jar and 1.7.ubuntu-8ubuntu1/documentation-sources/content/demo/batik-parser.jar differ Binary files 1.7+dfsg-1/documentation-sources/content/demo/batik-script.jar and 1.7.ubuntu-8ubuntu1/documentation-sources/content/demo/batik-script.jar differ Binary files 1.7+dfsg-1/documentation-sources/content/demo/batik-svg-dom.jar and 1.7.ubuntu-8ubuntu1/documentation-sources/content/demo/batik-svg-dom.jar differ Binary files 1.7+dfsg-1/documentation-sources/content/demo/batik-swing.jar and 1.7.ubuntu-8ubuntu1/documentation-sources/content/demo/batik-swing.jar differ Binary files 1.7+dfsg-1/documentation-sources/content/demo/batik-util.jar and 1.7.ubuntu-8ubuntu1/documentation-sources/content/demo/batik-util.jar differ Binary files 1.7+dfsg-1/documentation-sources/content/demo/batik-xml.jar and 1.7.ubuntu-8ubuntu1/documentation-sources/content/demo/batik-xml.jar differ Binary files 1.7+dfsg-1/documentation-sources/content/demo/xml-apis-dom3.jar and 1.7.ubuntu-8ubuntu1/documentation-sources/content/demo/xml-apis-dom3.jar differ Binary files 1.7+dfsg-1/lib/build/ant-1.6.5.jar and 1.7.ubuntu-8ubuntu1/lib/build/ant-1.6.5.jar differ Binary files 1.7+dfsg-1/lib/build/ant-launcher-1.6.5.jar and 1.7.ubuntu-8ubuntu1/lib/build/ant-launcher-1.6.5.jar differ Binary files 1.7+dfsg-1/lib/build/crimson-1.1.3.jar and 1.7.ubuntu-8ubuntu1/lib/build/crimson-1.1.3.jar differ Binary files 1.7+dfsg-1/lib/js.jar and 1.7.ubuntu-8ubuntu1/lib/js.jar differ Binary files 1.7+dfsg-1/lib/pdf-transcoder.jar and 1.7.ubuntu-8ubuntu1/lib/pdf-transcoder.jar differ Binary files 1.7+dfsg-1/lib/xalan-2.6.0.jar and 1.7.ubuntu-8ubuntu1/lib/xalan-2.6.0.jar differ Binary files 1.7+dfsg-1/lib/xerces_2_5_0.jar and 1.7.ubuntu-8ubuntu1/lib/xerces_2_5_0.jar differ Binary files 1.7+dfsg-1/lib/xml-apis-ext.jar and 1.7.ubuntu-8ubuntu1/lib/xml-apis-ext.jar differ Binary files 1.7+dfsg-1/lib/xml-apis.jar and 1.7.ubuntu-8ubuntu1/lib/xml-apis.jar differ
  7. Download patch debian/patches/series

    --- 1.7+dfsg-1/debian/patches/series 2012-03-12 19:23:52.000000000 +0000 +++ 1.7.ubuntu-8ubuntu1/debian/patches/series 2010-11-25 16:04:45.000000000 +0000 @@ -1,3 +1,2 @@ 06_fix_paths_in_policy_files.patch source-1.5.patch -remove-js.patch
  8. Download patch .pc/remove-js.patch/build.xml
  9. Download patch build.xml

    --- 1.7+dfsg-1/build.xml 2012-03-16 07:43:39.000000000 +0000 +++ 1.7.ubuntu-8ubuntu1/build.xml 2012-03-16 07:43:44.000000000 +0000 @@ -808,9 +808,9 @@ JAVA=/usr/bin/java <copy file="${src}/batik-xml.pom.template" tofile="${maven}/batik-xml/${completeVersion}/batik-xml-${completeVersion}.pom" filtering="true"/> <copy file="${build}/lib/batik-xml.jar" tofile="${maven}/batik-xml/${completeVersion}/batik-xml-${completeVersion}.jar"/> - <!-- <mkdir dir="${maven}/batik-js/${completeVersion}"/> --> - <!-- <copy file="${src}/batik-js.pom.template" tofile="${maven}/batik-js/${completeVersion}/batik-js-${completeVersion}.pom" filtering="true"/> --> - <!-- <copy file="${build}/lib/js.jar" tofile="${maven}/batik-js/${completeVersion}/batik-js-${completeVersion}.jar"/> --> + <mkdir dir="${maven}/batik-js/${completeVersion}"/> + <copy file="${src}/batik-js.pom.template" tofile="${maven}/batik-js/${completeVersion}/batik-js-${completeVersion}.pom" filtering="true"/> + <copy file="${build}/lib/js.jar" tofile="${maven}/batik-js/${completeVersion}/batik-js-${completeVersion}.jar"/> <!-- Generate checksums of all artifacts and POMs --> <checksum algorithm="MD5" fileext=".md5">
  10. Download patch debian/copyright

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: c3p0


Modifications :
  1. Download patch src/classes/com/mchange/v2/c3p0/test/junit/ConnectionPropertiesResetJUnitTestCase.java

    --- 0.9.1.2-5/src/classes/com/mchange/v2/c3p0/test/junit/ConnectionPropertiesResetJUnitTestCase.java 2007-05-21 20:04:55.000000000 +0100 +++ 0.9.1.2-5ubuntu1/src/classes/com/mchange/v2/c3p0/test/junit/ConnectionPropertiesResetJUnitTestCase.java 2011-03-08 20:13:58.000000000 +0000 @@ -88,10 +88,6 @@ public final class ConnectionPropertiesR cons[i] = cpds.getConnection(); assertFalse( "Connection from pool should not be readOnly!", cons[i].isReadOnly() ); - // some drivers return null rather than an empty type map - Map typeMap = cons[i].getTypeMap(); - assertTrue( "Connection from pool should have an empty type map!", (typeMap == null ? true : typeMap.isEmpty() ) ); - assertEquals( "Connection from pool should have default catalog set!", dfltCat, cons[i].getCatalog() ); assertEquals( "Connection from pool should have default txn isolation set!", dflt_txn_isolation, cons[i].getTransactionIsolation() ); cons[i].close(); @@ -103,4 +99,4 @@ public final class ConnectionPropertiesR fail( e.getMessage() ); } } -} \ No newline at end of file +}
  2. Download patch .pc/testing.patch/src/classes/com/mchange/v2/util/junit/DoubleWeakHashMapJUnitTestCase.java

    --- 0.9.1.2-5/.pc/testing.patch/src/classes/com/mchange/v2/util/junit/DoubleWeakHashMapJUnitTestCase.java 1970-01-01 01:00:00.000000000 +0100 +++ 0.9.1.2-5ubuntu1/.pc/testing.patch/src/classes/com/mchange/v2/util/junit/DoubleWeakHashMapJUnitTestCase.java 2007-05-21 20:04:56.000000000 +0100 @@ -0,0 +1,108 @@ +/* + * Distributed as part of c3p0 v.0.9.1.2 + * + * Copyright (C) 2005 Machinery For Change, Inc. + * + * Author: Steve Waldman <swaldman@mchange.com> + * + * This library is free software; you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 2.1, as + * published by the Free Software Foundation. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this software; see the file LICENSE. If not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + */ + + +package com.mchange.v2.util.junit; + +import java.util.Iterator; +import java.util.Map; + +import com.mchange.v2.util.DoubleWeakHashMap; + +import junit.framework.TestCase; + +public class DoubleWeakHashMapJUnitTestCase extends TestCase +{ + public void testGetNeverAdded() + { + Map m = new DoubleWeakHashMap(); + assertNull( m.get("foo") ); + } + + public void testHardAdds() + { + Integer a = new Integer(1); + Integer b = new Integer(2); + Integer c = new Integer(3); + + String poop = new String("poop"); + String scoop = new String("scoop"); + String doop = new String("dcoop"); + + Map m = new DoubleWeakHashMap(); + m.put(a, poop); + m.put(b, scoop); + m.put(c, doop); + assertEquals("Size should be three, viewed via Map directly.", m.size(), 3); + assertEquals("Size should be three, viewed via keySet .", m.keySet().size(), 3); + assertEquals("Size should be three, viewed via values Collection.", m.values().size(), 3); + + int count = 0; + for (Iterator ii = m.keySet().iterator(); ii.hasNext();) + { + count += ((Integer) ii.next()).intValue(); + } + assertEquals("Count should be six, viewed via values Collection.", count, 6); + + Integer d = new Integer(4); + m.put(d, poop); + m.values().remove(poop); + assertEquals("After removing a doubled value, size should be 2", m.size(), 2); + } + + public void testWeakness() + { + Integer a = new Integer(1); + Integer b = new Integer(2); + Integer c = new Integer(3); + + String poop = new String("poop"); + + Map m = new DoubleWeakHashMap(); + m.put(a, poop); + m.put(b, new Object()); + m.put(c, new Object()); + + //race condition... b & c might already have been removed... but i doubt it + assertEquals("1) Weak values should not yet have been removed (but not guaranteed! sometimes fails without a defect!)", m.size(), 3); + + // we are relying that a full, synchronous GC occurs, + // which is not guaranteed in all VMs + System.gc(); + + // let's see if we can force a deeper gc via a big array creation + byte[] bArray = new byte[1024 * 1024]; + + assertEquals("2) Weak values should have been automatically removed (but not guaranteed! sometimes fails without a defect!)", m.size(), 1); + + m.put( new Object(), b); + + //race condition... b & c might already have been removed... but i doubt it + assertEquals("3) Weak key should not yet have been removed (but not guaranteed! sometimes fails without a defect!)", m.size(), 2); + + System.gc(); + // let's see if we can force a deeper gc via a big array creation + bArray = new byte[1024 * 1024]; + + assertEquals("4) Weak key should have been automatically removed (but not guaranteed! sometimes fails without a defect!)", m.size(), 1); + } +}
  3. Download patch debian/patches/build.patch

    --- 0.9.1.2-5/debian/patches/build.patch 1970-01-01 01:00:00.000000000 +0100 +++ 0.9.1.2-5ubuntu1/debian/patches/build.patch 2011-02-28 13:40:21.000000000 +0000 @@ -0,0 +1,66 @@ +Description: Configures build (using gcj) to behave more like sun-jdk-5 + in terms of error messages. +Author: james.page@canonical.com +Forwarded: not-required +Index: c3p0/build.xml +=================================================================== +--- c3p0.orig/build.xml 2011-02-25 11:52:44.775376257 +0000 ++++ c3p0/build.xml 2011-02-25 12:02:54.804996643 +0000 +@@ -208,7 +208,7 @@ + source="${c3p0.target.version}" + target="${c3p0.target.version}" + classpathref="codegen-classpath" +- debug="true"> ++ debug="true" nowarn="on" deprecation="off"> + <src> + <pathelement location="${build.codegen.dir}" /> + <pathelement location="${java.src.dir}" /> +@@ -253,7 +253,7 @@ + source="${c3p0.target.version}" + target="${c3p0.target.version}" + classpathref="build-classpath" +- debug="on"> ++ debug="on" nowarn="on" deprecation="off"> + <sourcepath> + <pathelement location="${build.codegen.dir}" /> + <pathelement location="${java.src.dir}" /> +@@ -275,7 +275,7 @@ + source="${c3p0.target.version}" + target="${c3p0.target.version}" + classpathref="build-classpath" +- debug="on"> ++ debug="on" nowarn="on" deprecation="off"> + <sourcepath> + <pathelement location="${build.codegen.dir}" /> + </sourcepath> +@@ -290,7 +290,7 @@ + <javac destdir="${build.classes.dir}" + source="${c3p0.target.version}" + target="${c3p0.target.version}" +- debug="on"> ++ debug="on" nowarn="on" deprecation="off"> + <classpath> + <path refid="build-classpath" /> + <pathelement location="${log4j.jar.file}" /> +@@ -311,7 +311,7 @@ + <javac destdir="${build.classes.dir}" + source="${c3p0.target.version}" + target="${c3p0.target.version}" +- debug="on"> ++ debug="on" nowarn="on" deprecation="off"> + <classpath> + <path refid="build-classpath" /> + <pathelement path="${junit.jar.file}" /> +Index: c3p0/relproj/debuggen/build.xml +=================================================================== +--- c3p0.orig/relproj/debuggen/build.xml 2011-02-25 12:04:02.992661915 +0000 ++++ c3p0/relproj/debuggen/build.xml 2011-02-25 12:04:30.047767796 +0000 +@@ -32,7 +32,7 @@ + <mkdir dir="${build.classes.dir}" /> + <javac srcdir="${java.src.dir}" + destdir="${build.classes.dir}" +- debug="on" /> ++ debug="on" nowarn="on" deprecation="off"/> + </target> + + <target name="jar" depends="compile">
  4. Download patch .pc/testing.patch/src/classes/com/mchange/v2/c3p0/test/junit/ConnectionPropertiesResetJUnitTestCase.java

    --- 0.9.1.2-5/.pc/testing.patch/src/classes/com/mchange/v2/c3p0/test/junit/ConnectionPropertiesResetJUnitTestCase.java 1970-01-01 01:00:00.000000000 +0100 +++ 0.9.1.2-5ubuntu1/.pc/testing.patch/src/classes/com/mchange/v2/c3p0/test/junit/ConnectionPropertiesResetJUnitTestCase.java 2007-05-21 20:04:55.000000000 +0100 @@ -0,0 +1,106 @@ +/* + * Distributed as part of c3p0 v.0.9.1.2 + * + * Copyright (C) 2005 Machinery For Change, Inc. + * + * Author: Steve Waldman <swaldman@mchange.com> + * + * This library is free software; you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 2.1, as + * published by the Free Software Foundation. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this software; see the file LICENSE. If not, write to the + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307, USA. + */ + + +package com.mchange.v2.c3p0.test.junit; + +import java.sql.*; +import java.util.*; +import junit.framework.*; + +public final class ConnectionPropertiesResetJUnitTestCase extends C3P0JUnitTestCaseBase +{ + final static Map TM; + + static + { + Map tmp = new HashMap(); + tmp.put("FAKE", SQLData.class); + TM = Collections.unmodifiableMap( tmp ); + } + + public void testAllConnectionDefaultsReset() + { +// System.err.println("XOXO err"); +// System.out.println("XOXO out"); + + cpds.setInitialPoolSize(5); + cpds.setMinPoolSize(5); + cpds.setMaxPoolSize(5); + cpds.setMaxIdleTime(0); + cpds.setTestConnectionOnCheckout(false); + cpds.setTestConnectionOnCheckin(false); + cpds.setIdleConnectionTestPeriod(0); + + String dfltCat; + int dflt_txn_isolation; + + try + { + Connection con = null; + try + { + con = cpds.getConnection(); + + + dfltCat = con.getCatalog(); + dflt_txn_isolation = con.getTransactionIsolation(); + + try { con.setReadOnly(true); } catch (Exception e) { /* setReadOnly() not supported */ } + try { con.setTypeMap(TM); } catch (Exception e) { /* setTypeMap() not supported */ } + try { con.setCatalog("C3P0TestCatalogXXX"); } catch (Exception e) { /* setCatalog() not supported */ } + try + { + con.setTransactionIsolation( dflt_txn_isolation == Connection.TRANSACTION_SERIALIZABLE ? + Connection.TRANSACTION_READ_COMMITTED : + Connection.TRANSACTION_SERIALIZABLE ); + } + catch (Exception e) { /* setTransactionIsolation() not fully supported */ } + } + finally + { + try { if (con != null) con.close(); } + catch (Exception e) {} + } + + Connection[] cons = new Connection[5]; + for (int i = 0; i < 5; ++i) + { + cons[i] = cpds.getConnection(); + assertFalse( "Connection from pool should not be readOnly!", cons[i].isReadOnly() ); + + // some drivers return null rather than an empty type map + Map typeMap = cons[i].getTypeMap(); + assertTrue( "Connection from pool should have an empty type map!", (typeMap == null ? true : typeMap.isEmpty() ) ); + + assertEquals( "Connection from pool should have default catalog set!", dfltCat, cons[i].getCatalog() ); + assertEquals( "Connection from pool should have default txn isolation set!", dflt_txn_isolation, cons[i].getTransactionIsolation() ); + cons[i].close(); + } + } + catch (Exception e) + { + e.printStackTrace(); + fail( e.getMessage() ); + } + } +} \ No newline at end of file
  5. Download patch debian/rules

    --- 0.9.1.2-5/debian/rules 2010-05-21 21:55:27.000000000 +0100 +++ 0.9.1.2-5ubuntu1/debian/rules 2011-02-28 13:40:21.000000000 +0000 @@ -6,8 +6,8 @@ include /usr/share/cdbs/1/class/ant.mk JAVA_HOME := /usr/lib/jvm/java-gcj ANT_HOME := /usr/share/ant -DEB_JARS := log4j1.2 mx4j -DEB_ANT_BUILD_TARGET := jar javadocs +DEB_JARS := log4j1.2 mx4j junit ant-junit hsql +DEB_ANT_BUILD_TARGET := jar javadocs junit-tests clean:: ( cd relproj ; ant clean )
  6. Download patch .pc/.version

    --- 0.9.1.2-5/.pc/.version 1970-01-01 01:00:00.000000000 +0100 +++ 0.9.1.2-5ubuntu1/.pc/.version 2011-03-08 20:13:58.000000000 +0000 @@ -0,0 +1 @@ +2
  7. Download patch debian/patches/testing.patch

    --- 0.9.1.2-5/debian/patches/testing.patch 1970-01-01 01:00:00.000000000 +0100 +++ 0.9.1.2-5ubuntu1/debian/patches/testing.patch 2011-02-28 13:40:21.000000000 +0000 @@ -0,0 +1,73 @@ +Description: Patch to enable testing in build process using hsqldb & gcj + Functions that are either not supported by hsqldb and tests that behave + differently under gcj are disabled. +Author: james.page@canonical.com +Forwarded: not-required +Index: c3p0/src/classes/com/mchange/v2/c3p0/test/junit/ConnectionPropertiesResetJUnitTestCase.java +=================================================================== +--- c3p0.orig/src/classes/com/mchange/v2/c3p0/test/junit/ConnectionPropertiesResetJUnitTestCase.java 2011-02-28 11:20:48.137932772 +0000 ++++ c3p0/src/classes/com/mchange/v2/c3p0/test/junit/ConnectionPropertiesResetJUnitTestCase.java 2011-02-28 11:23:12.471753607 +0000 +@@ -88,10 +88,6 @@ + cons[i] = cpds.getConnection(); + assertFalse( "Connection from pool should not be readOnly!", cons[i].isReadOnly() ); + +- // some drivers return null rather than an empty type map +- Map typeMap = cons[i].getTypeMap(); +- assertTrue( "Connection from pool should have an empty type map!", (typeMap == null ? true : typeMap.isEmpty() ) ); +- + assertEquals( "Connection from pool should have default catalog set!", dfltCat, cons[i].getCatalog() ); + assertEquals( "Connection from pool should have default txn isolation set!", dflt_txn_isolation, cons[i].getTransactionIsolation() ); + cons[i].close(); +@@ -103,4 +99,4 @@ + fail( e.getMessage() ); + } + } +-} +\ No newline at end of file ++} +Index: c3p0/src/classes/com/mchange/v2/util/junit/DoubleWeakHashMapJUnitTestCase.java +=================================================================== +--- c3p0.orig/src/classes/com/mchange/v2/util/junit/DoubleWeakHashMapJUnitTestCase.java 2011-02-28 11:20:48.167927333 +0000 ++++ c3p0/src/classes/com/mchange/v2/util/junit/DoubleWeakHashMapJUnitTestCase.java 2011-02-28 11:22:55.204885364 +0000 +@@ -68,41 +68,4 @@ + m.values().remove(poop); + assertEquals("After removing a doubled value, size should be 2", m.size(), 2); + } +- +- public void testWeakness() +- { +- Integer a = new Integer(1); +- Integer b = new Integer(2); +- Integer c = new Integer(3); +- +- String poop = new String("poop"); +- +- Map m = new DoubleWeakHashMap(); +- m.put(a, poop); +- m.put(b, new Object()); +- m.put(c, new Object()); +- +- //race condition... b & c might already have been removed... but i doubt it +- assertEquals("1) Weak values should not yet have been removed (but not guaranteed! sometimes fails without a defect!)", m.size(), 3); +- +- // we are relying that a full, synchronous GC occurs, +- // which is not guaranteed in all VMs +- System.gc(); +- +- // let's see if we can force a deeper gc via a big array creation +- byte[] bArray = new byte[1024 * 1024]; +- +- assertEquals("2) Weak values should have been automatically removed (but not guaranteed! sometimes fails without a defect!)", m.size(), 1); +- +- m.put( new Object(), b); +- +- //race condition... b & c might already have been removed... but i doubt it +- assertEquals("3) Weak key should not yet have been removed (but not guaranteed! sometimes fails without a defect!)", m.size(), 2); +- +- System.gc(); +- // let's see if we can force a deeper gc via a big array creation +- bArray = new byte[1024 * 1024]; +- +- assertEquals("4) Weak key should have been automatically removed (but not guaranteed! sometimes fails without a defect!)", m.size(), 1); +- } + }
  8. Download patch debian/control

    --- 0.9.1.2-5/debian/control 2010-05-21 21:56:00.000000000 +0100 +++ 0.9.1.2-5ubuntu1/debian/control 2011-02-28 13:40:21.000000000 +0000 @@ -1,11 +1,13 @@ Source: c3p0 Section: java Priority: optional -Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> Uploaders: Michael Koch <konqueror@gmx.de>, Varun Hiremath <varun@debian.org> Build-Depends: debhelper (>= 7), cdbs, maven-repo-helper -Build-Depends-Indep: ant, gcj-jdk, liblog4j1.2-java, libmx4j-java -Standards-Version: 3.8.4 +Build-Depends-Indep: ant, gcj-jdk, liblog4j1.2-java, libmx4j-java, ant-optional, + junit, libhsqldb-java +Standards-Version: 3.9.1 Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/c3p0 Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/trunk/c3p0 Homepage: http://sourceforge.net/projects/c3p0
  9. Download patch .pc/applied-patches

    --- 0.9.1.2-5/.pc/applied-patches 1970-01-01 01:00:00.000000000 +0100 +++ 0.9.1.2-5ubuntu1/.pc/applied-patches 2011-03-08 20:13:58.000000000 +0000 @@ -0,0 +1,2 @@ +build.patch +testing.patch
  10. Download patch .pc/build.patch/relproj/debuggen/build.xml

    --- 0.9.1.2-5/.pc/build.patch/relproj/debuggen/build.xml 1970-01-01 01:00:00.000000000 +0100 +++ 0.9.1.2-5ubuntu1/.pc/build.patch/relproj/debuggen/build.xml 2007-05-21 20:04:55.000000000 +0100 @@ -0,0 +1,71 @@ +<project name="debuggen" default="dist"> + + <!-- ignore the CLASSPATH environment variable. force builds to specify classpaths --> + <property name="build.sysclasspath" value="ignore" /> + + <property file="build.properties" /> + <property file="version.properties" /> + + <property name="debuggen.name" value="debuggen-${debuggen.version}" /> + <property name="src.dir" value="src" /> + <property name="java.src.dir" value="${src.dir}/classes" /> + <property name="app-rsrc.src.dir" value="${src.dir}/app-rsrc" /> + <property name="build.dir" value="build" /> + <property name="build.classes.dir" value="${build.dir}/classes" /> + <property name="build.apidocs.dir" value="${build.dir}/apidocs" /> + <property name="dist.dir" value="dist" /> + <property name="app.jar.manifest" value="${app-rsrc.src.dir}/META-INF/manifest.src" /> + <property name="jar.file" value="${dist.dir}/${debuggen.name}.jar" /> + <property name="srcdist.name" value="${debuggen.name}-src" /> + + <target name="init"> + <mkdir dir="${build.dir}" /> + <mkdir dir="${dist.dir}" /> + </target> + + <target name="clean"> + <delete dir="${build.dir}" /> + <delete dir="${dist.dir}" /> + </target> + + <target name="compile" depends="init"> + <mkdir dir="${build.classes.dir}" /> + <javac srcdir="${java.src.dir}" + destdir="${build.classes.dir}" + debug="on" /> + </target> + + <target name="jar" depends="compile"> + <jar destfile="${jar.file}" manifest="${app.jar.manifest}"> + <fileset dir="${build.classes.dir}" /> + </jar> + </target> + + <target name="dist" depends="jar" /> + + <target name="srcdist"> + <zip destfile="${dist.dir}/${srcdist.name}.zip"> + <zipfileset dir="." prefix="${srcdist.name}"> + <exclude name="${build.dir}/**"/> + <exclude name="${dist.dir}/**"/> + <exclude name="**/*.class"/> + <exclude name="**/old/**"/> + <exclude name="**/bad/**"/> + </zipfileset> + </zip> + <tar destfile="${dist.dir}/${srcdist.name}.tar"> + <tarfileset dir="." prefix="${srcdist.name}"> + <exclude name="${build.dir}/**"/> + <exclude name="${dist.dir}/**"/> + <exclude name="**/*.class"/> + <exclude name="**/old/**"/> + <exclude name="**/bad/**"/> + </tarfileset> + </tar> + <gzip zipfile="${dist.dir}/${srcdist.name}.tgz" src="${dist.dir}/${srcdist.name}.tar" /> + </target> + + <target name="all" depends="dist,srcdist" /> + +</project> +
  11. Download patch debian/patches/series

    --- 0.9.1.2-5/debian/patches/series 1970-01-01 01:00:00.000000000 +0100 +++ 0.9.1.2-5ubuntu1/debian/patches/series 2011-02-28 13:40:21.000000000 +0000 @@ -0,0 +1,2 @@ +build.patch +testing.patch
  12. Download patch build.xml

    --- 0.9.1.2-5/build.xml 2006-11-10 19:32:28.000000000 +0000 +++ 0.9.1.2-5ubuntu1/build.xml 2011-03-08 20:13:58.000000000 +0000 @@ -208,7 +208,7 @@ source="${c3p0.target.version}" target="${c3p0.target.version}" classpathref="codegen-classpath" - debug="true"> + debug="true" nowarn="on" deprecation="off"> <src> <pathelement location="${build.codegen.dir}" /> <pathelement location="${java.src.dir}" /> @@ -253,7 +253,7 @@ source="${c3p0.target.version}" target="${c3p0.target.version}" classpathref="build-classpath" - debug="on"> + debug="on" nowarn="on" deprecation="off"> <sourcepath> <pathelement location="${build.codegen.dir}" /> <pathelement location="${java.src.dir}" /> @@ -275,7 +275,7 @@ source="${c3p0.target.version}" target="${c3p0.target.version}" classpathref="build-classpath" - debug="on"> + debug="on" nowarn="on" deprecation="off"> <sourcepath> <pathelement location="${build.codegen.dir}" /> </sourcepath> @@ -290,7 +290,7 @@ <javac destdir="${build.classes.dir}" source="${c3p0.target.version}" target="${c3p0.target.version}" - debug="on"> + debug="on" nowarn="on" deprecation="off"> <classpath> <path refid="build-classpath" /> <pathelement location="${log4j.jar.file}" /> @@ -311,7 +311,7 @@ <javac destdir="${build.classes.dir}" source="${c3p0.target.version}" target="${c3p0.target.version}" - debug="on"> + debug="on" nowarn="on" deprecation="off"> <classpath> <path refid="build-classpath" /> <pathelement path="${junit.jar.file}" />
  13. Download patch src/classes/com/mchange/v2/util/junit/DoubleWeakHashMapJUnitTestCase.java

    --- 0.9.1.2-5/src/classes/com/mchange/v2/util/junit/DoubleWeakHashMapJUnitTestCase.java 2007-05-21 20:04:56.000000000 +0100 +++ 0.9.1.2-5ubuntu1/src/classes/com/mchange/v2/util/junit/DoubleWeakHashMapJUnitTestCase.java 2011-03-08 20:13:58.000000000 +0000 @@ -68,41 +68,4 @@ public class DoubleWeakHashMapJUnitTestC m.values().remove(poop); assertEquals("After removing a doubled value, size should be 2", m.size(), 2); } - - public void testWeakness() - { - Integer a = new Integer(1); - Integer b = new Integer(2); - Integer c = new Integer(3); - - String poop = new String("poop"); - - Map m = new DoubleWeakHashMap(); - m.put(a, poop); - m.put(b, new Object()); - m.put(c, new Object()); - - //race condition... b & c might already have been removed... but i doubt it - assertEquals("1) Weak values should not yet have been removed (but not guaranteed! sometimes fails without a defect!)", m.size(), 3); - - // we are relying that a full, synchronous GC occurs, - // which is not guaranteed in all VMs - System.gc(); - - // let's see if we can force a deeper gc via a big array creation - byte[] bArray = new byte[1024 * 1024]; - - assertEquals("2) Weak values should have been automatically removed (but not guaranteed! sometimes fails without a defect!)", m.size(), 1); - - m.put( new Object(), b); - - //race condition... b & c might already have been removed... but i doubt it - assertEquals("3) Weak key should not yet have been removed (but not guaranteed! sometimes fails without a defect!)", m.size(), 2); - - System.gc(); - // let's see if we can force a deeper gc via a big array creation - bArray = new byte[1024 * 1024]; - - assertEquals("4) Weak key should have been automatically removed (but not guaranteed! sometimes fails without a defect!)", m.size(), 1); - } }
  14. Download patch relproj/debuggen/build.xml

    --- 0.9.1.2-5/relproj/debuggen/build.xml 2007-05-21 20:04:55.000000000 +0100 +++ 0.9.1.2-5ubuntu1/relproj/debuggen/build.xml 2011-03-08 20:13:58.000000000 +0000 @@ -32,7 +32,7 @@ <mkdir dir="${build.classes.dir}" /> <javac srcdir="${java.src.dir}" destdir="${build.classes.dir}" - debug="on" /> + debug="on" nowarn="on" deprecation="off"/> </target> <target name="jar" depends="compile">
  15. Download patch debian/ant.properties

    --- 0.9.1.2-5/debian/ant.properties 2010-05-20 13:28:31.000000000 +0100 +++ 0.9.1.2-5ubuntu1/debian/ant.properties 2011-02-28 13:40:21.000000000 +0000 @@ -1,4 +1,4 @@ -# >> BASICS << + # # You'll need to supply at least one of j2ee.classpath @@ -55,17 +55,22 @@ log4j.jar.file=/usr/share/java/log4j-1.2 # the various tests. very optional # -#test.jdbc.driver.jar.file= -#test.jdbc.drivers= -#test.jdbc.url= -#test.jdbc.user= -#test.jdbc.password= +test.jdbc.driver.jar.file=/usr/share/java/hsqldb.jar +test.jdbc.drivers=org.hsqldb.jdbcDriver +test.jdbc.url=jdbc:hsqldb:file:/tmp/testdb +test.jdbc.user=SA +test.jdbc.password= + +c3p0.jdbcUrl=jdbc:hsqldb:file:/tmp/testdb +c3p0.driverClass=org.hsqldb.jdbcDriver +c3p0.user=SA +c3p0.password= # # required if you want to run junit tests # -#junit.jar.file +junit.jar.file=/usr/share/java/junit.jar # >> VERY VERY OPTIONAL DOCS-TO-WEB SUPPORT
  16. Download patch .pc/build.patch/build.xml

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: cdk


Modifications :
  1. Download patch debian/control

    --- 1:1.2.10-2/debian/control 2011-06-01 06:23:46.000000000 +0000 +++ 1:1.2.10-2ubuntu1/debian/control 2011-11-29 18:24:16.000000000 +0000 @@ -1,10 +1,11 @@ Source: cdk Section: java Priority: optional -Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> Uploaders: Daniel Leidert (dale) <daniel.leidert@wgdd.de>, Michael Koch <konqueror@gmx.de>, Onkar Shinde <onkarshinde@ubuntu.com> Build-Depends: cdbs, debhelper (>= 7), javahelper, default-jdk, ant-optional -Build-Depends-Indep: ant-contrib, antlr, docbook-xsl (>= 1.66.1), javacc, liblog4j1.2-java, libxerces2-java, libjgrapht0.6-java-link, libvecmath-java, libxom-java, libjama-java, libxpp3-java, r-cran-rjava +Build-Depends-Indep: ant-contrib, antlr, docbook-xsl (>= 1.66.1), javacc, liblog4j1.2-java, libxerces2-java, libjgrapht0.6-java, libvecmath-java, libxom-java, libjama-java, libxpp3-java, r-cran-rjava Standards-Version: 3.9.2 Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/cdk Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/trunk/cdk/#_trunk_cdk_

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: commons-vfs

commons-vfs (2.0-1ubuntu1) precise; urgency=low * Use ant build system to support MIR (LP: #876413): - d/control: Drop B-D's on maven-debian-helper + cdbs and add B-D on maven-ant-helper. - d/rules, d/build-classpath, d/build.xml, d/build.properties: Configure build to use customized version of maven-ant-helper build.xml + debhelper. - d/libcommons-vfs-java.poms: Update to pickup build artifacts and remove surplus pom files. - d/libcommons-vfs-java-doc.install: Pickup documentation from core component instead of aggregated javadoc. - d/control: Manually set dependencies for binary packages. * Enabled test suite: - d/patches/disable_webdav_provider.diff: Update patch to fix test that checks for webdav support. - d/build.xml: Ignore webdav when running tests. -- James Page <james.page@ubuntu.com> Tue, 18 Oct 2011 13:53:54 +0100

Modifications :
  1. Download patch debian/libcommons-vfs-java.poms

    --- 2.0-1/debian/libcommons-vfs-java.poms 2011-09-10 15:52:09.000000000 +0000 +++ 2.0-1ubuntu1/debian/libcommons-vfs-java.poms 2011-10-18 15:38:08.000000000 +0000 @@ -1,4 +1,2 @@ -pom.xml --no-parent -examples/pom.xml -core/pom.xml -dist/pom.xml --ignore +pom.xml --no-parent +core/pom.xml --java-lib --artifact=core/target/commons-vfs2-*.jar
  2. Download patch debian/build.properties

    --- 2.0-1/debian/build.properties 1970-01-01 00:00:00.000000000 +0000 +++ 2.0-1ubuntu1/debian/build.properties 2011-10-18 12:43:04.000000000 +0000 @@ -0,0 +1,10 @@ +build.javaVersion=1.5 +# Generate javadoc and link to required API packages +javadoc.generate=true +dependency=libcommons-logging-java +dependency2=libcommons-net2-java +dependency3=libcommons-collections3-java +dependency4=libcommons-httpclient-java +maven.test.exclude=**/RunTest.java +# Line up with maven defaults +build.directory=target
  3. Download patch debian/patches/disable_webdav_provider.diff

    --- 2.0-1/debian/patches/disable_webdav_provider.diff 2011-09-10 22:52:14.000000000 +0000 +++ 2.0-1ubuntu1/debian/patches/disable_webdav_provider.diff 2011-10-18 12:06:25.000000000 +0000 @@ -3,10 +3,10 @@ Description: Disable webdav module (sour Author: Damien Raude-Morvan <drazzib@debian.org> Last-Update: 2011-09-11 Forwarded: not-needed -Index: b/core/pom.xml +Index: commons-vfs-2.0/core/pom.xml =================================================================== ---- a/core/pom.xml -+++ b/core/pom.xml +--- commons-vfs-2.0.orig/core/pom.xml 2011-10-18 13:06:05.271986706 +0100 ++++ commons-vfs-2.0/core/pom.xml 2011-10-18 13:06:08.216010643 +0100 @@ -167,6 +167,36 @@ </configuration> </plugin> @@ -44,10 +44,10 @@ Index: b/core/pom.xml </plugins> </build> <profiles> -Index: b/pom.xml +Index: commons-vfs-2.0/pom.xml =================================================================== ---- a/pom.xml -+++ b/pom.xml +--- commons-vfs-2.0.orig/pom.xml 2011-10-18 13:06:05.291986869 +0100 ++++ commons-vfs-2.0/pom.xml 2011-10-18 13:06:08.216010643 +0100 @@ -243,6 +243,7 @@ </tag> </tags> @@ -56,3 +56,16 @@ Index: b/pom.xml </configuration> </plugin> <plugin> +Index: commons-vfs-2.0/core/src/test/java/org/apache/commons/vfs2/util/DelegatingFileSystemOptionsBuilderTest.java +=================================================================== +--- commons-vfs-2.0.orig/core/src/test/java/org/apache/commons/vfs2/util/DelegatingFileSystemOptionsBuilderTest.java 2011-10-18 13:06:02.194238000 +0100 ++++ commons-vfs-2.0/core/src/test/java/org/apache/commons/vfs2/util/DelegatingFileSystemOptionsBuilderTest.java 2011-10-18 13:06:21.904121945 +0100 +@@ -119,7 +119,7 @@ + + private static String[] schemes = new String[] + { +- "webdav", "http", "ftp", "file", "zip", "tar", "tgz", "bz2", "gz", "jar", "tmp", "ram" ++ "http", "ftp", "file", "zip", "tar", "tgz", "bz2", "gz", "jar", "tmp", "ram" + }; + + public void testConfiguration() throws Exception
  4. Download patch debian/rules

    --- 2.0-1/debian/rules 2011-09-10 16:39:10.000000000 +0000 +++ 2.0-1ubuntu1/debian/rules 2011-10-18 16:00:25.000000000 +0000 @@ -1,14 +1,19 @@ #!/usr/bin/make -f # debian/rules for commons-vfs -include /usr/share/cdbs/1/rules/debhelper.mk -include /usr/share/cdbs/1/class/maven.mk +PACKAGE := $(shell dpkg-parsechangelog | grep '^Source:' | cut -f 2 -d ' ') +VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ' | cut -d: -f2- | sed 's/-[^-]*$$//') -JAVA_HOME := /usr/lib/jvm/default-java -PACKAGE := $(DEB_SOURCE_PACKAGE) -VERSION := $(DEB_UPSTREAM_VERSION) +export JAVA_HOME=/usr/lib/jvm/default-java +export CLASSPATH=$(shell for jar in `cat debian/build-classpath`; do if [ -f "$$jar" ]; then echo -n "$${jar}:"; fi; done) +export ANT_ARGS=-Dbasedir=$(realpath .)/core -Dpackage=$(PACKAGE) \ + -Dversion=$(VERSION) -Dbin.package=lib$(PACKAGE)-java \ + -Dpom.file=$(realpath .)/core/pom.xml -Ddebian.dir=$(realpath .)/debian \ + -propertyfile debian/build.properties \ + -f debian/build.xml -DEB_MAVEN_DOC_TARGET := javadoc:aggregate +%: + dh $@ --buildsystem=ant --with maven_repo_helper get-orig-source: uscan --force-download --rename
  5. Download patch debian/control

    --- 2.0-1/debian/control 2011-09-10 23:17:48.000000000 +0000 +++ 2.0-1ubuntu1/debian/control 2011-10-18 12:52:26.000000000 +0000 @@ -1,7 +1,8 @@ Source: commons-vfs Section: java Priority: optional -Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> Uploaders: Damien Raude-Morvan <drazzib@debian.org> Build-Depends-Indep: ant-doc, junit4, @@ -15,10 +16,8 @@ Build-Depends-Indep: ant-doc, libcommons-net2-java, libcommons-net2-java-doc, libjdom1-java-doc, - libjsch-java, - libmaven-antrun-plugin-java, - libmaven-javadoc-plugin-java -Build-Depends: cdbs, debhelper (>= 7), default-jdk, maven-debian-helper + libjsch-java +Build-Depends: debhelper (>= 7.0.50~), default-jdk, maven-ant-helper Standards-Version: 3.9.2 Homepage: http://commons.apache.org/vfs/ Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/commons-vfs @@ -26,8 +25,12 @@ Vcs-Browser: http://svn.debian.org/wsvn/ Package: libcommons-vfs-java Architecture: all -Depends: ${maven:Depends}, ${misc:Depends} -Recommends: ${maven:OptionalDepends} +Depends: libcommons-logging-java, ${misc:Depends} +Recommends: ant, + libcommons-collections3-java, + libcommons-httpclient-java, + libcommons-net2-java, + libjsch-java Suggests: libcommons-vfs-java-doc Description: Java API for accessing various filesystems Commons VFS provides a single API for accessing various different file @@ -40,7 +43,11 @@ Description: Java API for accessing vari Package: libcommons-vfs-java-doc Architecture: all Section: doc -Depends: ${misc:Depends} +Depends: libcommons-collections3-java-doc, + libcommons-httpclient-java-doc, + libcommons-logging-java-doc, + libcommons-net2-java-doc, + ${misc:Depends} Recommends: default-jdk-doc Suggests: libcommons-vfs-java Description: Java API for accessing various filesystems - documentation
  6. Download patch core/src/test/java/org/apache/commons/vfs2/util/DelegatingFileSystemOptionsBuilderTest.java

    --- 2.0-1/core/src/test/java/org/apache/commons/vfs2/util/DelegatingFileSystemOptionsBuilderTest.java 2011-08-18 13:57:07.000000000 +0000 +++ 2.0-1ubuntu1/core/src/test/java/org/apache/commons/vfs2/util/DelegatingFileSystemOptionsBuilderTest.java 2011-10-18 23:46:28.000000000 +0000 @@ -119,7 +119,7 @@ public class DelegatingFileSystemOptions private static String[] schemes = new String[] { - "webdav", "http", "ftp", "file", "zip", "tar", "tgz", "bz2", "gz", "jar", "tmp", "ram" + "http", "ftp", "file", "zip", "tar", "tgz", "bz2", "gz", "jar", "tmp", "ram" }; public void testConfiguration() throws Exception
  7. Download patch debian/build.xml
  8. Download patch debian/libcommons-vfs-java-doc.install

    --- 2.0-1/debian/libcommons-vfs-java-doc.install 2011-09-10 23:17:48.000000000 +0000 +++ 2.0-1ubuntu1/debian/libcommons-vfs-java-doc.install 2011-10-18 12:48:05.000000000 +0000 @@ -1 +1 @@ -target/site/apidocs/* /usr/share/doc/libcommons-vfs-java/api/ +core/target/docs/api/* /usr/share/doc/libcommons-vfs-java/api/
  9. Download patch debian/build-classpath

    --- 2.0-1/debian/build-classpath 1970-01-01 00:00:00.000000000 +0000 +++ 2.0-1ubuntu1/debian/build-classpath 2011-10-18 13:13:22.000000000 +0000 @@ -0,0 +1,10 @@ +/usr/share/java/ant.jar +/usr/share/java/ant-junit4.jar +/usr/share/java/junit4.jar +/usr/share/java/commons-logging.jar +/usr/share/java/commons-net2.jar +/usr/share/java/commons-httpclient.jar +/usr/share/java/commons-compress.jar +/usr/share/java/jsch.jar +/usr/share/java/commons-collections3.jar +/usr/share/java/jdom.jar
  10. Download patch .pc/disable_webdav_provider.diff/core/src/test/java/org/apache/commons/vfs2/util/DelegatingFileSystemOptionsBuilderTest.java

    --- 2.0-1/.pc/disable_webdav_provider.diff/core/src/test/java/org/apache/commons/vfs2/util/DelegatingFileSystemOptionsBuilderTest.java 1970-01-01 00:00:00.000000000 +0000 +++ 2.0-1ubuntu1/.pc/disable_webdav_provider.diff/core/src/test/java/org/apache/commons/vfs2/util/DelegatingFileSystemOptionsBuilderTest.java 2011-08-18 13:57:07.000000000 +0000 @@ -0,0 +1,132 @@ +/* + * 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.commons.vfs2.util; + +import java.io.File; +import java.lang.reflect.InvocationTargetException; + +import junit.framework.TestCase; + +import org.apache.commons.vfs2.FileSystemException; +import org.apache.commons.vfs2.FileSystemOptions; +import org.apache.commons.vfs2.impl.StandardFileSystemManager; +import org.apache.commons.vfs2.provider.http.HttpFileSystemConfigBuilder; +import org.apache.commons.vfs2.provider.sftp.SftpFileSystemConfigBuilder; +import org.apache.commons.vfs2.provider.sftp.TrustEveryoneUserInfo; + +/** + * Some tests for the DelegatingFileSystemOptionsBuilder + * + * @author <a href="mailto:imario@apache.org">Mario Ivankovits</a> + */ +public class DelegatingFileSystemOptionsBuilderTest extends TestCase +{ + private StandardFileSystemManager fsm = null; + + @Override + protected void setUp() throws Exception + { + super.setUp(); + + // get a full blown, fully functional manager + fsm = new StandardFileSystemManager(); + fsm.init(); + } + + + @Override + protected void tearDown() throws Exception + { + if (fsm != null) + { + fsm.close(); + } + + super.tearDown(); + } + + public void testDelegatingGood() throws Throwable + { + final String[] identityPaths = new String[] + { + "/file1", + "/file2", + }; + + FileSystemOptions opts = new FileSystemOptions(); + DelegatingFileSystemOptionsBuilder delgate = new DelegatingFileSystemOptionsBuilder(fsm); + + delgate.setConfigString(opts, "http", "proxyHost", "proxy"); + delgate.setConfigString(opts, "http", "proxyPort", "8080"); + delgate.setConfigClass(opts, "sftp", "userinfo", TrustEveryoneUserInfo.class); + delgate.setConfigStrings(opts, "sftp", "identities", identityPaths); + + assertEquals("http.proxyHost", HttpFileSystemConfigBuilder.getInstance().getProxyHost(opts), "proxy"); + assertEquals("http.proxyPort", HttpFileSystemConfigBuilder.getInstance().getProxyPort(opts), 8080); + assertEquals("sftp.userInfo", SftpFileSystemConfigBuilder.getInstance().getUserInfo(opts).getClass(), TrustEveryoneUserInfo.class); + + File identities[] = SftpFileSystemConfigBuilder.getInstance().getIdentities(opts); + assertNotNull("sftp.identities", identities); + assertEquals("sftp.identities size", identities.length, identityPaths.length); + for (int iterIdentities = 0; iterIdentities < identities.length; iterIdentities++) + { + assertEquals("sftp.identities #" + iterIdentities, + identities[iterIdentities].getAbsolutePath(), + new File(identityPaths[iterIdentities]).getAbsolutePath()); + } + } + + public void testDelegatingBad() throws Throwable + { + FileSystemOptions opts = new FileSystemOptions(); + DelegatingFileSystemOptionsBuilder delgate = new DelegatingFileSystemOptionsBuilder(fsm); + + try + { + delgate.setConfigString(opts, "http", "proxyPort", "wrong_port"); + fail(); + } + catch (FileSystemException e) + { + assertEquals(e.getCause().getClass(), InvocationTargetException.class); + assertEquals(((InvocationTargetException) e.getCause()).getTargetException().getClass(), NumberFormatException.class); + } + + try + { + delgate.setConfigClass(opts, "sftp", "userinfo", String.class); + fail(); + } + catch (FileSystemException e) + { + assertEquals(e.getCode(), "vfs.provider/config-value-invalid.error"); + } + } + + private static String[] schemes = new String[] + { + "webdav", "http", "ftp", "file", "zip", "tar", "tgz", "bz2", "gz", "jar", "tmp", "ram" + }; + + public void testConfiguration() throws Exception + { + for (int i=0; i < schemes.length; ++i) + { + assertTrue("Missing" + schemes[i] + " provider", fsm.hasProvider(schemes[i])); + } + } +}

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: doxia-sitetools

doxia-sitetools (1.1.4-1ubuntu1) precise; urgency=low * debian/control: - re-add fop to Build-Depends. - add libjaxen-java to Build-Depends. - add libmaven-install-plugin-java to Build-Depends. * debian/maven.properties: ensure maven runs offline. * debian/rules: install just-built jar files back into the local maven repo for the build (they are required for building the docs). -- Mathieu Trudel-Lapierre <mathieu-tl@ubuntu.com> Thu, 24 Nov 2011 10:52:45 -0500

Modifications :
  1. Download patch debian/rules

    --- 1.1.4-1/debian/rules 2011-09-11 15:44:46.000000000 +0000 +++ 1.1.4-1ubuntu1/debian/rules 2011-11-24 16:10:14.000000000 +0000 @@ -8,3 +8,27 @@ DEB_MAVEN_DOC_TARGET := javadoc:jar java get-orig-source: uscan --download-version $(DEB_UPSTREAM_VERSION) --force-download --rename + +IMPORT_BINARY_JARS = \ + for jar in `find $(CURDIR)/doxia-* -name "*.jar" -print`; \ + do \ + artifact=$$(basename $$(dirname $$(echo $$jar | sed "s/\/target//"))); \ + if ! test -d $(CURDIR)/debian/maven-repo/org/apache/maven/doxia/$$artifact/$(DEB_UPSTREAM_VERSION); \ + then \ + echo "Copying just-built binary jar for $$artifact into local maven repository."; \ + mvn install:install-file \ + -DgroupId=org.apache.maven.doxia \ + -DartifactId=$$artifact \ + -Dversion=$(DEB_UPSTREAM_VERSION) \ + -Dmaven.repo.local=$(CURDIR)/debian/maven-repo \ + -Dpackaging=jar -Dfile=$$jar; \ + else \ + echo "We already have the latest version JAR file for $$artifact in the local maven repo."; \ + fi; \ + done + +binary-jars: + $(call IMPORT_BINARY_JARS) + touch $@ + +after-mvn-build:: binary-jars
  2. Download patch debian/control

    --- 1.1.4-1/debian/control 2011-09-11 15:44:46.000000000 +0000 +++ 1.1.4-1ubuntu1/debian/control 2011-11-24 16:14:43.000000000 +0000 @@ -1,7 +1,8 @@ Source: doxia-sitetools Section: java Priority: optional -Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> Uploaders: Torsten Werner <twerner@debian.org>, Ludovic Claude <ludovic.claude@laposte.net>, Michael Koch <konqueror@gmx.de> Build-Depends: debhelper (>= 7), cdbs, default-jdk, maven-debian-helper (>= 1.4) @@ -9,7 +10,8 @@ Build-Depends-Indep: libclirr-maven-plug libcommons-collections3-java, libdoxia-java, libitext1-java, libjaxp1.3-java, libplexus-containers-java, libplexus-i18n-java, libplexus-utils-java, libxalan2-java, junit (>= 3.8.2), libdoxia-java, default-jdk-doc, libdoxia-java-doc, libplexus-containers-java-doc, - libplexus-utils-java-doc, libxalan2-java-doc, libmaven-javadoc-plugin-java + libplexus-utils-java-doc, libxalan2-java-doc, libmaven-javadoc-plugin-java, + fop, libjaxen-java, libmaven-install-plugin-java Standards-Version: 3.9.2 Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/doxia-sitetools Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/trunk/doxia-sitetools/
  3. Download patch debian/maven.properties

    --- 1.1.4-1/debian/maven.properties 2011-09-11 15:44:46.000000000 +0000 +++ 1.1.4-1ubuntu1/debian/maven.properties 2011-11-24 15:52:39.000000000 +0000 @@ -2,3 +2,4 @@ # For example: maven.test.skip=true +maven.settings.offline=true

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: doxia

doxia (1.1.4-1ubuntu3) precise; urgency=low * debian/patches/0008-doxia-logging-deps.patch: slightly adjust java package dependencies in doxia-modules and doxia-book pom files to include doxia-logging-api. * debian/rules: import the jar files we just build back into the temporary maven repository so they're accessible as we try to build docs. * debian/control: add a Build-Depends on libmaven-install-plugin-java. -- Mathieu Trudel-Lapierre <mathieu-tl@ubuntu.com> Wed, 23 Nov 2011 11:44:25 -0500 doxia (1.1.4-1ubuntu2) precise; urgency=low * debian/maven.properties: set maven to offline mode to avoid trying to download file from the web, which would fail the build. -- Mathieu Trudel-Lapierre <mathieu-tl@ubuntu.com> Tue, 22 Nov 2011 15:00:40 -0500 doxia (1.1.4-1ubuntu1) precise; urgency=low * debian/control: add Build-Depends for libjaxen-java. -- Mathieu Trudel-Lapierre <mathieu-tl@ubuntu.com> Mon, 21 Nov 2011 10:28:04 -0500

Modifications :
  1. Download patch doxia-modules/pom.xml

    --- 1.1.4-1/doxia-modules/pom.xml 2011-11-23 19:20:06.000000000 +0000 +++ 1.1.4-1ubuntu3/doxia-modules/pom.xml 2011-11-23 19:20:07.000000000 +0000 @@ -50,6 +50,10 @@ under the License. <dependencies> <dependency> <groupId>org.apache.maven.doxia</groupId> + <artifactId>doxia-logging-api</artifactId> + </dependency> + <dependency> + <groupId>org.apache.maven.doxia</groupId> <artifactId>doxia-core</artifactId> </dependency> <dependency>
  2. Download patch debian/rules

    --- 1.1.4-1/debian/rules 2011-09-09 22:28:03.000000000 +0000 +++ 1.1.4-1ubuntu3/debian/rules 2011-11-23 16:48:56.000000000 +0000 @@ -8,3 +8,22 @@ DEB_MAVEN_DOC_TARGET := javadoc:jar java get-orig-source: uscan --download-version $(DEB_UPSTREAM_VERSION) --force-download --rename + +IMPORT_BINARY_JARS = \ + for jar in `find $(CURDIR)/doxia-* -name "*.jar" -print`; \ + do \ + artifact=$$(basename $$(dirname $$(echo $$jar | sed "s/\/target//"))); \ + echo "--- $$artifact ---"; \ + mvn install:install-file \ + -DgroupId=org.apache.maven.doxia \ + -DartifactId=$$artifact \ + -Dversion=1.1.4 \ + -Dmaven.repo.local=$(CURDIR)/debian/maven-repo \ + -Dpackaging=jar -Dfile=$$jar; \ + done; + +binary-jars: + $(call IMPORT_BINARY_JARS) + touch $@ + +after-mvn-build:: binary-jars
  3. Download patch debian/control

    --- 1.1.4-1/debian/control 2011-09-09 22:28:03.000000000 +0000 +++ 1.1.4-1ubuntu3/debian/control 2011-11-23 16:56:29.000000000 +0000 @@ -1,7 +1,8 @@ Source: doxia Section: java Priority: optional -Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> Uploaders: Michael Koch <konqueror@gmx.de>, Torsten Werner <twerner@debian.org> Build-Depends: debhelper (>= 7), cdbs, default-jdk, maven-debian-helper (>= 1.4) Build-Depends-Indep: libclirr-maven-plugin-java, libmaven-plugin-tools-java, libmaven-shade-plugin-java, @@ -11,7 +12,7 @@ Build-Depends-Indep: libclirr-maven-plug libplexus-i18n-java, libplexus-utils-java, libxerces2-java, junit, libxerces2-java, default-jdk-doc, libcommons-configuration-java-doc, liblog4j1.2-java-doc, libmaven2-core-java-doc, libplexus-containers-java-doc, libplexus-utils-java-doc, - libmaven-javadoc-plugin-java + libmaven-javadoc-plugin-java, libjaxen-java, libmaven-install-plugin-java Standards-Version: 3.9.2 Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/doxia Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/trunk/doxia
  4. Download patch doxia-book/pom.xml

    --- 1.1.4-1/doxia-book/pom.xml 2011-11-23 19:20:06.000000000 +0000 +++ 1.1.4-1ubuntu3/doxia-book/pom.xml 2011-11-23 19:20:07.000000000 +0000 @@ -37,6 +37,10 @@ under the License. <!-- doxia core --> <dependency> <groupId>org.apache.maven.doxia</groupId> + <artifactId>doxia-logging-api</artifactId> + </dependency> + <dependency> + <groupId>org.apache.maven.doxia</groupId> <artifactId>doxia-core</artifactId> </dependency> <dependency>
  5. Download patch .pc/applied-patches

    --- 1.1.4-1/.pc/applied-patches 2011-11-23 19:20:06.000000000 +0000 +++ 1.1.4-1ubuntu3/.pc/applied-patches 2011-11-23 19:20:07.000000000 +0000 @@ -5,3 +5,4 @@ 0005-don-t-build-doxia-maven-plugin.patch 0006-specificy-source-and-target-version.patch 0007-disable-plexus-javadoc.patch +0008-doxia-logging-deps.patch
  6. Download patch .pc/0008-doxia-logging-deps.patch/doxia-book/pom.xml

    --- 1.1.4-1/.pc/0008-doxia-logging-deps.patch/doxia-book/pom.xml 1970-01-01 00:00:00.000000000 +0000 +++ 1.1.4-1ubuntu3/.pc/0008-doxia-logging-deps.patch/doxia-book/pom.xml 2011-11-23 19:20:07.000000000 +0000 @@ -0,0 +1,144 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- +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. +--> + +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>org.apache.maven.doxia</groupId> + <artifactId>doxia</artifactId> + <version>1.1.4</version> + <relativePath>../pom.xml</relativePath> + </parent> + + <artifactId>doxia-book</artifactId> + <name>Doxia :: Book Component</name> + <description>A component to write books like user manuals and guides in any format supported by Doxia.</description> + + <dependencies> + <!-- doxia core --> + <dependency> + <groupId>org.apache.maven.doxia</groupId> + <artifactId>doxia-core</artifactId> + </dependency> + <dependency> + <groupId>org.apache.maven.doxia</groupId> + <artifactId>doxia-sink-api</artifactId> + </dependency> + + <!-- doxia modules ordered --> + <dependency> + <groupId>org.apache.maven.doxia</groupId> + <artifactId>doxia-module-apt</artifactId> + </dependency> + <dependency> + <groupId>org.apache.maven.doxia</groupId> + <artifactId>doxia-module-docbook-simple</artifactId> + </dependency> + <dependency> + <groupId>org.apache.maven.doxia</groupId> + <artifactId>doxia-module-itext</artifactId> + </dependency> + <dependency> + <groupId>org.apache.maven.doxia</groupId> + <artifactId>doxia-module-latex</artifactId> + </dependency> + <dependency> + <groupId>org.apache.maven.doxia</groupId> + <artifactId>doxia-module-xdoc</artifactId> + </dependency> + <dependency> + <groupId>org.apache.maven.doxia</groupId> + <artifactId>doxia-module-xhtml</artifactId> + </dependency> + + <!-- plexus --> + <dependency> + <groupId>org.codehaus.plexus</groupId> + <artifactId>plexus-container-default</artifactId> + </dependency> + <dependency> + <groupId>org.codehaus.plexus</groupId> + <artifactId>plexus-i18n</artifactId> + <version>1.0-beta-6</version> + </dependency> + <dependency> + <groupId>org.codehaus.plexus</groupId> + <artifactId>plexus-utils</artifactId> + </dependency> + + </dependencies> + + <build> + <plugins> + <plugin> + <groupId>org.codehaus.modello</groupId> + <artifactId>modello-maven-plugin</artifactId> + <configuration> + <models> + <model>src/main/modello/book.mdo</model> + </models> + <version>1.0.0</version> + </configuration> + <executions> + <execution> + <id>site-docs</id> + <phase>pre-site</phase> + <goals> + <goal>xdoc</goal> + <goal>xsd</goal> + </goals> + </execution> + <execution> + <id>descriptor</id> + <phase>generate-sources</phase> + <goals> + <goal>java</goal> + <goal>xpp3-reader</goal> + <goal>xsd</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + + <profiles> + <profile> + <id>reporting</id> + <reporting> + <plugins> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>l10n-maven-plugin</artifactId> + <version>1.0-alpha-2</version> + <configuration> + <locales> + <locale>en</locale> + <locale>fr</locale> + </locales> + </configuration> + </plugin> + </plugins> + </reporting> + </profile> + </profiles> +</project> \ No newline at end of file
  7. Download patch debian/patches/0008-doxia-logging-deps.patch

    --- 1.1.4-1/debian/patches/0008-doxia-logging-deps.patch 1970-01-01 00:00:00.000000000 +0000 +++ 1.1.4-1ubuntu3/debian/patches/0008-doxia-logging-deps.patch 2011-11-23 17:11:25.000000000 +0000 @@ -0,0 +1,38 @@ +From: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com> +Subject: Add doxia-logging-api to dependencies for doxia-modules and doxia-book +Last-Update: 2011-11-23 + +It appears to be required at least for building documentation, otherwise the +build fails as it tries to resolve org.apache.maven.doxia.logging.LogEnabled, +among other symbols provided by doxia-logging-api. + +Index: doxia/doxia-modules/pom.xml +=================================================================== +--- doxia.orig/doxia-modules/pom.xml 2011-11-21 16:55:11.277656324 -0500 ++++ doxia/doxia-modules/pom.xml 2011-11-23 10:58:55.255900098 -0500 +@@ -50,6 +50,10 @@ + <dependencies> + <dependency> + <groupId>org.apache.maven.doxia</groupId> ++ <artifactId>doxia-logging-api</artifactId> ++ </dependency> ++ <dependency> ++ <groupId>org.apache.maven.doxia</groupId> + <artifactId>doxia-core</artifactId> + </dependency> + <dependency> +Index: doxia/doxia-book/pom.xml +=================================================================== +--- doxia.orig/doxia-book/pom.xml 2011-11-21 16:55:15.685656130 -0500 ++++ doxia/doxia-book/pom.xml 2011-11-23 11:03:28.119915934 -0500 +@@ -37,6 +37,10 @@ + <!-- doxia core --> + <dependency> + <groupId>org.apache.maven.doxia</groupId> ++ <artifactId>doxia-logging-api</artifactId> ++ </dependency> ++ <dependency> ++ <groupId>org.apache.maven.doxia</groupId> + <artifactId>doxia-core</artifactId> + </dependency> + <dependency>
  8. Download patch debian/patches/series

    --- 1.1.4-1/debian/patches/series 2011-09-09 22:28:03.000000000 +0000 +++ 1.1.4-1ubuntu3/debian/patches/series 2011-11-23 16:45:01.000000000 +0000 @@ -5,3 +5,4 @@ 0005-don-t-build-doxia-maven-plugin.patch 0006-specificy-source-and-target-version.patch 0007-disable-plexus-javadoc.patch +0008-doxia-logging-deps.patch
  9. Download patch .pc/0008-doxia-logging-deps.patch/doxia-modules/pom.xml

    --- 1.1.4-1/.pc/0008-doxia-logging-deps.patch/doxia-modules/pom.xml 1970-01-01 00:00:00.000000000 +0000 +++ 1.1.4-1ubuntu3/.pc/0008-doxia-logging-deps.patch/doxia-modules/pom.xml 2011-11-23 19:20:07.000000000 +0000 @@ -0,0 +1,61 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +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. +--><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> + + <parent> + <artifactId>doxia</artifactId> + <groupId>org.apache.maven.doxia</groupId> + <version>1.1.4</version> + <relativePath>../pom.xml</relativePath> + </parent> + + <artifactId>doxia-modules</artifactId> + + <name>Doxia :: Modules</name> + <packaging>pom</packaging> + + <description>Doxia modules for several markup languages.</description> + + <modules> + <module>doxia-module-apt</module> + <module>doxia-module-confluence</module> + <module>doxia-module-docbook-simple</module> + <module>doxia-module-fml</module> + <module>doxia-module-fo</module> + <module>doxia-module-itext</module> + <module>doxia-module-latex</module> + <module>doxia-module-rtf</module> + <module>doxia-module-twiki</module> + <module>doxia-module-xdoc</module> + <module>doxia-module-xhtml</module> + </modules> + + <dependencies> + <dependency> + <groupId>org.apache.maven.doxia</groupId> + <artifactId>doxia-core</artifactId> + </dependency> + <dependency> + <groupId>org.apache.maven.doxia</groupId> + <artifactId>doxia-sink-api</artifactId> + </dependency> + + </dependencies> +</project>
  10. Download patch debian/maven.properties

    --- 1.1.4-1/debian/maven.properties 2011-09-09 22:28:03.000000000 +0000 +++ 1.1.4-1ubuntu3/debian/maven.properties 2011-11-22 19:50:09.000000000 +0000 @@ -2,4 +2,5 @@ # For example: maven.test.skip=true +maven.settings.offline=true

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: gant

gant (1.9.7-1ubuntu1) precise; urgency=low * debian/build.xml Fix detection of groovy, Ubuntu changed the version to 2.0.0+isreally1.8.5 and the build fails to find the class (LP: #935095) -- Andreas Moog <amoog@ubuntu.com> Fri, 24 Feb 2012 18:23:35 +0100

Modifications :
  1. Download patch debian/control

    --- 1.9.7-1/debian/control 2011-11-28 01:47:03.000000000 +0000 +++ 1.9.7-1ubuntu1/debian/control 2012-02-24 17:25:07.000000000 +0000 @@ -1,7 +1,8 @@ Source: gant Section: devel Priority: optional -Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> DM-Upload-Allowed: yes Uploaders: Varun Hiremath <varun@debian.org>, Torsten Werner <twerner@debian.org>, Michael Koch <konqueror@gmx.de>, Miguel Landaeta <miguel@miguel.cc> Build-Depends: cdbs, debhelper (>= 7)
  2. Download patch debian/build.xml

    --- 1.9.7-1/debian/build.xml 2011-11-28 01:57:12.000000000 +0000 +++ 1.9.7-1ubuntu1/debian/build.xml 2012-02-24 17:23:13.000000000 +0000 @@ -78,6 +78,7 @@ Author : Russel Winder <russel.winder@co <echo message="Building with the Groovy installation at $GROOVY_HOME (${environment.GROOVY_HOME})."/> <path id="groovyJarPathId"> <fileset dir="${environment.GROOVY_HOME}/lib" includes="groovy-1.*.jar"/> + <fileset dir="${environment.GROOVY_HOME}/lib" includes="groovy-2.*.jar"/> </path> <path id="compileJarSetPathId"> <path refid="groovyJarPathId"/>

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: groovy

groovy (2.0.0~beta2+isreally1.8.6-0ubuntu1) precise; urgency=low * New upstream release. * Fix jar naming issues caused by +isreally (LP: #953533): - d/rules: Figure out real upstream version number and install jars to /usr/share/groovy/lib with the correct versioning. -- James Page <james.page@ubuntu.com> Thu, 15 Mar 2012 13:25:54 +0000 groovy (2.0.0~beta2+isreally1.8.5-0ubuntu1) precise; urgency=low * Upload 1.8.5 as 2.0.0 due to accidental sync of 2.0.0 beta from Debian experimental. -- James Page <james.page@ubuntu.com> Wed, 18 Jan 2012 10:27:54 +0100

Modifications :
  1. Download patch debian/patches/0002-ant-build.diff.patch
  2. Download patch src/main/groovy/util/ObservableMap.java

    --- 2.0.0~beta2-1/src/main/groovy/util/ObservableMap.java 2011-12-21 14:42:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/src/main/groovy/util/ObservableMap.java 2012-02-09 20:55:10.000000000 +0000 @@ -325,8 +325,36 @@ public class ObservableMap implements Ma } public abstract static class PropertyEvent extends PropertyChangeEvent { + /** + * deprecated + */ + public static final int ADDED = ChangeType.ADDED.ordinal(); + /** + * deprecated + */ + public static final int UPDATED = ChangeType.UPDATED.ordinal(); + /** + * deprecated + */ + public static final int REMOVED = ChangeType.REMOVED.ordinal(); + /** + * deprecated + */ + public static final int CLEARED = ChangeType.CLEARED.ordinal(); + /** + * deprecated + */ + public static final int MULTI = ChangeType.MULTI.ordinal(); + private ChangeType type; + /** + * @deprecated + */ + public PropertyEvent(Object source, String propertyName, Object oldValue, Object newValue, int type) { + this(source, propertyName, oldValue, newValue, ChangeType.resolve(type)); + } + public PropertyEvent(Object source, String propertyName, Object oldValue, Object newValue, ChangeType type) { super(source, propertyName, oldValue, newValue); this.type = type; @@ -364,6 +392,10 @@ public class ObservableMap implements Ma } public static class PropertyClearedEvent extends PropertyEvent { + /** + * @deprecated + */ + public static final String CLEAR_PROPERTY = ObservableMap.CLEARED_PROPERTY; private Map values = new HashMap(); public PropertyClearedEvent(Object source, Map values) {
  3. Download patch src/main/groovy/util/ObservableList.java

    --- 2.0.0~beta2-1/src/main/groovy/util/ObservableList.java 2011-12-21 14:42:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/src/main/groovy/util/ObservableList.java 2012-02-09 20:55:10.000000000 +0000 @@ -503,10 +503,41 @@ public class ObservableList implements L } public abstract static class ElementEvent extends PropertyChangeEvent { + /** + * deprecated + */ + public static final int ADDED = ChangeType.ADDED.ordinal(); + /** + * deprecated + */ + public static final int UPDATED = ChangeType.UPDATED.ordinal(); + /** + * deprecated + */ + public static final int REMOVED = ChangeType.REMOVED.ordinal(); + /** + * deprecated + */ + public static final int CLEARED = ChangeType.CLEARED.ordinal(); + /** + * deprecated + */ + public static final int MULTI_ADD = ChangeType.MULTI_ADD.ordinal(); + /** + * deprecated + */ + public static final int MULTI_REMOVE = ChangeType.MULTI_REMOVE.ordinal(); private final ChangeType type; private final int index; + /** + * @deprecated + */ + public ElementEvent(Object source, Object oldValue, Object newValue, int index, int type) { + this(source, oldValue, newValue, index, ChangeType.resolve(type)); + } + public ElementEvent(Object source, Object oldValue, Object newValue, int index, ChangeType type) { super(source, ObservableList.CONTENT_PROPERTY, oldValue, newValue); this.type = type;
  4. Download patch src/main/org/codehaus/groovy/antlr/AntlrParserPlugin.java

    --- 2.0.0~beta2-1/src/main/org/codehaus/groovy/antlr/AntlrParserPlugin.java 2011-12-21 14:42:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/src/main/org/codehaus/groovy/antlr/AntlrParserPlugin.java 2012-02-09 20:55:10.000000000 +0000 @@ -670,6 +670,7 @@ public class AntlrParserPlugin extends A ClassNode oldNode = classNode; enumClass.addAnnotations(annotations); classNode = enumClass; + configureAST(classNode, enumNode); assertNodeType(OBJBLOCK, node); objectBlock(node); classNode = oldNode; @@ -1207,10 +1208,8 @@ public class AntlrParserPlugin extends A statement = variableDef(node); break; - case LABELED_STAT: - statement = labelledStatement(node); - break; + return labelledStatement(node); case LITERAL_assert: statement = assertStatement(node); @@ -1570,8 +1569,7 @@ public class AntlrParserPlugin extends A // let's do the catch nodes List<CatchStatement> catches = new ArrayList<CatchStatement>(); for (; node != null && isType(LITERAL_catch, node); node = node.getNextSibling()) { - final List<CatchStatement> catchStatements = catchStatement(node); - catches.addAll(catchStatements); + catches.add(catchStatement(node)); } if (isType(LITERAL_finally, node)) { @@ -1591,37 +1589,17 @@ public class AntlrParserPlugin extends A return tryCatchStatement; } - protected List<CatchStatement> catchStatement(AST catchNode) { + protected CatchStatement catchStatement(AST catchNode) { AST node = catchNode.getFirstChild(); - List<CatchStatement> catches = new LinkedList<CatchStatement>(); - Statement code = statement(node.getNextSibling()); - if (MULTICATCH == node.getType()) { - AST variableNode = node.getNextSibling(); - final AST multicatches = node.getFirstChild(); - if (multicatches.getType() != MULTICATCH_TYPES) { - // catch (e) - // catch (def e) - String variable = identifier(multicatches); - Parameter catchParameter = new Parameter(ClassHelper.DYNAMIC_TYPE, variable); - CatchStatement answer = new CatchStatement(catchParameter, code); - configureAST(answer, catchNode); - catches.add(answer); - } else { - // catch (Exception e) - // catch (Exception1 | Exception2 e) - AST exceptionNodes = multicatches.getFirstChild(); - String variable = identifier(multicatches.getNextSibling()); - while (exceptionNodes != null) { - ClassNode exceptionType = buildName(exceptionNodes); - Parameter catchParameter = new Parameter(exceptionType, variable); - CatchStatement answer = new CatchStatement(catchParameter, code); - configureAST(answer, catchNode); - catches.add(answer); - exceptionNodes = exceptionNodes.getNextSibling(); - } - } - } - return catches; + Parameter parameter = parameter(node); + ClassNode exceptionType = parameter.getType(); + String variable = parameter.getName(); + node = node.getNextSibling(); + Statement code = statement(node); + Parameter catchParameter = new Parameter(exceptionType, variable); + CatchStatement answer = new CatchStatement(catchParameter, code); + configureAST(answer, catchNode); + return answer; } protected Statement whileStatement(AST whileNode) { @@ -2858,8 +2836,9 @@ public class AntlrParserPlugin extends A private ClassNode addTypeArguments(ClassNode basicType, AST node) { List<GenericsType> typeArgumentList = getTypeArgumentsList(node); - // a 0-length type argument list means we face the diamond operator - basicType.setGenericsTypes(typeArgumentList.toArray(new GenericsType[typeArgumentList.size()])); + if (typeArgumentList.size() > 0) { + basicType.setGenericsTypes(typeArgumentList.toArray(new GenericsType[typeArgumentList.size()])); + } return basicType; }
  5. Download patch src/main/groovy/util/Node.java
  6. Download patch src/main/groovy/transform/InheritConstructors.java

    --- 2.0.0~beta2-1/src/main/groovy/transform/InheritConstructors.java 2011-12-06 17:28:16.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/src/main/groovy/transform/InheritConstructors.java 2012-02-07 18:53:16.000000000 +0000 @@ -1,5 +1,5 @@ /* - * Copyright 2008-2010 the original author or authors. + * Copyright 2008-2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -101,7 +101,7 @@ import java.lang.annotation.Target; * this AST transformation. This means that you can't override (i.e. not * inherit) the constructors with signatures that Groovy adds later. * If you get it wrong you will get a compile-time error about the duplication. - * <p> + * </p> * * @author Paul King * @since 1.7.3
  7. Download patch src/main/groovy/swing/factory/ColumnModelFactory.groovy

    --- 2.0.0~beta2-1/src/main/groovy/swing/factory/ColumnModelFactory.groovy 2011-12-21 14:42:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/src/main/groovy/swing/factory/ColumnModelFactory.groovy 2012-02-09 20:55:10.000000000 +0000 @@ -16,6 +16,7 @@ package groovy.swing.factory +import java.util.logging.Logger import javax.swing.JTable import javax.swing.table.TableColumnModel import groovy.util.logging.Log
  8. Download patch src/main/groovy/swing/factory/ColumnFactory.groovy

    --- 2.0.0~beta2-1/src/main/groovy/swing/factory/ColumnFactory.groovy 2011-12-21 14:42:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/src/main/groovy/swing/factory/ColumnFactory.groovy 2012-02-09 20:55:10.000000000 +0000 @@ -16,6 +16,7 @@ package groovy.swing.factory +import java.util.logging.Logger import javax.swing.table.TableCellRenderer import javax.swing.table.TableColumn import javax.swing.table.TableColumnModel
  9. Download patch gradlew

    --- 2.0.0~beta2-1/gradlew 2011-12-21 14:42:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/gradlew 2012-02-09 20:55:10.000000000 +0000 @@ -7,25 +7,21 @@ ############################################################################## # Uncomment those lines to set JVM options. GRADLE_OPTS and JAVA_OPTS can be used together. -# GRADLE_OPTS="$GRADLE_OPTS -Xmx512m" +GRADLE_OPTS="$GRADLE_OPTS -Xmx640m" # JAVA_OPTS="$JAVA_OPTS -Xmx512m" GRADLE_APP_NAME=Gradle -# Use the maximum available, or set MAX_FD != -1 to use that value. -MAX_FD="maximum" - warn ( ) { - echo "$*" + echo "${PROGNAME}: $*" } die ( ) { - echo - echo "$*" - echo + warn "$*" exit 1 } + # OS specific support (must be 'true' or 'false'). cygwin=false msys=false @@ -83,31 +79,12 @@ if [ -z "$JAVACMD" ] ; then fi fi if [ ! -x "$JAVACMD" ] ; then - die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME - -Please set the JAVA_HOME variable in your environment to match the -location of your Java installation." + die "JAVA_HOME is not defined correctly, can not execute: $JAVACMD" fi if [ -z "$JAVA_HOME" ] ; then warn "JAVA_HOME environment variable is not set" fi -# Increase the maximum file descriptors if we can. -if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then - MAX_FD_LIMIT=`ulimit -H -n` - if [ $? -eq 0 ] ; then - if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then - MAX_FD="$MAX_FD_LIMIT" - fi - ulimit -n $MAX_FD - if [ $? -ne 0 ] ; then - warn "Could not set maximum file descriptor limit: $MAX_FD" - fi - else - warn "Could not query businessSystem maximum file descriptor limit: $MAX_FD_LIMIT" - fi -fi - # For Darwin, add GRADLE_APP_NAME to the JAVA_OPTS as -Xdock:name if $darwin; then JAVA_OPTS="$JAVA_OPTS -Xdock:name=$GRADLE_APP_NAME" @@ -160,7 +137,7 @@ fi GRADLE_APP_BASE_NAME=`basename "$0"` -exec "$JAVACMD" $JAVA_OPTS $GRADLE_OPTS \ +"$JAVACMD" $JAVA_OPTS $GRADLE_OPTS \ -classpath "$CLASSPATH" \ -Dorg.gradle.appname="$GRADLE_APP_BASE_NAME" \ -Dorg.gradle.wrapper.properties="$WRAPPER_PROPERTIES" \
  10. Download patch README.md

    --- 2.0.0~beta2-1/README.md 2011-12-21 14:42:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/README.md 2012-02-09 20:55:10.000000000 +0000 @@ -1,47 +1,46 @@ -Groovy -=== - -[Groovy][Groovy] is an agile and dynamic language for the Java Virtual Machine. It builds upon the strengths of Java, but has additional power features inspired by languages like Python, Ruby and Smalltalk. Groovy makes modern programming features available to Java developers with almost-zero learning curve as well as supports Domain-Specific Languages and other compact syntax so your code becomes easy to read and maintain. Groovy makes writing shell and build scripts easy with its powerful processing primitives, OO abilities and an Ant DSL. It also increases developer productivity by reducing scaffolding code when developing web, GUI, database or console applications. Groovy simplifies testing by supporting unit testing and mocking out-of-the-box. Groovy also seamlessly integrates with all existing Java classes and libraries and compiles straight to Java bytecode so you can use it anywhere you can use Java. -[Groovy]: http://groovy.codehaus.org/ - -Building ---- - -To build you will need: - -* [JDK 1.5+](http://www.oracle.com/technetwork/java/javase/downloads) - -Plus one of the following (Gradle will download itself if needed): - -* [Apache Ant 1.7+](http://ant.apache.org) -* [Gradle 0.9.2+](http://gradle.org/) - -For detailed instructions please see: - -* [http://groovy.codehaus.org/Building+Groovy+from+Source](http://groovy.codehaus.org/Building+Groovy+from+Source) - -To build everything using ant (including running tests and creating a complete installation): - - ant install - -To build without running tests or creating OSGi information: - - ant install -DskipTests=true -DskipOsgi=true - -To run tests from gradle (will download gradle the first time): - - gradlew test - -To build from Eclipse: - -* ant install -* ensure that the M2_REPO classpath variable exists and points to the correct place (typically ~/.m2/repository) - * To Change this, go to Preferences -> Java -> Build Path -> Classpath variables -* Project -> Clean... and then build. Should compile with no errors. But if there are errors, then send a message to the groovy users mailing list -* You will *not* be able to run the tests from inside of Eclipse. - -License ---- - -Groovy is licensed under the terms of the [Apache License, Version 2.0][Apache License, Version 2.0]. -[Apache License, Version 2.0]: http://www.apache.org/licenses/LICENSE-2.0.html +Groovy +=== + +[Groovy][Groovy] is an agile and dynamic language for the Java Virtual Machine. It builds upon the strengths of Java, but has additional power features inspired by languages like Python, Ruby and Smalltalk. Groovy makes modern programming features available to Java developers with almost-zero learning curve as well as supports Domain-Specific Languages and other compact syntax so your code becomes easy to read and maintain. Groovy makes writing shell and build scripts easy with its powerful processing primitives, OO abilities and an Ant DSL. It also increases developer productivity by reducing scaffolding code when developing web, GUI, database or console applications. Groovy simplifies testing by supporting unit testing and mocking out-of-the-box. Groovy also seamlessly integrates with all existing Java classes and libraries and compiles straight to Java bytecode so you can use it anywhere you can use Java. +[Groovy]: http://groovy.codehaus.org/ + +Building +--- + +To build you will need: + +* [JDK 1.5+](http://www.oracle.com/technetwork/java/javase/downloads) + +Plus one of the following (Gradle will download itself if needed): +* [Apache Ant 1.7+](http://ant.apache.org) +* [Gradle 0.9.2+](http://gradle.org/) + +For detailed instructions please see: + +* [http://groovy.codehaus.org/Building+Groovy+from+Source](http://groovy.codehaus.org/Building+Groovy+from+Source) + +To build everything using ant (including running tests and creating a complete installation): + + ant install + +To build without running tests or creating OSGi information: + + ant install -DskipTests=true -DskipOsgi=true + +To run tests from gradle (will download gradle the first time): + + gradlew test + +To build from Eclipse: + +* ant install +* ensure that the M2_REPO classpath variable exists and points to the correct place (typically ~/.m2/repository) + * To Change this, go to Preferences -> Java -> Build Path -> Classpath variables +* Project -> Clean... and then build. Should compile with no errors. But if there are errors, then send a message to the groovy users mailing list +* You will *not* be able to run the tests from inside of Eclipse. + +License +--- + +Groovy is licensed under the terms of the [Apache License, Version 2.0][Apache License, Version 2.0]. +[Apache License, Version 2.0]: http://www.apache.org/licenses/LICENSE-2.0.html
  11. Download patch gradle/pomconfigurer.gradle

    --- 2.0.0~beta2-1/gradle/pomconfigurer.gradle 2011-12-21 14:42:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/gradle/pomconfigurer.gradle 2012-02-09 20:55:10.000000000 +0000 @@ -23,7 +23,7 @@ project.pomConfigureClosure = { modelVersion '4.0.0' groupId 'org.codehaus.groovy' artifactId 'groovy' - version '1.9.0-beta-2-SNAPSHOT' + version '1.8.6-SNAPSHOT' name 'Groovy' description 'Groovy: A powerful, dynamic language for the JVM' url 'http://groovy.codehaus.org/' @@ -39,6 +39,7 @@ project.pomConfigureClosure = { organization 'SpringSource' roles { role 'Project Manager' + role 'Despot' role 'Developer' } } @@ -188,6 +189,7 @@ project.pomConfigureClosure = { email 'blackdrag@gmx.org' roles { role 'Developer' + role 'Despot' } } developer { @@ -233,6 +235,7 @@ project.pomConfigureClosure = { organization 'ASERT, Australia' roles { role 'Developer' + role 'Despot' } } developer { @@ -306,6 +309,14 @@ project.pomConfigureClosure = { role 'Developer' } } + developer { + id 'melix' + name 'Cédric Champeau' + email 'cedric.champeau@gmail.com' + roles { + role 'Developer' + } + } } contributors { contributor { @@ -443,14 +454,17 @@ project.pomConfigureClosure = { name 'Adam Murdoch' } contributor { - name 'Cédric Champeau' - } - contributor { name 'David Durham' } contributor { name 'Daniel Henrique Alves Lima' } + contributor { + name 'John Wagenleitner' + } + contributor { + name 'Colin Harrington' + } } mailingLists { mailingList { @@ -466,6 +480,13 @@ project.pomConfigureClosure = { archive 'http://dir.gmane.org/gmane.comp.lang.groovy.user' } } + licenses { + license { + name 'The Apache Software License, Version 2.0' + url 'http://www.apache.org/licenses/LICENSE-2.0.txt' + distribution 'repo' + } + } scm { connection 'scm:svn:http://svn.groovy.codehaus.org/browse/groovy/trunk/groovy/groovy-core' developerConnection 'scm:svn:https://${maven.username}@svn.groovy.codehaus.org/browse/groovy/trunk/groovy/groovy-core' @@ -558,4 +579,4 @@ project.pomConfigureClosure = { } } } -} \ No newline at end of file +}
  12. Download patch src/main/groovy/transform/ToString.java

    --- 2.0.0~beta2-1/src/main/groovy/transform/ToString.java 2011-12-21 14:42:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/src/main/groovy/transform/ToString.java 2012-02-09 20:55:10.000000000 +0000 @@ -76,8 +76,11 @@ import java.lang.annotation.Target; * <pre> * AgedThing(age:5, super:NamedThing(Lassie)) * </pre> + * {@code @ToString} can also be used in conjunction with {@code @Canonical} and {@code @Immutable}. * * @author Paul King + * @see Immutable + * @see Canonical * @since 1.8.0 */ @java.lang.annotation.Documented
  13. Download patch src/main/groovy/lang/Binding.java

    --- 2.0.0~beta2-1/src/main/groovy/lang/Binding.java 2011-12-21 14:42:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/src/main/groovy/lang/Binding.java 2012-02-09 20:55:10.000000000 +0000 @@ -22,6 +22,7 @@ import java.util.Map; * Represents the variable bindings of a script which can be altered * from outside the script object or created outside of a script and passed * into it. + * * <p> Binding instances are not supposed to be used in a multithreaded context. * * @author <a href="mailto:james@coredevelopers.net">James Strachan</a> @@ -75,6 +76,15 @@ public class Binding extends GroovyObjec variables = new LinkedHashMap(); variables.put(name, value); } + + /** + * Simple check for whether the binding contains a particular variable or not. + * + * @param name the name of the variable to check for + */ + public boolean hasVariable(String name) { + return variables != null && variables.containsKey(name); + } public Map getVariables() { if (variables == null) @@ -107,5 +117,5 @@ public class Binding extends GroovyObjec setVariable(property, newValue); } } - + }
  14. Download patch src/main/groovy/json/JsonOutput.groovy

    --- 2.0.0~beta2-1/src/main/groovy/json/JsonOutput.groovy 2011-12-16 05:24:20.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/src/main/groovy/json/JsonOutput.groovy 2012-01-24 20:27:40.000000000 +0000 @@ -139,10 +139,12 @@ class JsonOutput { * @return a JSON object representation for a map */ static String toJson(Map m) { - if(m.containsKey(null)) { - throw new IllegalArgumentException('Null key for a Map not allowed') - } - "{" + m.collect { k, v -> toJson(k.toString()) + ':' + toJson(v) }.join(',') + "}" + "{" + m.collect { k, v -> + if (k == null) { + throw new IllegalArgumentException('Null key for a Map not allowed') + } + toJson(k.toString()) + ':' + toJson(v) + }.join(',') + "}" } /**
  15. Download patch .gradle/1.0-milestone-6/outputFileStates/cache.properties.lock

    --- 2.0.0~beta2-1/.gradle/1.0-milestone-6/outputFileStates/cache.properties.lock 1970-01-01 00:00:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/.gradle/1.0-milestone-6/outputFileStates/cache.properties.lock 2012-01-27 14:59:06.000000000 +0000 @@ -0,0 +1 @@ + \ No newline at end of file Binary files 2.0.0~beta2-1/.gradle/1.0-milestone-6/taskArtifacts/cache.bin and 2.0.0~beta2+isreally1.8.6-0ubuntu1/.gradle/1.0-milestone-6/taskArtifacts/cache.bin differ
  16. Download patch .gradle/1.0-milestone-6/fileSnapshots/cache.properties.lock

    --- 2.0.0~beta2-1/.gradle/1.0-milestone-6/fileSnapshots/cache.properties.lock 1970-01-01 00:00:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/.gradle/1.0-milestone-6/fileSnapshots/cache.properties.lock 2012-01-27 14:59:06.000000000 +0000 @@ -0,0 +1 @@ + \ No newline at end of file Binary files 2.0.0~beta2-1/.gradle/1.0-milestone-6/outputFileStates/cache.bin and 2.0.0~beta2+isreally1.8.6-0ubuntu1/.gradle/1.0-milestone-6/outputFileStates/cache.bin differ
  17. Download patch src/main/groovy/lang/MetaObjectProtocol.java

    --- 2.0.0~beta2-1/src/main/groovy/lang/MetaObjectProtocol.java 2011-12-21 14:42:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/src/main/groovy/lang/MetaObjectProtocol.java 2012-02-09 20:55:10.000000000 +0000 @@ -111,7 +111,7 @@ public interface MetaObjectProtocol { * argument values to establish the chosen MetaMethod * * @param name The name of the MetaMethod - * @param args Array containing - 1) the argument values (using which their types are then inferred), or 2) the corresponding argument types + * @param args Array containing - 1) the argument values (using which their types are then inferred), or 2) the corresponding argument types * @return A MetaMethod or null if it doesn't exist */ MetaMethod getMetaMethod(String name, Object[] args);
  18. Download patch .pc/0003-disable-bnd.diff.patch/build.xml
  19. Download patch src/main/groovy/util/GroovyLog.java

    --- 2.0.0~beta2-1/src/main/groovy/util/GroovyLog.java 1970-01-01 00:00:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/src/main/groovy/util/GroovyLog.java 2012-02-09 20:55:10.000000000 +0000 @@ -0,0 +1,83 @@ +/* + * Copyright 2003-2007 the original author or authors. + * + * Licensed 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 groovy.util; + +import groovy.lang.GroovyObjectSupport; + +import org.codehaus.groovy.runtime.DefaultGroovyMethods; + +// +// FIXME: This class really isn't all that useful. It would be *much* better if there +// was a simple log API in groovy to dynamically switch to the logging facade that +// is actually installed. +// + +/** + * Represents an arbitrary logging service. By default this outputs to + * System.out though derivations of this class could log to Jakarta Commons Logging + * or log4j or JDK 1.5 logging etc + * + * @author <a href="mailto:james@coredevelopers.net">James Strachan</a> + * @version $Revision$ + */ +@Deprecated +public class GroovyLog extends GroovyObjectSupport { + + String prefix; + + /** + * Factory method to create new instances + */ + public static GroovyLog newInstance(Class aClass) { + return new GroovyLog(aClass); + } + + public GroovyLog() { + this(""); + } + + public GroovyLog(Class type) { + this(type.getName()); + } + + public GroovyLog(Object obj) { + this(obj.getClass()); + } + + public GroovyLog(String prefix) { + // + // FIXME: This kinda sucks as a default... shouldn't tack on any [ or : muck + // + + this.prefix = (prefix != null && prefix.length() > 0) ? "[" + prefix + ":" : "["; + } + + public Object invokeMethod(String name, Object args) { + if (args != null && args.getClass().isArray()) { + args = DefaultGroovyMethods.join((Object[])args, ","); + } + + // + // FIXME: This kinda sucks as an output format, should probably ucase name and then + // warp prefix in [] and then output the args. Basically what the SimpleLog + // does in JCL. + // + + System.out.println(prefix + name + "] " + args); + + return null; + } +}
  20. Download patch src/bin/groovysh

    --- 2.0.0~beta2-1/src/bin/groovysh 2011-12-21 14:42:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/src/bin/groovysh 2012-02-09 20:55:10.000000000 +0000 @@ -30,4 +30,8 @@ DIRNAME=`dirname "$PRG"` . "$DIRNAME/startGroovy" -startGroovy org.codehaus.groovy.tools.shell.Main "$@" +if [ "x$OLDSHELL" != "x" ]; then + startGroovy groovy.ui.InteractiveShell "$@" +else + startGroovy org.codehaus.groovy.tools.shell.Main "$@" +fi
  21. Download patch debian/rules

    --- 2.0.0~beta2-1/debian/rules 2011-10-15 02:55:46.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/debian/rules 2012-03-15 13:12:40.000000000 +0000 @@ -5,7 +5,6 @@ include /usr/share/cdbs/1/class/ant.mk PACKAGE := $(DEB_SOURCE_PACKAGE) VERSION := $(DEB_UPSTREAM_VERSION) -DEB_UPSTREAM_VERSION := $(shell echo $(DEB_UPSTREAM_VERSION)| sed 's/~beta/-beta-/') JAVA_HOME := /usr/lib/jvm/default-java DEB_ANT_BUILDFILE := build.xml DEB_ANT_BUILD_TARGET := install doc @@ -15,15 +14,18 @@ DEB_JARS := ant mockobjects- asm3-util asm3-tree asm3-analysis ivy bnd qdox jarjar jansi ant-nodeps API_DOCS := target/html/api +# Ubuntu hack to work around +isreally to backout 2.0.0 +UBUNTU_UPSTREAM_VERSION := $(shell echo $(DEB_UPSTREAM_VERSION) | sed 's/.*isreally//') + binary-post-install/$(PACKAGE):: chmod a+x debian/groovy/usr/share/groovy/bin/* sed -i \ -e"1s,.*,#!/bin/sh," \ debian/groovy/usr/share/groovy/bin/startGroovy - mh_installpoms -p$(PACKAGE) + mh_installpoms -p$(PACKAGE) # without bnd: - mh_installjar -p$(PACKAGE) -dusr/share/groovy/lib/groovy-$(DEB_UPSTREAM_VERSION).jar -l pom.xml target/dist/groovy.jar - mh_installjar -p$(PACKAGE) -dusr/share/groovy/embeddable/groovy-all-$(DEB_UPSTREAM_VERSION).jar -l target/groovy-all.pom target/dist/groovy-all.jar + mh_installjar -p$(PACKAGE) -dusr/share/groovy/lib/groovy-$(UBUNTU_UPSTREAM_VERSION).jar -l pom.xml target/dist/groovy.jar + mh_installjar -p$(PACKAGE) -dusr/share/groovy/embeddable/groovy-all-$(UBUNTU_UPSTREAM_VERSION).jar -l target/groovy-all.pom target/dist/groovy-all.jar # with bnd: #mh_installjar -p$(PACKAGE) -dusr/share/groovy/lib/groovy-$(DEB_UPSTREAM_VERSION).jar -l pom.xml target/install/lib/groovy-$(DEB_UPSTREAM_VERSION).jar #mh_installjar -p$(PACKAGE) -dusr/share/groovy/embeddable/groovy-all-$(DEB_UPSTREAM_VERSION).jar -l target/groovy-all.pom target/install/embeddable/groovy-all-$(DEB_UPSTREAM_VERSION).jar
  22. Download patch src/main/groovy/servlet/AbstractHttpServlet.java

    --- 2.0.0~beta2-1/src/main/groovy/servlet/AbstractHttpServlet.java 2011-08-30 16:20:16.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/src/main/groovy/servlet/AbstractHttpServlet.java 2012-02-06 15:05:22.000000000 +0000 @@ -296,13 +296,20 @@ public abstract class AbstractHttpServle /** * Parses the http request for the real script or template source file. - * - * @param request the http request to analyze - * @return a file object using an absolute file path name + * + * @param request + * the http request to analyze + * @return a file object using an absolute file path name, or <code>null</code> if the + * servlet container cannot translate the virtual path to a real + * path for any reason (such as when the content is being made + * available from a .war archive). */ protected File getScriptUriAsFile(HttpServletRequest request) { String uri = getScriptUri(request); String real = servletContext.getRealPath(uri); + if (real == null) { + return null; + } return new File(real).getAbsoluteFile(); }
  23. Download patch src/main/groovy/beans/BindableASTTransformation.java

    --- 2.0.0~beta2-1/src/main/groovy/beans/BindableASTTransformation.java 2011-12-06 17:28:16.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/src/main/groovy/beans/BindableASTTransformation.java 2012-02-06 15:05:22.000000000 +0000 @@ -1,5 +1,5 @@ /* - * Copyright 2008-2009 the original author or authors. + * Copyright 2008-2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -267,9 +267,9 @@ public class BindableASTTransformation i /** * Snoops through the declaring class and all parents looking for methods - * void addPropertyChangeListener(PropertyChangeListener), - * void removePropertyChangeListener(PropertyChangeListener), and - * void firePropertyChange(String, Object, Object). If any are defined all + * <code>void addPropertyChangeListener(PropertyChangeListener)</code>, + * <code>void removePropertyChangeListener(PropertyChangeListener)</code>, and + * <code>void firePropertyChange(String, Object, Object)</code>. If any are defined all * must be defined or a compilation error results. * * @param declaringClass the class to search @@ -316,14 +316,18 @@ public class BindableASTTransformation i * Adds the necessary field and methods to support property change support. * <p/> * Adds a new field: + * <pre> * <code>protected final java.beans.PropertyChangeSupport this$PropertyChangeSupport = new java.beans.PropertyChangeSupport(this)</code>" + * </pre> * <p/> * Also adds support methods: + * <pre> * <code>public void addPropertyChangeListener(java.beans.PropertyChangeListener)</code> * <code>public void addPropertyChangeListener(String, java.beans.PropertyChangeListener)</code> * <code>public void removePropertyChangeListener(java.beans.PropertyChangeListener)</code> * <code>public void removePropertyChangeListener(String, java.beans.PropertyChangeListener)</code> * <code>public java.beans.PropertyChangeListener[] getPropertyChangeListeners()</code> + * </pre> * * @param declaringClass the class to which we add the support field and methods */
  24. Download patch benchmark/bench/ary.groovy

    --- 2.0.0~beta2-1/benchmark/bench/ary.groovy 2011-12-21 14:42:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/benchmark/bench/ary.groovy 2012-02-09 20:55:10.000000000 +0000 @@ -9,10 +9,10 @@ public class ary { - public static void main(String[] args) { + public static void main(String args[]) { int i, j, k, n = Integer.parseInt(args[0]); - int[] x = new int[n]; - int[] y = new int[n]; + int x[] = new int[n]; + int y[] = new int[n]; for (i = 0; i < n; i++) x[i] = i + 1;
  25. Download patch debian/control

    --- 2.0.0~beta2-1/debian/control 2011-10-15 02:55:46.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/debian/control 2012-03-15 13:06:56.000000000 +0000 @@ -1,7 +1,8 @@ Source: groovy Section: java Priority: optional -Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> DM-Upload-Allowed: yes Uploaders: Torsten Werner <twerner@debian.org>, Varun Hiremath <varun@debian.org>, Ludovic Claude <ludovic.claude@laposte.net>, Miguel Landaeta <miguel@miguel.cc> Build-Depends: debhelper (>= 7), cdbs @@ -12,8 +13,8 @@ Build-Depends-Indep: maven-repo-helper, tofrodos, ivy, libqdox-java, libjarjar-java, libjansi-java Standards-Version: 3.9.2 Homepage: http://groovy.codehaus.org/ -Vcs-Svn: svn://svn.debian.org/svn/pkg-java/branches/groovy/1.9 -Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/branches/groovy/1.9 +Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/groovy/ +Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/trunk/groovy/ Package: groovy Architecture: all
  26. Download patch build.gradle

    --- 2.0.0~beta2-1/build.gradle 2011-12-21 14:42:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/build.gradle 2012-02-09 20:55:10.000000000 +0000 @@ -27,12 +27,12 @@ configurations { dependencies { groovy files("$buildDir/classes") - groovy "asm:asm:3.3.1" + groovy "asm:asm:3.2" groovy "antlr:antlr:2.7.7" - groovy "asm:asm-commons:3.3.1" - groovy "asm:asm-util:3.3.1" - groovy "asm:asm-analysis:3.3.1" - groovy "asm:asm-tree:3.3.1" + groovy "asm:asm-commons:3.2" + groovy "asm:asm-util:3.2" + groovy "asm:asm-analysis:3.2" + groovy "asm:asm-tree:3.2" compile("bsf:bsf:2.4.0") { exclude(group: 'commons-logging', module: 'commons-logging') @@ -76,7 +76,7 @@ dependencies { // todo this was provided compile "org.livetribe:livetribe-jsr223:2.0.6" - tools "com.googlecode.jarjar:jarjar:1.1" + tools "com.google.code:jarjar:1.1" tools("checkstyle:checkstyle:4.4") { exclude(module: 'junit') } @@ -86,7 +86,7 @@ dependencies { exclude(module: 'asm') exclude(module: 'ant') } - tools "asm:asm:3.3.1" + tools "asm:asm:3.2" tools "com.thoughtworks.qdox:qdox:1.12" tools "biz.aQute:bnd:0.0.401"
  27. Download patch src/main/groovy/xml/MarkupBuilder.java

    --- 2.0.0~beta2-1/src/main/groovy/xml/MarkupBuilder.java 2011-12-21 14:42:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/src/main/groovy/xml/MarkupBuilder.java 2012-02-09 20:55:10.000000000 +0000 @@ -310,7 +310,40 @@ public class MarkupBuilder extends Build protected Object getName(String methodName) { return super.getName(methodName); } - + + /** + * Returns a String with special XML characters escaped as entities so that + * output XML is valid. Escapes the following characters as corresponding + * entities: + * <ul> + * <li>\' as &amp;apos;</li> + * <li>&amp; as &amp;amp;</li> + * <li>&lt; as &amp;lt;</li> + * <li>&gt; as &amp;gt;</li> + * </ul> + * + * @param value to be searched and replaced for XML special characters. + * @return value with XML characters escaped + * @see #escapeXmlValue(String, boolean) + * @deprecated + */ + protected String transformValue(String value) { + // & has to be checked and replaced before others + if (value.matches(".*&.*")) { + value = value.replaceAll("&", "&amp;"); + } + if (value.matches(".*\\'.*")) { + value = value.replaceAll("\'", "&apos;"); + } + if (value.matches(".*<.*")) { + value = value.replaceAll("<", "&lt;"); + } + if (value.matches(".*>.*")) { + value = value.replaceAll(">", "&gt;"); + } + return value; + } + /** * Escapes a string so that it can be used directly as an XML * attribute value.
  28. Download patch gradlew.bat

    --- 2.0.0~beta2-1/gradlew.bat 2011-12-21 14:42:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/gradlew.bat 2012-02-09 20:55:10.000000000 +0000 @@ -5,6 +5,10 @@ @rem ## @rem ########################################################################## +@rem +@rem $Revision: 10602 $ $Date: 2008-01-25 02:49:54 +0100 (ven., 25 janv. 2008) $ +@rem + @rem Set local scope for the variables with windows NT shell if "%OS%"=="Windows_NT" setlocal @@ -15,29 +19,69 @@ if "%OS%"=="Windows_NT" setlocal set DIRNAME=%~dp0 if "%DIRNAME%" == "" set DIRNAME=.\ -@rem Find java.exe -set JAVA_EXE=java.exe -if not defined JAVA_HOME goto init - -set JAVA_HOME=%JAVA_HOME:"=% -set JAVA_EXE=%JAVA_HOME%/bin/java.exe - -if exist "%JAVA_EXE%" goto init +@rem Determine the command interpreter to execute the "CD" later +set COMMAND_COM="cmd.exe" +if exist "%SystemRoot%\system32\cmd.exe" set COMMAND_COM="%SystemRoot%\system32\cmd.exe" +if exist "%SystemRoot%\command.com" set COMMAND_COM="%SystemRoot%\command.com" + +@rem Use explicit find.exe to prevent cygwin and others find.exe from being used +set FIND_EXE="find.exe" +if exist "%SystemRoot%\system32\find.exe" set FIND_EXE="%SystemRoot%\system32\find.exe" +if exist "%SystemRoot%\command\find.exe" set FIND_EXE="%SystemRoot%\command\find.exe" + +:check_JAVA_HOME +@rem Make sure we have a valid JAVA_HOME +if not "%JAVA_HOME%" == "" goto have_JAVA_HOME echo. -echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo ERROR: Environment variable JAVA_HOME has not been set. echo. echo Please set the JAVA_HOME variable in your environment to match the echo location of your Java installation. echo. goto end +:have_JAVA_HOME +@rem Validate JAVA_HOME +%COMMAND_COM% /C DIR "%JAVA_HOME%" 2>&1 | %FIND_EXE% /I /C "%JAVA_HOME%" >nul +if not errorlevel 1 goto init + +echo. +echo ERROR: JAVA_HOME might be set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation if there are problems. +echo. + :init +@rem get name of script to launch with full path @rem Get command-line arguments, handling Windowz variants +SET _marker=%JAVA_HOME: =% +@rem IF NOT "%_marker%" == "%JAVA_HOME%" ECHO JAVA_HOME "%JAVA_HOME%" contains spaces. Please change to a location without spaces if this causes problems. if not "%OS%" == "Windows_NT" goto win9xME_args if "%eval[2+2]" == "4" goto 4NT_args +IF "%_marker%" == "%JAVA_HOME%" goto :win9xME_args + +set _FIXPATH= +call :fixpath "%JAVA_HOME%" +set JAVA_HOME=%_FIXPATH:~1% + +goto win9xME_args + +:fixpath +if not %1.==. ( +for /f "tokens=1* delims=;" %%a in (%1) do ( +call :shortfilename "%%a" & call :fixpath "%%b" +) +) +goto :EOF +:shortfilename +for %%i in (%1) do set _FIXPATH=%_FIXPATH%;%%~fsi +goto :EOF + + :win9xME_args @rem Slurp the command line arguments. set CMD_LINE_ARGS= @@ -59,10 +103,10 @@ set CMD_LINE_ARGS=%$ set STARTER_MAIN_CLASS=org.gradle.wrapper.GradleWrapperMain set CLASSPATH=%DIRNAME%\gradle\wrapper\gradle-wrapper.jar set WRAPPER_PROPERTIES=%DIRNAME%\gradle\wrapper\gradle-wrapper.properties +set JAVA_EXE=%JAVA_HOME%\bin\java.exe set GRADLE_OPTS=%JAVA_OPTS% %GRADLE_OPTS% -Dorg.gradle.wrapper.properties="%WRAPPER_PROPERTIES%" -@rem Execute Gradle "%JAVA_EXE%" %GRADLE_OPTS% -classpath "%CLASSPATH%" %STARTER_MAIN_CLASS% %CMD_LINE_ARGS% :end
  29. Download patch src/main/groovy/swing/factory/WidgetFactory.groovy

    --- 2.0.0~beta2-1/src/main/groovy/swing/factory/WidgetFactory.groovy 2011-08-30 16:20:16.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/src/main/groovy/swing/factory/WidgetFactory.groovy 2012-02-07 18:53:16.000000000 +0000 @@ -18,6 +18,8 @@ package groovy.swing.factory import java.awt.Component import java.awt.Window +import javax.swing.JComponent +import static groovy.swing.factory.LayoutFactory.DEFAULT_DELEGATE_PROPERTY_CONSTRAINT public class WidgetFactory extends AbstractFactory { @@ -52,6 +54,9 @@ public class WidgetFactory extends Abstr def constraints = builder.context.constraints if (constraints != null) { LayoutFactory.getLayoutTarget(parent).add(child, constraints) + if (child instanceof JComponent) { + child.putClientProperty(DEFAULT_DELEGATE_PROPERTY_CONSTRAINT, constraints) + } builder.context.remove('constraints') } else { LayoutFactory.getLayoutTarget(parent).add(child)
  30. Download patch src/main/groovy/lang/MetaClassImpl.java

    --- 2.0.0~beta2-1/src/main/groovy/lang/MetaClassImpl.java 2011-12-21 14:42:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/src/main/groovy/lang/MetaClassImpl.java 2012-02-09 20:55:10.000000000 +0000 @@ -76,21 +76,9 @@ import java.lang.reflect.Modifier; import java.lang.reflect.Proxy; import java.net.URL; import java.security.AccessController; -import java.security.PrivilegedAction; import java.security.PrivilegedActionException; import java.security.PrivilegedExceptionAction; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collection; -import java.util.Collections; -import java.util.Comparator; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Iterator; -import java.util.LinkedList; -import java.util.List; -import java.util.Map; -import java.util.Set; +import java.util.*; /** * Allows methods to be dynamically added to existing classes at runtime @@ -119,6 +107,11 @@ public class MetaClassImpl implements Me private static final Class[] METHOD_MISSING_ARGS = new Class[]{String.class, Object.class}; private static final Class[] GETTER_MISSING_ARGS = new Class[]{String.class}; private static final Class[] SETTER_MISSING_ARGS = METHOD_MISSING_ARGS; + private static final Comparator<CachedClass> CACHED_CLASS_NAME_COMPARATOR = new Comparator<CachedClass>() { + public int compare(final CachedClass o1, final CachedClass o2) { + return o1.getName().compareTo(o2.getName()); + } + }; protected final Class theClass; protected final CachedClass theCachedClass; @@ -878,6 +871,7 @@ public class MetaClassImpl implements Me /** * Invokes the given method on the object. + * TODO: should this be deprecated? If so, we have to propogate to many places. */ public Object invokeMethod(Object object, String methodName, Object[] originalArguments) { return invokeMethod(theClass, object, methodName, originalArguments, false, false); @@ -1368,6 +1362,15 @@ public class MetaClassImpl implements Me } } + /** + * Warning, this method will be removed + * + * @deprecated use invokeConstructor instead + */ + public Object invokeConstructorAt(Class at, Object[] arguments) { + return invokeConstructor(arguments); + } + public Object invokeConstructor(Object[] arguments) { return invokeConstructor(theClass, arguments); } @@ -1933,21 +1936,27 @@ public class MetaClassImpl implements Me * This will build up the property map (Map of MetaProperty objects, keyed on * property name). */ + @SuppressWarnings("unchecked") private void setupProperties(PropertyDescriptor[] propertyDescriptors) { if (theCachedClass.isInterface) { LinkedList<CachedClass> superClasses = new LinkedList<CachedClass>(); superClasses.add(ReflectionCache.OBJECT_CLASS); Set interfaces = theCachedClass.getInterfaces(); - classPropertyIndexForSuper = classPropertyIndex; - final SingleKeyHashMap cPI = classPropertyIndex.getNotNull(theCachedClass); - for (Iterator interfaceIter = interfaces.iterator(); interfaceIter.hasNext();) { - CachedClass iclass = (CachedClass) interfaceIter.next(); - SingleKeyHashMap iPropertyIndex = cPI; + LinkedList<CachedClass> superInterfaces = new LinkedList<CachedClass>(interfaces); + // sort interfaces so that we may ensure a deterministic behaviour in case of + // ambiguous fields (class implementing two interfaces using the same field) + if (superInterfaces.size()>1) { + Collections.sort(superInterfaces, CACHED_CLASS_NAME_COMPARATOR); + } + + SingleKeyHashMap iPropertyIndex = classPropertyIndex.getNotNull(theCachedClass); + for (CachedClass iclass : superInterfaces) { + SingleKeyHashMap sPropertyIndex = classPropertyIndex.getNotNull(iclass); + copyNonPrivateFields(sPropertyIndex, iPropertyIndex); addFields(iclass, iPropertyIndex); - classPropertyIndex.put(iclass, iPropertyIndex); } - classPropertyIndex.put(ReflectionCache.OBJECT_CLASS, cPI); + addFields(theCachedClass, iPropertyIndex); applyPropertyDescriptors(propertyDescriptors); applyStrayPropertyMethods(superClasses, classPropertyIndex, true); @@ -1955,7 +1964,12 @@ public class MetaClassImpl implements Me makeStaticPropertyIndex(); } else { LinkedList<CachedClass> superClasses = getSuperClasses(); - Set interfaces = theCachedClass.getInterfaces(); + LinkedList<CachedClass> interfaces = new LinkedList<CachedClass>(theCachedClass.getInterfaces()); + // sort interfaces so that we may ensure a deterministic behaviour in case of + // ambiguous fields (class implementing two interfaces using the same field) + if (interfaces.size()>1) { + Collections.sort(interfaces, CACHED_CLASS_NAME_COMPARATOR); + } // if this an Array, then add the special read-only "length" property if (theCachedClass.isArray) { @@ -1964,7 +1978,7 @@ public class MetaClassImpl implements Me classPropertyIndex.put(theCachedClass, map); } - inheritStaticInterfaceFields(superClasses, interfaces); + inheritStaticInterfaceFields(superClasses, new LinkedHashSet(interfaces)); inheritFields(superClasses); applyPropertyDescriptors(propertyDescriptors); @@ -2924,6 +2938,10 @@ public class MetaClassImpl implements Me Method[] listenerMethods = descriptor.getListenerMethods(); for (Method listenerMethod : listenerMethods) { final MetaMethod metaMethod = CachedMethod.find(descriptor.getAddListenerMethod()); + // GROOVY-5202 + // there might be a non public listener of some kind + // we skip that here + if (metaMethod==null) continue; addToAllMethodsIfPublic(metaMethod); String name = listenerMethod.getName(); if (listeners.containsKey(name)) { @@ -3307,6 +3325,13 @@ public class MetaClassImpl implements Me } /** + * @deprecated use pickMethod instead + */ + protected MetaMethod retrieveMethod(String methodName, Class[] arguments) { + return pickMethod(methodName, arguments); + } + + /** * remove all method call cache entries. This should be done if a * method is added during runtime, but not by using a category. */
  31. Download patch src/main/groovy/text/GStringTemplateEngine.java

    --- 2.0.0~beta2-1/src/main/groovy/text/GStringTemplateEngine.java 2011-12-21 14:42:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/src/main/groovy/text/GStringTemplateEngine.java 2012-02-09 20:55:10.000000000 +0000 @@ -177,12 +177,12 @@ public class GStringTemplateEngine exten templateExpressions.append("}.asWritable()}"); - final GroovyClassLoader loader = parentLoader instanceof GroovyClassLoader?(GroovyClassLoader)parentLoader:( + final GroovyClassLoader loader = (GroovyClassLoader) AccessController.doPrivileged(new PrivilegedAction() { public Object run() { return new GroovyClassLoader(parentLoader); } - })); + }); final Class groovyClass; try { groovyClass = loader.parseClass(new GroovyCodeSource(templateExpressions.toString(), "GStringTemplateScript" + counter++ + ".groovy", "x"));
  32. Download patch src/main/groovy/xml/XmlUtil.java

    --- 2.0.0~beta2-1/src/main/groovy/xml/XmlUtil.java 2011-12-06 17:28:16.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/src/main/groovy/xml/XmlUtil.java 2012-02-06 15:03:26.000000000 +0000 @@ -15,6 +15,7 @@ */ package groovy.xml; +import groovy.lang.GroovyRuntimeException; import groovy.lang.Writable; import groovy.util.Node; import groovy.util.XmlNodePrinter; @@ -253,7 +254,7 @@ public class XmlUtil { transformer.transform(source, target); } catch (TransformerException e) { - // ignore + throw new GroovyRuntimeException(e.getMessage()); } }
  33. Download patch src/main/groovy/lang/GroovyClassLoader.java

    --- 2.0.0~beta2-1/src/main/groovy/lang/GroovyClassLoader.java 2011-12-21 14:42:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/src/main/groovy/lang/GroovyClassLoader.java 2012-02-09 20:55:10.000000000 +0000 @@ -147,6 +147,18 @@ public class GroovyClassLoader extends U } /** + * Loads the given class node returning the implementation Class + * + * @param classNode + * @return a class + * @deprecated + */ + public Class defineClass(ClassNode classNode, String file) { + //return defineClass(classNode, file, "/groovy/defineClass"); + throw new DeprecationException("the method GroovyClassLoader#defineClass(ClassNode, String) is no longer used and removed"); + } + + /** * Loads the given class node returning the implementation Class. * <p/> * WARNING: this compilation is not synchronized @@ -213,6 +225,17 @@ public class GroovyClassLoader extends U Math.abs(text.hashCode()) + ".groovy"); } + /** + * Parses the given character stream into a Java class capable of being run + * + * @param in an InputStream + * @return the main class defined in the given script + * @deprecated Prefer using methods taking a Reader rather than an InputStream to avoid wrong encoding issues. + */ + public Class parseClass(InputStream in) throws CompilationFailedException { + return parseClass(in, generateScriptName()); + } + public synchronized String generateScriptName() { scriptNameCounter++; return "script" + scriptNameCounter + ".groovy"; @@ -329,6 +352,27 @@ public class GroovyClassLoader extends U return ret; } + /** + * expands the classpath + * + * @param pathList an empty list that will contain the elements of the classpath + * @param classpath the classpath specified as a single string + * @deprecated + */ + protected void expandClassPath(List pathList, String base, String classpath, boolean isManifestClasspath) { + throw new DeprecationException("the method groovy.lang.GroovyClassLoader#expandClassPath(List,String,String,boolean) is no longer used internally and removed"); + } + + /** + * A helper method to allow bytecode to be loaded. spg changed name to + * defineClass to make it more consistent with other ClassLoader methods + * + * @deprecated + */ + protected Class defineClass(String name, byte[] bytecode, ProtectionDomain domain) { + throw new DeprecationException("the method groovy.lang.GroovyClassLoader#defineClass(String,byte[],ProtectionDomain) is no longer used internally and removed"); + } + protected PermissionCollection getPermissions(CodeSource codeSource) { PermissionCollection perms; try { @@ -832,6 +876,10 @@ public class GroovyClassLoader extends U return ret; } + private URL getSourceFile(String name) { + return getSourceFile(name, config.getDefaultScriptExtension()); + } + /** * Decides if the given source is newer than a class. *
  34. Download patch build.properties

    --- 2.0.0~beta2-1/build.properties 2011-12-23 19:01:16.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/build.properties 2012-02-09 22:26:34.000000000 +0000 @@ -1,6 +1,6 @@ -groovyVersion = 2.0.0-beta-2 +groovyVersion = 1.8.6 # bundle version format: major('.'minor('.'micro('.'qualifier)?)?)? (first 3 only digits) -groovyBundleVersion = 2.0.0.beta-2 +groovyBundleVersion = 1.8.6 # Many people have reported problems testing UberTestCaseGroovySourceSubPackages, others have no difficulties with the default # values ant junit task uses. The decision has been taken to provide the values to try and cause the least
  35. Download patch src/main/groovy/time/BaseDuration.java

    --- 2.0.0~beta2-1/src/main/groovy/time/BaseDuration.java 2011-08-30 16:20:16.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/src/main/groovy/time/BaseDuration.java 2012-02-07 18:53:16.000000000 +0000 @@ -27,7 +27,7 @@ import java.util.ArrayList; * @see Duration * @author John Wilson tug@wilson.co.uk */ -public abstract class BaseDuration { +public abstract class BaseDuration implements Comparable<BaseDuration> { protected final int years; protected final int months; protected final int days; @@ -118,6 +118,10 @@ public abstract class BaseDuration { public abstract From getFrom(); + public int compareTo(BaseDuration otherDuration) { + return Long.signum(toMilliseconds() - otherDuration.toMilliseconds()); + } + public abstract static class From { public abstract Date getNow();
  36. Download patch src/main/groovy/lang/PackageScope.java

    --- 2.0.0~beta2-1/src/main/groovy/lang/PackageScope.java 1970-01-01 00:00:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/src/main/groovy/lang/PackageScope.java 2012-02-09 20:55:10.000000000 +0000 @@ -0,0 +1,42 @@ +/* + * Copyright 2008-2010 the original author or authors. + * + * Licensed 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 groovy.lang; + +import org.codehaus.groovy.transform.GroovyASTTransformationClass; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +/** + * Class or field annotation used for turning off Groovy's auto property + * conversion of default or package scoped fields. Place it on the field(s) + * of interest or on the class to apply for all package-scoped fields. + * + * This transformation is normally only used in conjunction with a third-party + * library or framework which requires package scoping. + * + * @author Paul King + * @deprecated use groovy.transform.PackageScope + */ +@Retention(RetentionPolicy.RUNTIME) +@Target({ElementType.TYPE, ElementType.FIELD}) +@GroovyASTTransformationClass("org.codehaus.groovy.transform.PackageScopeASTTransformation") +@Deprecated +public @interface PackageScope { +} \ No newline at end of file
  37. Download patch src/main/groovy/util/ConfigObject.groovy

    --- 2.0.0~beta2-1/src/main/groovy/util/ConfigObject.groovy 2011-12-16 05:24:20.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/src/main/groovy/util/ConfigObject.groovy 2012-02-09 20:55:10.000000000 +0000 @@ -101,7 +101,7 @@ class ConfigObject extends LinkedHashMap * @return The result of the merge */ Map merge(ConfigObject other) { - return doMerge(this,other) + return merge(this,other) } @@ -128,7 +128,7 @@ class ConfigObject extends LinkedHashMap return props } - private doMerge(Map config, Map other) { + private merge(Map config, Map other) { for(entry in other) { def configEntry = config[entry.key] @@ -139,7 +139,7 @@ class ConfigObject extends LinkedHashMap else { if(configEntry instanceof Map && configEntry.size() > 0 && entry.value instanceof Map) { // recur - doMerge(configEntry, entry.value) + merge(configEntry, entry.value) } else { config[entry.key] = entry.value
  38. Download patch src/main/groovy/swing/factory/RootPaneContainerFactory.groovy

    --- 2.0.0~beta2-1/src/main/groovy/swing/factory/RootPaneContainerFactory.groovy 2011-08-30 16:20:16.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/src/main/groovy/swing/factory/RootPaneContainerFactory.groovy 2012-02-07 18:53:16.000000000 +0000 @@ -18,7 +18,9 @@ package groovy.swing.factory import java.awt.Component import java.awt.Window +import javax.swing.JComponent import javax.swing.JButton +import static groovy.swing.factory.LayoutFactory.DEFAULT_DELEGATE_PROPERTY_CONSTRAINT abstract class RootPaneContainerFactory extends AbstractFactory { @@ -33,6 +35,9 @@ abstract class RootPaneContainerFactory def constraints = builder.context.constraints if (constraints != null) { parent.contentPane.add(child, constraints) + if (child instanceof JComponent) { + child.putClientProperty(DEFAULT_DELEGATE_PROPERTY_CONSTRAINT, constraints) + } builder.context.remove('constraints') } else { parent.contentPane.add(child)
  39. Download patch debian/orig-tar.sh

    --- 2.0.0~beta2-1/debian/orig-tar.sh 2011-10-15 02:55:46.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/debian/orig-tar.sh 2012-03-15 13:06:56.000000000 +0000 @@ -2,8 +2,7 @@ # called by uscan with '--upstream-version' <version> <file> TAR=../groovy_$2.orig.tar.gz -VERSION=$(echo $2 | sed 's/~beta/-beta-/g') -DIR=groovy-$VERSION +DIR=groovy-$2 # clean up the upstream tarball unzip $3
  40. Download patch .gradle/1.0-milestone-6/fileHashes/cache.properties.lock

    --- 2.0.0~beta2-1/.gradle/1.0-milestone-6/fileHashes/cache.properties.lock 1970-01-01 00:00:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/.gradle/1.0-milestone-6/fileHashes/cache.properties.lock 2012-01-27 14:59:06.000000000 +0000 @@ -0,0 +1 @@ + \ No newline at end of file Binary files 2.0.0~beta2-1/.gradle/1.0-milestone-6/fileSnapshots/cache.bin and 2.0.0~beta2+isreally1.8.6-0ubuntu1/.gradle/1.0-milestone-6/fileSnapshots/cache.bin differ
  41. Download patch debian/patches/0003-disable-bnd.diff.patch

    --- 2.0.0~beta2-1/debian/patches/0003-disable-bnd.diff.patch 2011-10-15 02:55:46.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/debian/patches/0003-disable-bnd.diff.patch 2012-03-15 13:06:56.000000000 +0000 @@ -11,13 +11,12 @@ diff --git a/build.xml b/build.xml index ab54309..e97dfce 100644 --- a/build.xml +++ b/build.xml -@@ -635,7 +635,7 @@ $Date: 2010-04-02 16:02:23 +0200 (Fr, 02. Apr 2010) $ - </move> - </target> - -- <target name="install" depends="createJars,updateJarsForOsgi,skipOsgi" unless="testFailed" -+ <target name="install" depends="createJars,skipOsgi" unless="testFailed" - description="Create an installation hierarchy in target/install."> - - <!-- --- +@@ -644,7 +644,7 @@ + </move> + </target> + +- <target name="install" depends="createJars,updateJarsForOsgi,skipOsgi" unless="testFailed" ++ <target name="install" depends="createJars,skipOsgi" unless="testFailed" + description="Create an installation hierarchy in target/install."> + + <!--
  42. Download patch .gradle/1.0-milestone-6/fileSnapshots/cache.properties

    --- 2.0.0~beta2-1/.gradle/1.0-milestone-6/fileSnapshots/cache.properties 1970-01-01 00:00:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/.gradle/1.0-milestone-6/fileSnapshots/cache.properties 2012-01-27 14:18:30.000000000 +0000 @@ -0,0 +1 @@ +#Fri Jan 27 09:48:29 CET 2012
  43. Download patch src/main/groovy/transform/Immutable.java

    --- 2.0.0~beta2-1/src/main/groovy/transform/Immutable.java 2011-12-21 14:42:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/src/main/groovy/transform/Immutable.java 2012-02-09 20:55:10.000000000 +0000 @@ -87,7 +87,13 @@ import java.lang.annotation.Target; * </ul> * <p/> * Immutable classes are particularly useful for functional and concurrent styles of programming - * and for use as key values within maps. + * and for use as key values within maps. If you want similar functionality to what this annotation + * provides but don't need immutability then consider using {@code @Canonical}. + * <p/> + * Customising behaviour: + * <p/> + * You can customise the toString() method provided for you by {@code @Immutable} + * by also adding the {@code @ToString} annotation to your class definition. * <p/> * Limitations: * <ul> @@ -113,6 +119,8 @@ import java.lang.annotation.Target; * </ul> * * @author Paul King + * @see ToString + * @see Canonical * @since 1.7 */ @java.lang.annotation.Documented
  44. Download patch src/main/groovy/inspect/swingui/TableSorter.java

    --- 2.0.0~beta2-1/src/main/groovy/inspect/swingui/TableSorter.java 2011-12-06 17:28:16.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/src/main/groovy/inspect/swingui/TableSorter.java 2012-02-06 15:03:26.000000000 +0000 @@ -193,7 +193,6 @@ space and avoid unnecessary heap allocat } public void tableChanged(TableModelEvent e) { - System.out.println("Sorter: tableChanged"); reallocateIndexes(); super.tableChanged(e);
  45. Download patch src/main/groovy/swing/factory/TableLayoutFactory.groovy

    --- 2.0.0~beta2-1/src/main/groovy/swing/factory/TableLayoutFactory.groovy 2011-12-21 14:42:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/src/main/groovy/swing/factory/TableLayoutFactory.groovy 2012-02-09 20:55:10.000000000 +0000 @@ -33,7 +33,7 @@ public class TableLayoutFactory extends public void setParent(FactoryBuilderSupport builder, Object parent, Object child) { if (builder.getParentFactory()) { - builder.getParentFactory().setChild (builder, parent, child); + builder.getParentFactory().setChild (builder, parent, child.getComponent()); } } }
  46. Download patch src/main/groovy/sql/GroovyRowResult.java

    --- 2.0.0~beta2-1/src/main/groovy/sql/GroovyRowResult.java 2011-08-30 16:20:16.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/src/main/groovy/sql/GroovyRowResult.java 2012-02-06 15:05:22.000000000 +0000 @@ -1,5 +1,5 @@ /* - * Copyright 2003-2007 the original author or authors. + * Copyright 2003-2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -47,20 +47,10 @@ public class GroovyRowResult extends Gro */ public Object getProperty(String property) { try { - Object value = result.get(property); - if (value != null) - return value; - // if property exists and value is null, return null - if (result.containsKey(property)) - return null; - // with some databases/drivers, the columns names are stored uppercase. - String propertyUpper = property.toUpperCase(); - value = result.get(propertyUpper); - if (value != null) - return value; - // if property exists and value is null, return null - if (result.containsKey(propertyUpper)) - return null; + Object key = lookupKeyIgnoringCase(property); + if (key != null) { + return result.get(key); + } throw new MissingPropertyException(property, GroovyRowResult.class); } catch (Exception e) { @@ -68,6 +58,22 @@ public class GroovyRowResult extends Gro } } + private Object lookupKeyIgnoringCase(Object key) { + // try some special cases first for efficiency + if (result.containsKey(key)) + return key; + if (!(key instanceof CharSequence)) + return null; + String keyStr = key.toString(); + for (Object next : result.keySet()) { + if (!(next instanceof String)) + continue; + if (keyStr.equalsIgnoreCase((String)next)) + return next; + } + return null; + } + /** * Retrieve the value of the property by its index. * A negative index will count backwards from the last column. @@ -90,7 +96,7 @@ public class GroovyRowResult extends Gro it.next(); i++; } - return (obj); + return obj; } catch (Exception e) { throw new MissingPropertyException(Integer.toString(index), GroovyRowResult.class, e); @@ -98,12 +104,12 @@ public class GroovyRowResult extends Gro } public String toString() { - return (result.toString()); + return result.toString(); } /* * The following methods are needed for implementing the Map interface. - * They are just delegating the request to the internal LinkedHashMap + * They are mostly delegating the request to the provided Map. */ public void clear() { @@ -111,7 +117,7 @@ public class GroovyRowResult extends Gro } public boolean containsKey(Object key) { - return result.containsKey(key); + return lookupKeyIgnoringCase(key) != null; } public boolean containsValue(Object value) { @@ -129,8 +135,7 @@ public class GroovyRowResult extends Gro public Object get(Object property) { if (property instanceof String) return getProperty((String)property); - else - return null; + return null; } public int hashCode() { @@ -153,8 +158,8 @@ public class GroovyRowResult extends Gro result.putAll(t); } - public Object remove(Object key) { - return result.remove(key); + public Object remove(Object rawKey) { + return result.remove(lookupKeyIgnoringCase(rawKey)); } public int size() {
  47. Download patch .gradle/1.0-milestone-6/taskArtifacts/cache.properties.lock

    --- 2.0.0~beta2-1/.gradle/1.0-milestone-6/taskArtifacts/cache.properties.lock 1970-01-01 00:00:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/.gradle/1.0-milestone-6/taskArtifacts/cache.properties.lock 2012-01-27 14:59:06.000000000 +0000 @@ -0,0 +1 @@ + \ No newline at end of file
  48. Download patch src/main/org/codehaus/groovy/ant/Groovyc.java

    --- 2.0.0~beta2-1/src/main/org/codehaus/groovy/ant/Groovyc.java 2011-12-21 14:42:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/src/main/org/codehaus/groovy/ant/Groovyc.java 2012-02-09 20:55:10.000000000 +0000 @@ -1,5 +1,5 @@ /* - * Copyright 2003-2010 the original author or authors. + * Copyright 2003-2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -36,11 +36,11 @@ import org.apache.tools.ant.util.SourceF import org.codehaus.groovy.control.CompilationUnit; import org.codehaus.groovy.control.CompilerConfiguration; import org.codehaus.groovy.control.SourceExtensionHandler; +import org.codehaus.groovy.runtime.DefaultGroovyMethods; import org.codehaus.groovy.tools.ErrorReporter; import org.codehaus.groovy.tools.FileSystemCompiler; import org.codehaus.groovy.tools.RootLoader; import org.codehaus.groovy.tools.javac.JavaAwareCompilationUnit; -import org.codehaus.groovy.runtime.DefaultGroovyMethods; import java.io.File; import java.io.FileWriter; @@ -51,6 +51,7 @@ import java.net.MalformedURLException; import java.net.URL; import java.nio.charset.Charset; import java.util.ArrayList; +import java.util.Arrays; import java.util.Enumeration; import java.util.Iterator; import java.util.LinkedHashSet; @@ -750,7 +751,7 @@ public class Groovyc extends MatchingTas String optionStr = st.nextToken(); String replaced = optionStr.replace("-X", "-FX"); if(optionStr == replaced) { - replaced = optionStr.replace("-W", "-FW"); // GROOVY-5063 + replaced = optionStr.replace("-W", "-FW"); // GROOVY-5063 } jointOptions.add(replaced); } @@ -862,6 +863,7 @@ public class Groovyc extends MatchingTas final Execute executor = new Execute(); // new LogStreamHandler ( attributes , Project.MSG_INFO , Project.MSG_WARN ) ) ; executor.setAntRun(getProject()); executor.setWorkingDirectory(getProject().getBaseDir()); + executor.setEnvironment(addClasspathToEnvironment(executor.getEnvironment(), classpath.toString())); executor.setCommandline(commandLine); try { executor.execute(); @@ -937,6 +939,12 @@ public class Groovyc extends MatchingTas } } + private String[] addClasspathToEnvironment(String[] oldEnvironment, String classpath) { + List<String> newEnvironmentList = (oldEnvironment == null) ? new ArrayList<String>() : Arrays.asList(oldEnvironment); + newEnvironmentList.add("classpath=" + classpath); + return newEnvironmentList.toArray(new String[newEnvironmentList.size()]); + } + protected CompilationUnit makeCompileUnit() { Map<String, Object> options = configuration.getJointCompilationOptions(); if (options != null) {
  49. Download patch src/main/groovy/transform/Canonical.java

    --- 2.0.0~beta2-1/src/main/groovy/transform/Canonical.java 2011-12-21 14:42:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/src/main/groovy/transform/Canonical.java 2012-02-09 20:55:10.000000000 +0000 @@ -77,6 +77,9 @@ import java.lang.annotation.Target; * If an "underscore" version of the respective method already exists, then no default implementation is provided. * </ul> * <p/> + * If you want similar functionality to what this annotation provides but also require immutability, see the + * {@code @Immutable} annotation. + * <p/> * Limitations: * <ul> * <li> @@ -88,6 +91,7 @@ import java.lang.annotation.Target; * @see groovy.transform.EqualsAndHashCode * @see groovy.transform.ToString * @see groovy.transform.TupleConstructor + * @see groovy.transform.Immutable * @since 1.8.0 */ @java.lang.annotation.Documented
  50. Download patch src/main/groovy/swing/impl/ComponentFacade.java

    --- 2.0.0~beta2-1/src/main/groovy/swing/impl/ComponentFacade.java 1970-01-01 00:00:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/src/main/groovy/swing/impl/ComponentFacade.java 2012-02-09 20:55:10.000000000 +0000 @@ -0,0 +1,31 @@ +/* + * Copyright 2003-2007 the original author or authors. + * + * Licensed 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 groovy.swing.impl; + +import java.awt.Component; + +/** + * A facade to an object which contains a component. + * + * @author <a href="mailto:james@coredevelopers.net">James Strachan</a> + * @version $Revision$ + * @deprecated This interface is no longer used internally and there + * exists no equivalent functionality + * Superceded by FactoryBuilderSupport handling. + */ +public interface ComponentFacade { + Component getComponent(); +}
  51. Download patch .classpath

    --- 2.0.0~beta2-1/.classpath 2011-12-21 14:42:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/.classpath 2012-02-09 20:55:10.000000000 +0000 @@ -1,13 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> <classpath> <classpathentry kind="src" path="src/main"/> - <classpathentry excluding="groovy/bugs/Groovy1759_Bug.groovy|groovy/MultiCatchTest.groovy|org/codehaus/groovy/benchmarks/alioth/|groovy/PropertyTest.groovy|groovy/annotations/package-info.groovy" kind="src" output="bin" path="src/test"/> - <classpathentry kind="src" path="subprojects/groovy-bsf/src/main/java"/> - <classpathentry kind="src" output="bin" path="subprojects/groovy-bsf/src/test/java"/> - <classpathentry kind="src" path="subprojects/groovy-jmx/src/main/groovy"/> - <classpathentry kind="src" path="subprojects/groovy-jmx/src/main/java"/> - <classpathentry kind="src" output="bin" path="subprojects/groovy-jmx/src/test/groovy"/> - <classpathentry kind="src" output="bin" path="subprojects/groovy-jmx/src/test/java"/> + <classpathentry kind="src" output="target/test-classes" path="src/test"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.4"/> <classpathentry kind="var" path="M2_REPO/org/apache/ant/ant/1.8.1/ant-1.8.1.jar"/> <classpathentry kind="var" path="M2_REPO/javax/servlet/jsp-api/2.0/jsp-api-2.0.jar"/> @@ -16,7 +10,7 @@ <classpathentry kind="var" path="M2_REPO/bsf/bsf/2.4.0/bsf-2.4.0.jar"/> <classpathentry kind="var" path="M2_REPO/antlr/antlr/2.7.6/antlr-2.7.6.jar"/> <classpathentry kind="var" path="M2_REPO/jmock/jmock-cglib/1.2.0/jmock-cglib-1.2.0.jar"/> - <classpathentry kind="var" path="M2_REPO/org/apache/ant/ant-junit/1.8.2/ant-junit-1.8.2.jar"/> + <classpathentry kind="var" path="M2_REPO/org/apache/ant/ant-junit/1.8.1/ant-junit-1.8.1.jar"/> <classpathentry kind="var" path="M2_REPO/commons-cli/commons-cli/1.0/commons-cli-1.0.jar"/> <classpathentry kind="var" path="M2_REPO/hsqldb/hsqldb/1.8.0.7/hsqldb-1.8.0.7.jar"/> <classpathentry kind="var" path="M2_REPO/com/thoughtworks/xstream/xstream/1.3.1/xstream-1.3.1.jar"/> @@ -28,20 +22,12 @@ <classpathentry kind="var" path="M2_REPO/asm/asm-util/3.2/asm-util-3.2.jar"/> <classpathentry kind="var" path="M2_REPO/org/apache/ant/ant-launcher/1.8.1/ant-launcher-1.8.1.jar"/> <classpathentry kind="lib" path="security/GroovyJarTest.jar"/> + <classpathentry kind="var" path="M2_REPO/log4j/log4j/1.2.9/log4j-1.2.9.jar"/> <classpathentry kind="var" path="M2_REPO/jline/jline/0.9.94/jline-0.9.94.jar"/> + <classpathentry kind="var" path="M2_REPO"/> <classpathentry kind="var" path="M2_REPO/org/apache/ant/ant-testutil/1.8.2/ant-testutil-1.8.2.jar"/> <classpathentry kind="var" path="M2_REPO/junit/junit/4.8.2/junit-4.8.2.jar"/> <classpathentry kind="var" path="M2_REPO/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar"/> <classpathentry kind="var" path="M2_REPO/xmlunit/xmlunit/1.3/xmlunit-1.3.jar"/> - <classpathentry kind="var" path="M2_REPO/org/apache/ivy/ivy/2.2.0/ivy-2.2.0.jar"/> - <classpathentry kind="var" path="M2_REPO/org/fusesource/jansi/jansi/1.2.1/jansi-1.2.1.jar"/> - <classpathentry kind="var" path="M2_REPO/ch/qos/logback/logback-classic/0.9.21/logback-classic-0.9.21.jar"/> - <classpathentry kind="var" path="M2_REPO/org/objectweb/asm/com.springsource.org.objectweb.asm.commons/2.2.3/com.springsource.org.objectweb.asm.commons-2.2.3.jar"/> - <classpathentry kind="var" path="M2_REPO/com/thoughtworks/qdox/qdox/1.8/qdox-1.8.jar"/> - <classpathentry kind="var" path="M2_REPO/org/slf4j/slf4j-log4j12/1.6.1/slf4j-log4j12-1.6.1.jar"/> - <classpathentry kind="var" path="M2_REPO/ch/qos/logback/logback-core/0.9.21/logback-core-0.9.21.jar"/> - <classpathentry kind="var" path="M2_REPO/log4j/log4j/1.2.16/log4j-1.2.16.jar"/> - <classpathentry kind="var" path="M2_REPO/org/slf4j/slf4j-api/1.6.1/slf4j-api-1.6.1.jar"/> - <classpathentry kind="lib" path="target/classes"/> - <classpathentry kind="output" path="bin"/> + <classpathentry kind="output" path="target/classes"/> </classpath>
  52. Download patch src/main/groovy/inspect/TextNode.groovy

    --- 2.0.0~beta2-1/src/main/groovy/inspect/TextNode.groovy 2011-12-21 14:42:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/src/main/groovy/inspect/TextNode.groovy 2012-02-09 20:55:10.000000000 +0000 @@ -21,6 +21,8 @@ */ package groovy.inspect +import groovy.inspect.swingui.AstBrowserNodeMaker + class TextNode { Object userObject List<List<String>> properties
  53. Download patch src/main/groovy/inspect/swingui/AstBrowser.groovy

    --- 2.0.0~beta2-1/src/main/groovy/inspect/swingui/AstBrowser.groovy 2011-12-21 14:42:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/src/main/groovy/inspect/swingui/AstBrowser.groovy 2012-02-09 20:55:10.000000000 +0000 @@ -33,12 +33,7 @@ import javax.swing.tree.TreeNode import javax.swing.tree.TreeSelectionModel import org.codehaus.groovy.control.Phases import static java.awt.GridBagConstraints.* -import org.codehaus.groovy.ast.ClassNode -import groovy.lang.GroovyClassLoader.ClassCollector -import org.codehaus.groovy.control.CompilationUnit -import org.codehaus.groovy.control.SourceUnit -import org.objectweb.asm.ClassReader -import org.objectweb.asm.util.TraceClassVisitor +import java.awt.Component /** * This object is a GUI for looking at the AST that Groovy generates. @@ -53,15 +48,15 @@ import org.objectweb.asm.util.TraceClass public class AstBrowser { - private inputArea, rootElement, decompiledSource, jTree, propertyTable, splitterPane, mainSplitter, bytecodeView + private inputArea, rootElement, decompiledSource, jTree, propertyTable, splitterPane, mainSplitter boolean showScriptFreeForm, showScriptClass, showTreeView - GeneratedBytecodeAwareGroovyClassLoader classLoader + GroovyClassLoader classLoader def prefs = new AstBrowserUiPreferences() AstBrowser(inputArea, rootElement, classLoader) { this.inputArea = inputArea this.rootElement = rootElement - this.classLoader = new GeneratedBytecodeAwareGroovyClassLoader(classLoader) + this.classLoader = classLoader } def swing, frame @@ -167,10 +162,7 @@ public class AstBrowser { mainSplitter = splitPane( orientation: JSplitPane.VERTICAL_SPLIT, topComponent: splitterPane, - bottomComponent: tabbedPane { - widget(decompiledSource = new groovy.ui.ConsoleTextEditor(editable: false, showLineNumbers: false), title:'Source') - widget(bytecodeView = new groovy.ui.ConsoleTextEditor(editable: false, showLineNumbers: false), title:'Bytecode') - }, + bottomComponent: decompiledSource = new groovy.ui.ConsoleTextEditor(editable: false, showLineNumbers: false), constraints: gbc(gridx: 0, gridy: 2, gridwidth: 3, gridheight: 1, weightx: 1.0, weighty: 1.0, anchor: NORTHWEST, fill: BOTH, insets: [2, 2, 2, 2])) { } } @@ -208,23 +200,6 @@ public class AstBrowser { inputArea.moveCaretPosition(inputArea.getCaretPosition()) } } - - boolean classNode = node.properties.any { it[0]=='class' && it[1] in['class org.codehaus.groovy.ast.ClassNode', 'class org.codehaus.groovy.ast.InnerClassNode'] } - if (classNode) { - def className = node.properties.find { it[0]=='name' }[1] - def bytecode = classLoader.getBytecode(className) - if (bytecode) { - def writer = new StringWriter() - def visitor = new TraceClassVisitor(new PrintWriter(writer)); - def reader = new ClassReader(bytecode) - reader.accept(visitor, 0) - bytecodeView.textEditor.text = writer.toString() - } else { - bytecodeView.textEditor.text = '// No bytecode available at this phase' - } - } else { - bytecodeView.textEditor.text = '' - } } propertyTable.model.fireTableDataChanged() } as TreeSelectionListener) @@ -337,7 +312,6 @@ public class AstBrowser { try { def nodeMaker = new SwingTreeNodeMaker() def adapter = new ScriptToTreeNodeAdapter(classLoader, showScriptFreeForm, showScriptClass, nodeMaker) - classLoader.clearBytecodeTable() def result = adapter.compile(script, compilePhase) swing.doLater { model.setRoot(result) @@ -482,43 +456,3 @@ class SwingTreeNodeMaker implements AstB new TreeNodeWithProperties(userObject, properties) } } - -class BytecodeCollector extends ClassCollector { - - Map<String, byte[]> bytecode - - BytecodeCollector(ClassCollector delegate, Map<String,byte[]> bytecode) { - super(delegate.cl, delegate.unit, delegate.su) - this.bytecode = bytecode - } - - @Override - protected Class createClass(byte[] code, ClassNode classNode) { - bytecode[classNode.name] = code - return super.createClass(code, classNode) - } - -} - -class GeneratedBytecodeAwareGroovyClassLoader extends GroovyClassLoader { - - private final Map<String, byte[]> bytecode = new HashMap<String, byte[]>(); - - GeneratedBytecodeAwareGroovyClassLoader(final GroovyClassLoader parent) { - super(parent) - } - - @Override - protected ClassCollector createCollector(CompilationUnit unit, SourceUnit su) { - def collector = super.createCollector(unit, su) - new BytecodeCollector(collector, bytecode) - } - - public void clearBytecodeTable() { - bytecode.clear() - } - - public byte[] getBytecode(final String className) { - bytecode[className] - } -} \ No newline at end of file
  54. Download patch benchmark/bench.groovy

    --- 2.0.0~beta2-1/benchmark/bench.groovy 2011-12-21 14:42:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/benchmark/bench.groovy 2012-02-09 20:55:10.000000000 +0000 @@ -4,8 +4,8 @@ import org.codehaus.groovy.tools.FileSys def benchData = [ hello : [1], ackermann : [5, 6, 7, 8], - ary : [10,100,1000,1000000], -/* binarytrees : [1], +/* ary : [1], + binarytrees : [1], chameneos : [1], echo : [1], except : [1], @@ -58,7 +58,7 @@ println "Groovy benchmarking test" showJavaVersion() println "Groovy lib: $GROOVY_LIB" horizontalBreak() -def executeBench= { bench, input -> +benchData.each { bench, input -> println "Benchmark $bench" [".java", ".groovy"].each { ending -> println("\t$bench$ending :") @@ -73,12 +73,6 @@ def executeBench= { bench, input -> } horizontalBreak() } -if (args.length==0) { - benchData.each(executeBench) -} else { - executeBench(args[0],benchData[args[0]]) -} - void horizontalBreak() { println "-" * 80
  55. Download patch src/main/groovy/swing/impl/ContainerFacade.java

    --- 2.0.0~beta2-1/src/main/groovy/swing/impl/ContainerFacade.java 1970-01-01 00:00:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/src/main/groovy/swing/impl/ContainerFacade.java 2012-02-09 20:55:10.000000000 +0000 @@ -0,0 +1,31 @@ +/* + * Copyright 2003-2007 the original author or authors. + * + * Licensed 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 groovy.swing.impl; + +import java.awt.Component; + +/** + * A facade to an object to which components can be added. + * + * @author <a href="mailto:james@coredevelopers.net">James Strachan</a> + * @version $Revision$ + * @deprecated This interface is no longer used internally and there + * exists no equivalent functionality + * Superceded by FactoryBuilderSupport handling. + */ +public interface ContainerFacade { + void addComponent(Component component); +}
  56. Download patch src/main/groovy/inspect/swingui/ScriptToTreeNodeAdapter.groovy

    --- 2.0.0~beta2-1/src/main/groovy/inspect/swingui/ScriptToTreeNodeAdapter.groovy 2011-12-21 14:42:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/src/main/groovy/inspect/swingui/ScriptToTreeNodeAdapter.groovy 2012-02-09 20:55:10.000000000 +0000 @@ -94,7 +94,6 @@ class ScriptToTreeNodeAdapter { def scriptName = "script" + System.currentTimeMillis() + ".groovy" GroovyCodeSource codeSource = new GroovyCodeSource(script, scriptName, "/groovy/script") CompilationUnit cu = new CompilationUnit(CompilerConfiguration.DEFAULT, codeSource.codeSource, classLoader) - cu.setClassgenCallback(classLoader.createCollector(cu, null)) TreeNodeBuildingNodeOperation operation = new TreeNodeBuildingNodeOperation(this, showScriptFreeForm, showScriptClass) cu.addPhaseOperation(operation, compilePhase) cu.addSource(codeSource.getName(), script);
  57. Download patch gradle/wrapper/gradle-wrapper.properties

    --- 2.0.0~beta2-1/gradle/wrapper/gradle-wrapper.properties 2011-12-21 14:42:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/gradle/wrapper/gradle-wrapper.properties 2012-02-09 20:55:10.000000000 +0000 @@ -1,4 +1,4 @@ -#Mon May 02 20:57:32 EST 2011 +#Tue Jan 04 21:15:37 EST 2011 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME Binary files 2.0.0~beta2-1/.gradle/1.0-milestone-6/fileHashes/cache.bin and 2.0.0~beta2+isreally1.8.6-0ubuntu1/.gradle/1.0-milestone-6/fileHashes/cache.bin differ
  58. Download patch gradle/docs.gradle

    --- 2.0.0~beta2-1/gradle/docs.gradle 2011-12-21 14:42:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/gradle/docs.gradle 2012-02-09 20:55:10.000000000 +0000 @@ -1,72 +1,71 @@ -task doc(dependsOn: [javadoc, groovydoc, 'docGDK']) { - footer = "Copyright &amp;copy; 2003-2011 The Codehaus. All rights reserved." - title = "Groovy ${groovyVersion}" -} - -javadoc { - maxMemory = javaDoc_mx - project.configure(options) { - windowTitle = doc.title - docTitle = doc.title - encoding = "ISO-8859-1" - author = true - version = true - overview = "src/main/overview.html" - footer = doc.footer - source = "1.5" - links("http://java.sun.com/javase/6/docs/api", "http://www.dpml.net/api/ant/1.7.0", - "http://commons.apache.org/cli/api-release", "http://junit.sourceforge.net/junit3.8.1/javadoc", - "http://java.sun.com/j2ee/1.4/docs/api", "http://www.antlr2.org/javadoc") - } -} - -groovydoc { - dependsOn classes - groovyClasspath = configurations.compile - use = true - windowtitle = doc.title - doctitle = doc.title - header = doc.title - footer = doc.footer - overview = file("src/main/overview.html") - includePrivate = false - link "http://java.sun.com/j2ee/1.4/docs/api", "javax.servlet.", "javax.management." - link "http://java.sun.com/javase/6/docs/api", "java.", "org.xml.", "javax.", "org.xml." - link "http://www.dpml.net/api/ant/1.7.0", "org.apache.ant.", "org.apache.tools.ant." - link "http://junit.sourceforge.net/junit3.8.1/javadoc", "org.junit.", "junit." - link "http://www.antlr2.org/javadoc", "antlr." - link "http://commons.apache.org/cli/api-release", "org.apache.commons.cli." -} - -task docGDK { - destinationDir = "$buildDir/html/groovy-jdk" - inputs.files sourceSets.tools.runtimeClasspath - outputs.dir destinationDir - doFirst {task -> - ant { - java(classname: "org.codehaus.groovy.tools.DocGenerator", fork: "yes", failonerror: "true", - classpath: sourceSets.tools.runtimeClasspath.asPath, - errorproperty: 'edr', - outputproperty: 'odr') { - arg(value: "org.codehaus.groovy.runtime.DefaultGroovyMethods") - arg(value: "org.codehaus.groovy.runtime.SqlGroovyMethods") - arg(value: "org.codehaus.groovy.runtime.SwingGroovyMethods") - arg(value: "org.codehaus.groovy.runtime.XmlGroovyMethods") - arg(value: "org.codehaus.groovy.runtime.EncodingGroovyMethods") - arg(value: "org.codehaus.groovy.runtime.DateGroovyMethods") - arg(value: "org.codehaus.groovy.runtime.ProcessGroovyMethods") - arg(value: "org.codehaus.groovy.runtime.DefaultGroovyStaticMethods") - arg(value: "org.codehaus.groovy.vmplugin.v5.PluginDefaultGroovyMethods") - arg(value: "org.codehaus.groovy.vmplugin.v6.PluginDefaultGroovyMethods") - arg(value: "org.codehaus.groovy.vmplugin.v6.PluginStaticGroovyMethods") - } -// println "Out: " + ant.properties.edr -// println "Err: " + ant.properties.odr - } - copy { - into task.destinationDir - from "src/tools/org/codehaus/groovy/tools/groovy.ico", "src/tools/org/codehaus/groovy/tools/stylesheet.css" - } - } -} - +task doc(dependsOn: [javadoc, groovydoc, 'docGDK']) { + footer = "Copyright &amp;copy; 2003-2012 The Codehaus. All rights reserved." + title = "Groovy ${groovyVersion}" +} + +javadoc { + maxMemory = javaDoc_mx + project.configure(options) { + windowTitle = doc.title + docTitle = doc.title + encoding = "ISO-8859-1" + author = true + version = true + overview = "src/main/overview.html" + footer = doc.footer + source = "1.5" + links("http://docs.oracle.com/javase/6/docs/api/", "http://evgeny-goldin.org/javadoc/ant/api/", + "http://commons.apache.org/cli/api-release", "http://kentbeck.github.com/junit/javadoc/latest/", + "http://docs.oracle.com/javaee/6/api/", "http://www.antlr2.org/javadoc") + } +} + +groovydoc { + dependsOn classes + groovyClasspath = configurations.compile + use = true + windowtitle = doc.title + doctitle = doc.title + header = doc.title + footer = doc.footer + overview = file("src/main/overview.html") + includePrivate = false + link "http://docs.oracle.com/javaee/6/api/", "javax.servlet.", "javax.management." + link "http://docs.oracle.com/javase/6/docs/api/", "java.", "org.xml.", "javax.", "org.w3c." + link "http://evgeny-goldin.org/javadoc/ant/api/", "org.apache.ant.", "org.apache.tools.ant." + link "http://kentbeck.github.com/junit/javadoc/latest/", "org.junit.", "junit." + link "http://www.antlr2.org/javadoc", "antlr." + link "http://commons.apache.org/cli/api-release", "org.apache.commons.cli." +} + +task docGDK { + destinationDir = "$buildDir/html/groovy-jdk" + inputs.files sourceSets.tools.runtimeClasspath + outputs.dir destinationDir + doFirst {task -> + ant { + java(classname: "org.codehaus.groovy.tools.DocGenerator", fork: "yes", failonerror: "true", + classpath: sourceSets.tools.runtimeClasspath.asPath, + errorproperty: 'edr', + outputproperty: 'odr') { + arg(value: "org.codehaus.groovy.runtime.DefaultGroovyMethods") + arg(value: "org.codehaus.groovy.runtime.SqlGroovyMethods") + arg(value: "org.codehaus.groovy.runtime.SwingGroovyMethods") + arg(value: "org.codehaus.groovy.runtime.XmlGroovyMethods") + arg(value: "org.codehaus.groovy.runtime.EncodingGroovyMethods") + arg(value: "org.codehaus.groovy.runtime.DateGroovyMethods") + arg(value: "org.codehaus.groovy.runtime.ProcessGroovyMethods") + arg(value: "org.codehaus.groovy.runtime.DefaultGroovyStaticMethods") + arg(value: "org.codehaus.groovy.vmplugin.v5.PluginDefaultGroovyMethods") + arg(value: "org.codehaus.groovy.vmplugin.v6.PluginDefaultGroovyMethods") + arg(value: "org.codehaus.groovy.vmplugin.v6.PluginStaticGroovyMethods") + } +// println "Out: " + ant.properties.edr +// println "Err: " + ant.properties.odr + } + copy { + into task.destinationDir + from "src/tools/org/codehaus/groovy/tools/groovy.ico", "src/tools/org/codehaus/groovy/tools/stylesheet.css" + } + } +}
  59. Download patch debian/watch

    --- 2.0.0~beta2-1/debian/watch 2011-10-15 02:55:46.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/debian/watch 2012-03-15 13:06:56.000000000 +0000 @@ -1,3 +1,2 @@ version=3 -opts="uversionmangle=s/-beta-/~beta/" \ -http://dist.groovy.codehaus.org/distributions/ groovy-src-(.*).zip debian debian/orig-tar.sh +http://dist.groovy.codehaus.org/distributions/ groovy-src-(.*1\.8.*).zip debian debian/orig-tar.sh
  60. Download patch src/main/groovy/xml/streamingmarkupsupport/StreamingMarkupWriter.java

    --- 2.0.0~beta2-1/src/main/groovy/xml/streamingmarkupsupport/StreamingMarkupWriter.java 2011-12-21 14:42:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/src/main/groovy/xml/streamingmarkupsupport/StreamingMarkupWriter.java 2012-02-09 20:55:10.000000000 +0000 @@ -76,7 +76,7 @@ public class StreamingMarkupWriter exten StreamingMarkupWriter.this.writingAttribute = writingAttribute; } - public Writer escaped() { + public Writer excaped() { return escapedWriter; }
  61. Download patch src/main/groovy/servlet/TemplateServlet.java
  62. Download patch .gradle/1.0-milestone-6/fileHashes/cache.properties

    --- 2.0.0~beta2-1/.gradle/1.0-milestone-6/fileHashes/cache.properties 1970-01-01 00:00:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/.gradle/1.0-milestone-6/fileHashes/cache.properties 2012-01-27 14:22:02.000000000 +0000 @@ -0,0 +1 @@ +#Fri Jan 27 09:52:02 CET 2012
  63. Download patch src/main/groovy/xml/dom/DOMCategory.java
  64. Download patch src/main/groovy/grape/GrapeIvy.groovy

    --- 2.0.0~beta2-1/src/main/groovy/grape/GrapeIvy.groovy 2011-12-21 14:42:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/src/main/groovy/grape/GrapeIvy.groovy 2012-02-09 20:55:10.000000000 +0000 @@ -194,7 +194,7 @@ class GrapeIvy implements GrapeEngine { public IvyGrabRecord createGrabRecord(Map deps) { // parse the actual dependency arguments String module = deps.module ?: deps.artifactId ?: deps.artifact - if (!module) { + if (!module) { throw new RuntimeException('grab requires at least a module: or artifactId: or artifact: argument') }
  65. Download patch pom.xml

    --- 2.0.0~beta2-1/pom.xml 2011-12-23 19:01:28.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/pom.xml 2012-02-09 22:26:50.000000000 +0000 @@ -8,7 +8,7 @@ <name>Groovy</name> <packaging>jar</packaging> - <version>2.0.0-beta-2</version> + <version>1.8.6</version> <description> Groovy: A powerful, dynamic language for the JVM @@ -44,6 +44,14 @@ </mailingList> </mailingLists> + <licenses> + <license> + <name>The Apache Software License, Version 2.0</name> + <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> + <distribution>repo</distribution> + </license> + </licenses> + <distributionManagement> <repository> <id>codehaus.org</id> @@ -377,6 +385,15 @@ <role>Developer</role> </roles> </developer> + <developer> + <name>Cédric Champeau</name> + <id>melix</id> + <email>cedric.champeau@gmail.com</email> + <organization></organization> + <roles> + <role>Developer</role> + </roles> + </developer> </developers> <contributors> @@ -557,15 +574,23 @@ <email></email> </contributor> <contributor> - <name>Cédric Champeau</name> + <name>David Durham</name> <email></email> </contributor> <contributor> - <name>David Durham</name> + <name>Daniel Henrique Alves Lima</name> <email></email> </contributor> <contributor> - <name>Daniel Henrique Alves Lima</name> + <name>John Wagenleitner</name> + <email></email> + </contributor> + <contributor> + <name>Colin Harrington</name> + <email></email> + </contributor> + <contributor> + <name>Brian Alexander</name> <email></email> </contributor> </contributors> @@ -582,7 +607,7 @@ <dependency> <groupId>asm</groupId> <artifactId>asm</artifactId> - <version>3.3.1</version> + <version>3.2</version> <scope>compile</scope> </dependency> <dependency> @@ -659,25 +684,25 @@ <dependency> <groupId>asm</groupId> <artifactId>asm-commons</artifactId> - <version>3.3.1</version> + <version>3.2</version> <scope>compile</scope> </dependency> <dependency> <groupId>asm</groupId> <artifactId>asm-util</artifactId> - <version>3.3.1</version> + <version>3.2</version> <scope>compile</scope> </dependency> <dependency> <groupId>asm</groupId> <artifactId>asm-analysis</artifactId> - <version>3.3.1</version> + <version>3.2</version> <scope>compile</scope> </dependency> <dependency> <groupId>asm</groupId> <artifactId>asm-tree</artifactId> - <version>3.3.1</version> + <version>3.2</version> <scope>compile</scope> </dependency> @@ -856,6 +881,14 @@ <version>1.8.2</version> <scope>test</scope> </dependency> +<!-- + <dependency> + <groupId>commons-logging</groupId> + <artifactId>commons-logging</artifactId> + <version>1.1.1</version> + <scope>test</scope> + </dependency> +--> </dependencies> <!--
  66. Download patch NOTICE.txt

    --- 2.0.0~beta2-1/NOTICE.txt 2011-12-21 14:42:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/NOTICE.txt 2012-02-09 20:55:10.000000000 +0000 @@ -11,4 +11,3 @@ This product includes software developed by The Groovy community (http://groovy.codehaus.org/). -
  67. Download patch src/main/groovy/swing/impl/TableLayout.java

    --- 2.0.0~beta2-1/src/main/groovy/swing/impl/TableLayout.java 2011-12-21 14:42:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/src/main/groovy/swing/impl/TableLayout.java 2012-02-09 20:55:10.000000000 +0000 @@ -15,6 +15,7 @@ */ package groovy.swing.impl; +import java.awt.Component; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.Insets; @@ -35,6 +36,14 @@ public class TableLayout extends JPanel public TableLayout() { setLayout(new GridBagLayout()); } + + /** + * @deprecated Simply returns this + * @return this + */ + public Component getComponent() { + return this; + } public int getCellpadding() { return cellpadding;
  68. Download patch src/main/groovy/lang/GroovyCodeSource.java

    --- 2.0.0~beta2-1/src/main/groovy/lang/GroovyCodeSource.java 2011-12-21 14:42:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/src/main/groovy/lang/GroovyCodeSource.java 2012-02-09 20:55:10.000000000 +0000 @@ -95,6 +95,31 @@ public class GroovyCodeSource { } } + /** + * Construct a GroovyCodeSource for an inputStream of groovyCode that has an + * unknown provenance -- meaning it didn't come from a File or a URL (e.g.&nbsp;a String). + * The supplied codeBase will be used to construct a File URL that should match up + * with a java Policy entry that determines the grants to be associated with the + * class that will be built from the InputStream. + * <p/> + * The permission groovy.security.GroovyCodeSourcePermission will be used to determine if the given codeBase + * may be specified. That is, the current Policy set must have a GroovyCodeSourcePermission that implies + * the codeBase, or an exception will be thrown. This is to prevent callers from hijacking + * existing codeBase policy entries unless explicitly authorized by the user. + * + * @deprecated Prefer using methods taking a Reader rather than an InputStream to avoid wrong encoding issues. + */ + @Deprecated + public GroovyCodeSource(InputStream inputStream, String name, String codeBase) { + this.name = name; + this.codeSource = createCodeSource(codeBase); + try { + this.scriptText = DefaultGroovyMethods.getText(inputStream); + } catch (IOException e) { + throw new RuntimeException("Impossible to read the text content from that input stream, for script: " + name + " with codeBase: " + codeBase, e); + } + } + public GroovyCodeSource(final File infile, final String encoding) throws IOException { // avoid files which confuse us like ones with .. in path final File file = new File(infile.getCanonicalPath()); @@ -176,6 +201,34 @@ public class GroovyCodeSource { return codeSource; } + /** + * @deprecated Prefer using methods taking a Reader rather than an InputStream to avoid wrong encoding issues. + */ + @Deprecated + public InputStream getInputStream() { + IOException ioe; + if (file == null) { + try { + return new ByteArrayInputStream(scriptText.getBytes("UTF-8")); + } catch (UnsupportedEncodingException e) { + ioe = e; + } + } else { + try { + return new FileInputStream(file); + } catch (FileNotFoundException e) { + ioe = e; + } + } + + String errorMsg = "Impossible to read the bytes from the associated script: " + scriptText + " with name: " + name; + if (ioe != null) { + throw new RuntimeException(errorMsg, ioe); + } else { + throw new RuntimeException(errorMsg); + } + } + public String getScriptText() { return scriptText; }
  69. Download patch src/main/groovy/util/GroovyScriptEngine.java

    --- 2.0.0~beta2-1/src/main/groovy/util/GroovyScriptEngine.java 2011-12-21 14:42:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/src/main/groovy/util/GroovyScriptEngine.java 2012-02-09 20:55:10.000000000 +0000 @@ -16,6 +16,7 @@ package groovy.util; import groovy.lang.Binding; +import groovy.lang.DeprecationException; import groovy.lang.GroovyClassLoader; import groovy.lang.GroovyCodeSource; import groovy.lang.GroovyResourceLoader; @@ -436,6 +437,18 @@ public class GroovyScriptEngine implemen } /** + * @param parentClassLoader ClassLoader to be used as the parent ClassLoader + * for scripts executed by the engine + * @deprecated + */ + public void setParentClassLoader(ClassLoader parentClassLoader) { + throw new DeprecationException( + "The method GroovyScriptEngine#setParentClassLoader(ClassLoader) " + + "is no longer supported. Specify a parentLoader in the constructor instead." + ); + } + + /** * Get the class of the scriptName in question, so that you can instantiate * Groovy objects with caching and reloading. * @@ -466,6 +479,25 @@ public class GroovyScriptEngine implemen } /** + * Get the class of the scriptName in question, so that you can instantiate + * Groovy objects with caching and reloading. + * + * @param scriptName resource name pointing to the script + * @param parentClassLoader the class loader to use when loading the script + * @return the loaded scriptName as a compiled class + * @throws ResourceException if there is a problem accessing the script + * @throws ScriptException if there is a problem parsing the script + * @deprecated + */ + public Class loadScriptByName(String scriptName, ClassLoader parentClassLoader) + throws ResourceException, ScriptException { + throw new DeprecationException( + "The method GroovyScriptEngine#loadScriptByName(String,ClassLoader) " + + "is no longer supported. Use GroovyScriptEngine#loadScriptByName(String) instead." + ); + } + + /** * Run a script identified by name with a single argument. * * @param scriptName name of the script to run
  70. Download patch src/main/groovy/transform/CompilationUnitAware.java

    --- 2.0.0~beta2-1/src/main/groovy/transform/CompilationUnitAware.java 2011-12-21 14:42:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/src/main/groovy/transform/CompilationUnitAware.java 1970-01-01 00:00:00.000000000 +0000 @@ -1,18 +0,0 @@ -package groovy.transform; -/** - * Created by IntelliJ IDEA. - * User: cedric - * Date: 06/10/11 - * Time: 15:02 - */ - -import org.codehaus.groovy.control.CompilationUnit; - -/** - * This interface is for AST transformations which must be aware of the compilation unit where they are applied. - * - * @author Cedric Champeau - */ -public interface CompilationUnitAware { - void setCompilationUnit(CompilationUnit unit); -}
  71. Download patch src/main/groovy/lang/Immutable.java

    --- 2.0.0~beta2-1/src/main/groovy/lang/Immutable.java 1970-01-01 00:00:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/src/main/groovy/lang/Immutable.java 2012-02-09 20:55:10.000000000 +0000 @@ -0,0 +1,126 @@ +/* + * Copyright 2008 the original author or authors. + * + * Licensed 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 groovy.lang; + +import org.codehaus.groovy.transform.GroovyASTTransformationClass; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +/** + * Note: This class is Deprecated, please use groovy.transform.Immutable. + * <p/> + * Class annotation used to assist in the creation of immutable classes. + * <p/> + * It allows you to write classes in this shortened form: + * <pre> + * {@code @Immutable} class Customer { + * String first, last + * int age + * Date since + * Collection favItems + * } + * def d = new Date() + * def c1 = new Customer(first:'Tom', last:'Jones', age:21, since:d, favItems:['Books', 'Games']) + * def c2 = new Customer('Tom', 'Jones', 21, d, ['Books', 'Games']) + * assert c1 == c2 + * </pre> + * The {@code @Immutable} annotation instructs the compiler to execute an + * AST transformation which adds the necessary getters, constructors, + * equals, hashCode and other helper methods that are typically written + * when creating immutable classes with the defined properties. + * <p/> + * A class created in this way has the following characteristics: + * <ul> + * <li>The class is automatically made final. + * <li>Properties must be of an immutable type or a type with a strategy for handling non-immutable + * characteristics. Specifically, the type must be one of the primitive or wrapper types, Strings, enums, + * other {@code @Immutable} classes or known immutables (e.g. java.awt.Color, java.net.URI). Also handled are + * Cloneable classes, collections, maps and arrays, and other "effectively immutable" classes with + * special handling (e.g. java.util.Date). + * <li>Properties automatically have private, final backing fields with getters. + * Attempts to update the property will result in a {@code ReadOnlyPropertyException}. + * <li>A map-based constructor is provided which allows you to set properties by name. + * <li>A tuple-style constructor is provided which allows you to set properties in the same order as they are defined. + * <li>Default {@code equals}, {@code hashCode} and {@code toString} methods are provided based on the property values. + * Though not normally required, you may write your own implementations of these methods. For {@code equals} and {@code hashCode}, + * if you do write your own method, it is up to you to obey the general contract for {@code equals} methods and supply + * a corresponding matching {@code hashCode} method. + * If you do provide one of these methods explicitly, the default implementation will be made available in a private + * "underscore" variant which you can call. E.g., you could provide a (not very elegant) multi-line formatted + * {@code toString} method for {@code Customer} above as follows: + * <pre> + * String toString() { + * _toString().replaceAll(/\(/, '(\n\t').replaceAll(/\)/, '\n)').replaceAll(/, /, '\n\t') + * } + * </pre> + * If an "underscore" version of the respective method already exists, then no default implementation is provided. + * <li>{@code Date}s, {@code Cloneable}s and arrays are defensively copied on the way in (constructor) and out (getters). + * Arrays and {@code Cloneable} objects use the {@code clone} method. For your own classes, + * it is up to you to define this method and use deep cloning if appropriate. + * <li>{@code Collection}s and {@code Map}s are wrapped by immutable wrapper classes (but not deeply cloned!). + * Attempts to update them will result in an {@code UnsupportedOperationException}. + * <li>Fields that are enums or other {@code @Immutable} classes are allowed but for an + * otherwise possible mutable property type, an error is thrown. + * <li>You don't have to follow Groovy's normal property conventions, e.g. you can create an explicit private field and + * then you can write explicit get and set methods. Such an approach, isn't currently prohibited (to give you some + * wiggle room to get around these conventions) but any fields created in this way are deemed not to be part of the + * significant state of the object and aren't factored into the {@code equals} or {@code hashCode} methods. + * Similarly, you may use static properties (though usually this is discouraged) and these too will be ignored + * as far as significant state is concerned. If you do break standard conventions, you do so at your own risk and + * your objects may no longer be immutable. It is up to you to ensure that your objects remain immutable at least + * to the extent expected in other parts of your program! + * </ul> + * <p/> + * Immutable classes are particularly useful for functional and concurrent styles of programming + * and for use as key values within maps. + * <p/> + * Limitations: + * <ul> + * <li> + * As outlined above, Arrays and {@code Cloneable} objects use the {@code clone} method. For your own classes, + * it is up to you to define this method and use deep cloning if appropriate. + * </li> + * <li> + * As outlined above, {@code Collection}s and {@code Map}s are wrapped by immutable wrapper classes (but not deeply cloned!). + * </li> + * <li> + * Currently {@code BigInteger} and {@code BigDecimal} are deemed immutable but see: + * http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6348370 + * </li> + * <li> + * {@code java.awt.Color} is treated as "effectively immutable" but is not final so while not normally used with child + * classes, it isn't strictly immutable. Use at your own risk. + * </li> + * <li> + * {@code java.util.Date} is treated as "effectively immutable" but is not final so it isn't strictly immutable. + * Use at your own risk. + * </li> + * </ul> + * + * @author Paul King + * @deprecated use groovy.transform.Immutable + */ +@java.lang.annotation.Documented +@Retention(RetentionPolicy.RUNTIME) +@Target({ElementType.TYPE}) +@GroovyASTTransformationClass("org.codehaus.groovy.transform.ImmutableASTTransformation") +@Deprecated +public @interface Immutable { +}
  72. Download patch src/main/groovy/swing/factory/CellEditorFactory.groovy

    --- 2.0.0~beta2-1/src/main/groovy/swing/factory/CellEditorFactory.groovy 2011-12-21 14:42:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/src/main/groovy/swing/factory/CellEditorFactory.groovy 2012-02-09 20:55:10.000000000 +0000 @@ -18,6 +18,7 @@ package groovy.swing.factory import groovy.swing.impl.ClosureCellEditor import java.awt.Component +import javax.swing.JTree /** * @author Alexander Klein
  73. Download patch src/main/groovy/ui/InteractiveShell.java
  74. Download patch src/main/groovy/lang/GroovyShell.java

    --- 2.0.0~beta2-1/src/main/groovy/lang/GroovyShell.java 2011-12-21 14:42:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/src/main/groovy/lang/GroovyShell.java 2012-02-09 20:55:10.000000000 +0000 @@ -21,6 +21,7 @@ import groovy.security.GroovyCodeSourceP import org.codehaus.groovy.control.CompilationFailedException; import org.codehaus.groovy.control.CompilerConfiguration; import org.codehaus.groovy.runtime.InvokerHelper; +import org.codehaus.groovy.runtime.DefaultGroovyMethods; import org.codehaus.groovy.runtime.InvokerInvocationException; import java.io.*; @@ -31,6 +32,7 @@ import java.security.PrivilegedAction; import java.security.PrivilegedActionException; import java.security.PrivilegedExceptionAction; import java.util.List; +import java.util.Map; /** * Represents a groovy shell capable of running arbitrary groovy scripts @@ -44,6 +46,9 @@ public class GroovyShell extends GroovyO public static final String DEFAULT_CODE_BASE = "/groovy/shell"; + @Deprecated + public static final String[] EMPTY_ARGS = {}; + private Binding context; private int counter; private CompilerConfiguration config; @@ -93,6 +98,12 @@ public class GroovyShell extends GroovyO this.context = binding; this.config = config; } + + @Deprecated + public void initializeBinding() { + Map map = context.getVariables(); + if (map.get("shell")==null) map.put("shell",this); + } public void resetLoadedClasses() { loader.clearCache(); @@ -523,6 +534,32 @@ public class GroovyShell extends GroovyO return runScriptOrMainOrTestOrRunnable(scriptClass, args); } + /** + * Runs the given script with command line arguments + * + * @param in the stream reading the script + * @param fileName is the logical file name of the script (which is used to create the class name of the script) + * @param args the command line arguments to pass in + * + * @deprecated Prefer using methods taking a Reader rather than an InputStream to avoid wrong encoding issues. + */ + public Object run(final InputStream in, final String fileName, String[] args) throws CompilationFailedException { + GroovyCodeSource gcs = AccessController.doPrivileged(new PrivilegedAction<GroovyCodeSource>() { + public GroovyCodeSource run() { + try { + String scriptText = config.getSourceEncoding() != null ? + DefaultGroovyMethods.getText(in, config.getSourceEncoding()) : + DefaultGroovyMethods.getText(in); + return new GroovyCodeSource(scriptText, fileName, DEFAULT_CODE_BASE); + } catch (IOException e) { + throw new RuntimeException("Impossible to read the content of the input stream for file named: " + fileName, e); + } + } + }); + Class scriptClass = parseClass(gcs); + return runScriptOrMainOrTestOrRunnable(scriptClass, args); + } + public Object getVariable(String name) { return context.getVariables().get(name); } @@ -618,6 +655,37 @@ public class GroovyShell extends GroovyO } } + /** + * Evaluates some script against the current Binding and returns the result + * + * @param in the stream reading the script + * + * @deprecated Prefer using methods taking a Reader rather than an InputStream to avoid wrong encoding issues. + */ + public Object evaluate(InputStream in) throws CompilationFailedException { + return evaluate(in, generateScriptName()); + } + + /** + * Evaluates some script against the current Binding and returns the result + * + * @param in the stream reading the script + * @param fileName is the logical file name of the script (which is used to create the class name of the script) + * + * @deprecated Prefer using methods taking a Reader rather than an InputStream to avoid wrong encoding issues. + */ + public Object evaluate(InputStream in, String fileName) throws CompilationFailedException { + Script script = null; + try { + script = parse(in, fileName); + script.setBinding(context); + return script.run(); + } finally { + if (script != null) { + InvokerHelper.removeClass(script.getClass()); + } + } + } /** * Parses the given script and returns it ready to be run @@ -631,6 +699,31 @@ public class GroovyShell extends GroovyO } /** + * Parses the given script and returns it ready to be run + * + * @param in the stream reading the script + * @param fileName is the logical file name of the script (which is used to create the class name of the script) + * @return the parsed script which is ready to be run via @link Script.run() + * + * @deprecated Prefer using methods taking a Reader rather than an InputStream to avoid wrong encoding issues. + */ + public Script parse(final InputStream in, final String fileName) throws CompilationFailedException { + GroovyCodeSource gcs = AccessController.doPrivileged(new PrivilegedAction<GroovyCodeSource>() { + public GroovyCodeSource run() { + try { + String scriptText = config.getSourceEncoding() != null ? + DefaultGroovyMethods.getText(in, config.getSourceEncoding()) : + DefaultGroovyMethods.getText(in); + return new GroovyCodeSource(scriptText, fileName, DEFAULT_CODE_BASE); + } catch (IOException e) { + throw new RuntimeException("Impossible to read the content of the input stream for file named: " + fileName, e); + } + } + }); + return parse(gcs); + } + + /** * Parses the groovy code contained in codeSource and returns a java class. */ private Class parseClass(final GroovyCodeSource codeSource) throws CompilationFailedException { @@ -686,6 +779,17 @@ public class GroovyShell extends GroovyO return parse(in, generateScriptName()); } + /** + * Parses the given script and returns it ready to be run + * + * @param in the stream reading the script + * + * @deprecated Prefer using methods taking a Reader rather than an InputStream to avoid wrong encoding issues. + */ + public Script parse(InputStream in) throws CompilationFailedException { + return parse(in, generateScriptName()); + } + protected synchronized String generateScriptName() { return "Script" + (++counter) + ".groovy"; }
  75. Download patch src/main/groovy/grape/GrabAnnotationTransformation.java
  76. Download patch gradle.properties

    --- 2.0.0~beta2-1/gradle.properties 2011-12-23 19:01:22.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/gradle.properties 2012-02-09 22:26:44.000000000 +0000 @@ -1,6 +1,6 @@ -groovyVersion = 2.0.0-beta-2 +groovyVersion = 1.8.6 # bundle version format: major('.'minor('.'micro('.'qualifier)?)?)? (first 3 only digits) -groovyBundleVersion = 2.0.0.beta-2 +groovyBundleVersion = 1.8.6 # Many people have reported problems testing UberTestCaseGroovySourceSubPackages, others have no difficulties with the default # values ant junit task uses. The decision has been taken to provide the values to try and cause the least
  77. Download patch .gradle/1.0-milestone-6/outputFileStates/cache.properties

    --- 2.0.0~beta2-1/.gradle/1.0-milestone-6/outputFileStates/cache.properties 1970-01-01 00:00:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/.gradle/1.0-milestone-6/outputFileStates/cache.properties 2012-01-27 14:22:02.000000000 +0000 @@ -0,0 +1 @@ +#Fri Jan 27 09:52:01 CET 2012
  78. Download patch build.xml
  79. Download patch src/main/groovy/json/JsonLexer.java

    --- 2.0.0~beta2-1/src/main/groovy/json/JsonLexer.java 2011-12-21 14:42:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/src/main/groovy/json/JsonLexer.java 2012-02-09 20:55:10.000000000 +0000 @@ -105,12 +105,17 @@ public class JsonLexer implements Iterat StringBuilder currentContent = new StringBuilder("\""); // consume the first double quote starting the string reader.read(); + boolean isEscaped = false; for (;;) { int read = reader.read(); if (read == -1) return null; - currentContent.append((char) read); - if (currentContent.charAt(currentContent.length() - 1) == '"' && currentContent.charAt(currentContent.length() - 2) != '\\' && + isEscaped = (!isEscaped && currentContent.charAt(currentContent.length() - 1) == '\\'); + + char charRead = (char) read; + currentContent.append(charRead); + + if (charRead == '"' && !isEscaped && possibleTokenType.matching(currentContent.toString())) { token.setEndLine(reader.getLine()); token.setEndColumn(reader.getColumn()); @@ -248,4 +253,4 @@ public class JsonLexer implements Iterat throw new UnsupportedOperationException("The method remove() is not supported on this lexer."); } -} \ No newline at end of file +}
  80. Download patch config/maven/groovy-tools.pom

    --- 2.0.0~beta2-1/config/maven/groovy-tools.pom 2011-12-21 14:42:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/config/maven/groovy-tools.pom 2012-02-09 20:55:10.000000000 +0000 @@ -53,7 +53,7 @@ <dependency> <groupId>asm</groupId> <artifactId>asm</artifactId> - <version>3.3.1</version> + <version>3.2</version> </dependency> <!-- used for the JavaDoc generator script -->
  81. Download patch src/main/groovy/grape/GrapeEngine.java

    --- 2.0.0~beta2-1/src/main/groovy/grape/GrapeEngine.java 2011-08-30 16:20:16.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/src/main/groovy/grape/GrapeEngine.java 2012-02-06 15:05:22.000000000 +0000 @@ -1,5 +1,5 @@ /* - * Copyright 2008 the original author or authors. + * Copyright 2008-2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,9 +20,7 @@ import java.util.Map; import java.net.URI; /** - * User: Danno.Ferrin - * Date: Sep 30, 2008 - * Time: 9:30:46 PM + * @author Danno Ferrin */ public interface GrapeEngine {
  82. Download patch src/main/org/codehaus/groovy/antlr/groovy.g

    --- 2.0.0~beta2-1/src/main/org/codehaus/groovy/antlr/groovy.g 2011-12-21 14:42:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/src/main/org/codehaus/groovy/antlr/groovy.g 2012-02-09 20:55:10.000000000 +0000 @@ -226,7 +226,7 @@ tokens { STATIC_IMPORT; ENUM_DEF; ENUM_CONSTANT_DEF; FOR_EACH_CLAUSE; ANNOTATION_DEF; ANNOTATIONS; ANNOTATION; ANNOTATION_MEMBER_VALUE_PAIR; ANNOTATION_FIELD_DEF; ANNOTATION_ARRAY_INIT; TYPE_ARGUMENTS; TYPE_ARGUMENT; TYPE_PARAMETERS; TYPE_PARAMETER; WILDCARD_TYPE; - TYPE_UPPER_BOUNDS; TYPE_LOWER_BOUNDS; CLOSURE_LIST;MULTICATCH;MULTICATCH_TYPES; + TYPE_UPPER_BOUNDS; TYPE_LOWER_BOUNDS; CLOSURE_LIST; } { @@ -415,7 +415,7 @@ tokens { } private void dumpTree(AST ast, String offset) { - dump(ast, offset); + dump(ast, offset); for (AST node = ast.getFirstChild(); node != null; node = node.getNextSibling()) { dumpTree(node, offset+"\t"); } @@ -765,7 +765,6 @@ wildcardType typeArgumentsDiamond {Token first = LT(1);} : LT! GT! nls! - {#typeArgumentsDiamond = #(create(TYPE_ARGUMENTS, "TYPE_ARGUMENTS",first,LT(1)), #typeArgumentsDiamond);} ; // Type arguments to a class or interface type @@ -1664,26 +1663,6 @@ parameterDeclaration! } ; -multicatch_types -{Token first = LT(1);} - : - nls! - classOrInterfaceType[false] - ( - BOR! nls! classOrInterfaceType[false] - )* - - {#multicatch_types = #(create(MULTICATCH_TYPES, "MULTICATCH_TYPES",first,LT(1)), #multicatch_types);} - ; - -multicatch -{Token first = LT(1);} - : nls! (FINAL)? ("def")? (m:multicatch_types)? id:IDENT! - { - #multicatch = #(create(MULTICATCH,"MULTICATCH",first, LT(1)),m,id); - } - ; - /*OBS* variableLengthParameterDeclaration! {Token first = LT(1);} : pm:parameterModifier t:typeSpec[false] TRIPLE_DOT! id:IDENT @@ -2199,7 +2178,7 @@ finallyClause {Token first = LT(1);} // an exception handler handler {Token first = LT(1);} - : "catch"! LPAREN! pd:multicatch! RPAREN! nlsWarn! handlerCs:compoundStatement! + : "catch"! LPAREN! pd:parameterDeclaration! RPAREN! nlsWarn! handlerCs:compoundStatement! {#handler = #(create(LITERAL_catch,"catch",first,LT(1)),pd,handlerCs);} ; @@ -2210,7 +2189,7 @@ handler {Token first = LT(1);} */ commandArguments[AST head] { - Token first = LT(1); + Token first = LT(1); } : commandArgument ( options {greedy=true;}: COMMA! nls! commandArgument )* @@ -2231,7 +2210,7 @@ commandArguments[AST head] commandArgumentsGreedy[AST head] { - AST prev = #head; + AST prev = #head; } : @@ -4187,22 +4166,6 @@ options { // TODO: Recognize all the Java identifier parts here (except '$'). ; -protected -DIGITS_WITH_UNDERSCORE -options { - paraphrase="a sequence of digits and underscores, bordered by digits"; -} - : DIGIT (DIGITS_WITH_UNDERSCORE_OPT)? - ; - -protected -DIGITS_WITH_UNDERSCORE_OPT -options { - paraphrase="a sequence of digits and underscores with maybe underscore starting"; -} - : (DIGIT | '_')* DIGIT - ; - // a numeric literal NUM_INT options { @@ -4230,29 +4193,27 @@ options { *OBS*/ // TODO: This complex pattern seems wrong. Verify or fix. ( '0' {isDecimal = true;} // special case for just '0' - ( // hex digits - ('x'|'X') - {isDecimal = false;} - HEX_DIGIT - ( options { warnWhenFollowAmbig=false; } - : (options { warnWhenFollowAmbig=false; } : HEX_DIGIT | '_')* - HEX_DIGIT - )? - - | //binary literal - ('b'|'B') ('0'|'1') (('0'|'1'|'_')* ('0'|'1'))? + ( ('x'|'X') {isDecimal = false;} + ( // hex + // the 'e'|'E' and float suffix stuff look + // like hex digits, hence the (...)+ doesn't + // know when to stop: ambig. ANTLR resolves + // it correctly by matching immediately. It + // is therefor ok to hush warning. + options { + warnWhenFollowAmbig=false; + } + : HEX_DIGIT + )+ | //float or double with leading zero - ( DIGITS_WITH_UNDERSCORE - ( '.' DIGITS_WITH_UNDERSCORE | EXPONENT | FLOAT_SUFFIX) - ) => DIGITS_WITH_UNDERSCORE + (('0'..'9')+ ('.'('0'..'9')|EXPONENT|FLOAT_SUFFIX)) => ('0'..'9')+ - | // octal - ('0'..'7') (('0'..'7'|'_')* ('0'..'7'))? + | ('0'..'7')+ // octal {isDecimal = false;} )? - | ('1'..'9') (DIGITS_WITH_UNDERSCORE_OPT)? {isDecimal=true;} // non-zero decimal + | ('1'..'9') ('0'..'9')* {isDecimal=true;} // non-zero decimal ) ( ('l'|'L') { _ttype = NUM_LONG; } | ('i'|'I') { _ttype = NUM_INT; } @@ -4262,7 +4223,7 @@ options { | (~'.' | '.' ('0'..'9')) => {isDecimal}? - ( '.' DIGITS_WITH_UNDERSCORE (e:EXPONENT)? (f2:FLOAT_SUFFIX {t=f2;} | g2:BIG_SUFFIX {t=g2;})? + ( '.' ('0'..'9')+ (EXPONENT)? (f2:FLOAT_SUFFIX {t=f2;} | g2:BIG_SUFFIX {t=g2;})? | EXPONENT (f3:FLOAT_SUFFIX {t=f3;} | g3:BIG_SUFFIX {t=g3;})? | f4:FLOAT_SUFFIX {t=f4;} ) @@ -4294,7 +4255,7 @@ EXPONENT options { paraphrase="an exponent"; } - : ('e'|'E') ('+'|'-')? ('0'..'9'|'_')* ('0'..'9') + : ('e'|'E') ('+'|'-')? ('0'..'9')+ ;
  83. Download patch src/main/groovy/util/ConfigSlurper.groovy

    --- 2.0.0~beta2-1/src/main/groovy/util/ConfigSlurper.groovy 2011-12-21 14:42:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/src/main/groovy/util/ConfigSlurper.groovy 2012-02-09 20:55:10.000000000 +0000 @@ -15,6 +15,7 @@ */ package groovy.util +import java.beans.Introspector import java.beans.BeanInfo import org.codehaus.groovy.runtime.InvokerHelper @@ -77,6 +78,7 @@ class ConfigSlurper { def tokens = key.split(/\./) def current = config + def currentToken def last def lastToken def foundBase = false
  84. Download patch src/main/groovy/swing/impl/Startable.java

    --- 2.0.0~beta2-1/src/main/groovy/swing/impl/Startable.java 1970-01-01 00:00:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/src/main/groovy/swing/impl/Startable.java 2012-02-09 20:55:10.000000000 +0000 @@ -0,0 +1,29 @@ +/* + * Copyright 2003-2007 the original author or authors. + * + * Licensed 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 groovy.swing.impl; + +/** + * A simple lifecycle method called when an object is fully constructed. + * + * @author <a href="mailto:james@coredevelopers.net">James Strachan</a> + * @version $Revision$ + * @deprecated This interface is no longer used internally and there + * exists no equivalent functionality. + * Superceded by FactoryBuilderSupport handling. + */ +public interface Startable { + void start(); +}
  85. Download patch src/examples/transforms/global/CompiledAtExample.groovy

    --- 2.0.0~beta2-1/src/examples/transforms/global/CompiledAtExample.groovy 2011-12-21 14:42:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/src/examples/transforms/global/CompiledAtExample.groovy 2012-02-09 20:55:10.000000000 +0000 @@ -6,10 +6,10 @@ package transforms.global * @author Hamlet D'Arcy */ -println 'Script compiled at: ' + compiledTime +println 'Script compiled at: ' + getCompiledTime() class MyClass { } -println 'Class compiled at: ' + MyClass.compiledTime +println 'Class compiled at: ' + MyClass.getCompiledTime()
  86. Download patch src/main/groovy/inspect/swingui/AstNodeToScriptAdapter.groovy

    --- 2.0.0~beta2-1/src/main/groovy/inspect/swingui/AstNodeToScriptAdapter.groovy 2011-12-16 05:24:20.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/src/main/groovy/inspect/swingui/AstNodeToScriptAdapter.groovy 2012-02-09 20:50:34.000000000 +0000 @@ -448,7 +448,7 @@ class AstNodeToScriptVisitor extends Pri Expression exp = node.initialValueExpression if (exp instanceof ConstantExpression) exp = Verifier.transformToPrimitiveConstantIfPossible(exp) ClassNode type = exp?.type - if (Modifier.isStatic(node.modifiers) + if (Modifier.isStatic(node.modifiers) && Modifier.isFinal(node.getModifiers()) && exp instanceof ConstantExpression && type == node.type && ClassHelper.isStaticConstantInitializerType(type)) {
  87. Download patch src/main/groovy/transform/TypeChecked.java

    --- 2.0.0~beta2-1/src/main/groovy/transform/TypeChecked.java 2011-12-21 14:42:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/src/main/groovy/transform/TypeChecked.java 1970-01-01 00:00:00.000000000 +0000 @@ -1,33 +0,0 @@ -/* - * Copyright 2003-2011 the original author or authors. - * - * Licensed 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 groovy.transform; - -import java.lang.annotation.*; - -import org.codehaus.groovy.transform.GroovyASTTransformationClass; - -/** - * This will let the Groovy compiler use compile time checks in the style of Java. - * @author <a href="mailto:blackdrag@gmx.org">Jochen "blackdrag" Theodorou</a> - */ -@java.lang.annotation.Documented -@Retention(RetentionPolicy.SOURCE) -@Target({ ElementType.METHOD, ElementType.TYPE, - ElementType.CONSTRUCTOR -}) -@GroovyASTTransformationClass("org.codehaus.groovy.transform.StaticTypesTransformation") -public @interface TypeChecked { -} \ No newline at end of file
  88. Download patch src/main/groovy/swing/factory/ComponentFactory.groovy

    --- 2.0.0~beta2-1/src/main/groovy/swing/factory/ComponentFactory.groovy 2011-08-30 16:20:16.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/src/main/groovy/swing/factory/ComponentFactory.groovy 2012-02-07 18:53:16.000000000 +0000 @@ -18,6 +18,8 @@ package groovy.swing.factory import java.awt.Component import java.awt.Window +import javax.swing.JComponent +import static groovy.swing.factory.LayoutFactory.DEFAULT_DELEGATE_PROPERTY_CONSTRAINT class ComponentFactory extends BeanFactory { @@ -37,6 +39,9 @@ class ComponentFactory extends BeanFacto def constraints = builder.context.constraints if (constraints != null) { LayoutFactory.getLayoutTarget(parent).add(child, constraints) + if (child instanceof JComponent) { + child.putClientProperty(DEFAULT_DELEGATE_PROPERTY_CONSTRAINT, constraints) + } builder.context.remove('constraints') } else { LayoutFactory.getLayoutTarget(parent).add(child)
  89. Download patch src/main/groovy/sql/Sql.java

    --- 2.0.0~beta2-1/src/main/groovy/sql/Sql.java 2011-12-06 17:28:16.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/src/main/groovy/sql/Sql.java 2012-02-06 15:03:26.000000000 +0000 @@ -362,34 +362,42 @@ public class Sql { * @throws ClassNotFoundException if the class cannot be found or loaded */ public static Sql newInstance(Map<String, Object> args) throws SQLException, ClassNotFoundException { + if (!args.containsKey("url")) + throw new IllegalArgumentException("Argument 'url' is required"); + + if (args.get("url") == null) + throw new IllegalArgumentException("Argument 'url' must not be null"); + if (args.containsKey("driverClassName") && args.containsKey("driver")) throw new IllegalArgumentException("Only one of 'driverClassName' and 'driver' should be provided"); - Object driverClassName = args.remove("driverClassName"); - if (driverClassName == null) driverClassName = args.remove("driver"); - if (driverClassName != null) loadDriver(driverClassName.toString()); - Object url = args.remove("url"); - if (url == null) throw new IllegalArgumentException("Argument 'url' is required"); + // Make a copy so destructive operations will not affect the caller + Map<String, Object> sqlArgs = new HashMap<String, Object>(args); + + Object driverClassName = sqlArgs.remove("driverClassName"); + if (driverClassName == null) driverClassName = sqlArgs.remove("driver"); + if (driverClassName != null) loadDriver(driverClassName.toString()); - Properties props = (Properties) args.remove("properties"); - if (props != null && args.containsKey("user")) + Properties props = (Properties) sqlArgs.remove("properties"); + if (props != null && sqlArgs.containsKey("user")) throw new IllegalArgumentException("Only one of 'properties' and 'user' should be supplied"); - if (props != null && args.containsKey("password")) + if (props != null && sqlArgs.containsKey("password")) throw new IllegalArgumentException("Only one of 'properties' and 'password' should be supplied"); - if (args.containsKey("user") ^ args.containsKey("password")) + if (sqlArgs.containsKey("user") ^ sqlArgs.containsKey("password")) throw new IllegalArgumentException("Found one but not both of 'user' and 'password'"); + Object url = sqlArgs.remove("url"); Connection connection; - if (props != null) connection = DriverManager.getConnection(url.toString(), props); - else if (args.containsKey("user")) { - Object user = args.remove("user"); - Object password = args.remove("password"); + if (props != null) connection = DriverManager.getConnection(url.toString(), new Properties(props)); + else if (sqlArgs.containsKey("user")) { + Object user = sqlArgs.remove("user"); + Object password = sqlArgs.remove("password"); connection = DriverManager.getConnection(url.toString(), (user == null ? null : user.toString()), (password == null ? null : password.toString())); } else connection = DriverManager.getConnection(url.toString()); - Sql result = (Sql) InvokerHelper.invokeConstructorOf(Sql.class, args); + Sql result = (Sql) InvokerHelper.invokeConstructorOf(Sql.class, sqlArgs); result.setConnection(connection); return result; }
  90. Download patch src/main/groovy/util/slurpersupport/Node.java

    --- 2.0.0~beta2-1/src/main/groovy/util/slurpersupport/Node.java 2011-12-06 17:28:16.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/src/main/groovy/util/slurpersupport/Node.java 2012-02-06 15:03:26.000000000 +0000 @@ -1,5 +1,5 @@ /* - * Copyright 2003-2010 the original author or authors. + * Copyright 2003-2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -88,7 +88,6 @@ public class Node implements Writable { }); } - protected void replaceBody(final Object newValue) { this.children.clear(); this.children.add(newValue); @@ -112,18 +111,15 @@ public class Node implements Writable { * @see org.codehaus.groovy.sandbox.util.slurpersupport.Node#text() */ public String text() { - final StringBuffer buff = new StringBuffer(); - final Iterator iter = this.children.iterator(); - while (iter.hasNext()) { - final Object child = iter.next(); - + final StringBuilder sb = new StringBuilder(); + for (Object child : this.children) { if (child instanceof Node) { - buff.append(((Node) child).text()); + sb.append(((Node) child).text()); } else { - buff.append(child); + sb.append(child); } } - return buff.toString(); + return sb.toString(); } /* (non-Javadoc) @@ -154,7 +150,6 @@ public class Node implements Writable { private Object getNextElementNodes() { while (iter.hasNext()) { final Object node = iter.next(); - if (node instanceof Node) { return node; } @@ -169,9 +164,7 @@ public class Node implements Writable { */ public Writer writeTo(final Writer out) throws IOException { if (this.replacementNodeStack.empty()) { - final Iterator iter = this.children.iterator(); - while (iter.hasNext()) { - final Object child = iter.next(); + for (Object child : this.children) { if (child instanceof Writable) { ((Writable) child).writeTo(out); } else { @@ -179,7 +172,6 @@ public class Node implements Writable { } } return out; - } else { return ((Writable) this.replacementNodeStack.peek()).writeTo(out); } @@ -190,7 +182,6 @@ public class Node implements Writable { final Closure rest = new Closure(null) { public Object doCall(final Object o) { buildChildren(builder, namespaceMap, namespaceTagHints); - return null; } }; @@ -210,18 +201,13 @@ public class Node implements Writable { builder.invokeMethod(this.name, new Object[]{this.attributes, rest}); } else { final Map attributesWithNamespaces = new HashMap(this.attributes); - final Iterator attrs = this.attributes.keySet().iterator(); - - while (attrs.hasNext()) { - final Object key = attrs.next(); + for (Object key : this.attributes.keySet()) { final Object attributeNamespaceURI = this.attributeNamespaces.get(key); - if (attributeNamespaceURI != null) { attributesWithNamespaces.put(getTagFor(attributeNamespaceURI, current, pending, namespaceMap, namespaceTagHints, newTags, builder) + "$" + key, attributesWithNamespaces.remove(key)); } } - builder.getProperty(getTagFor(this.namespaceURI, current, pending, namespaceMap, namespaceTagHints, newTags, builder)); builder.invokeMethod(this.name, new Object[]{attributesWithNamespaces, rest}); } @@ -229,7 +215,6 @@ public class Node implements Writable { // remove the new tags we had to define for this element if (!newTags.isEmpty()) { final Iterator iter = newTags.iterator(); - do { pending.remove(iter.next()); } while (iter.hasNext()); @@ -257,7 +242,6 @@ public class Node implements Writable { if (tag == null || tag.length() == 0) { // otherwise make up a new tag and check it has not been used before int suffix = 0; - do { final String possibleTag = "tag" + suffix++; @@ -279,9 +263,8 @@ public class Node implements Writable { private static String findNamespaceTag(final Map tagMap, final Object namespaceURI) { if (tagMap.containsValue(namespaceURI)) { - final Iterator entries = tagMap.entrySet().iterator(); - while (entries.hasNext()) { - final Map.Entry entry = (Map.Entry) entries.next(); + for (Object o : tagMap.entrySet()) { + final Map.Entry entry = (Map.Entry) o; if (namespaceURI.equals(entry.getValue())) { return (String) entry.getKey(); } @@ -291,9 +274,7 @@ public class Node implements Writable { } private void buildChildren(final GroovyObject builder, final Map namespaceMap, final Map<String, String> namespaceTagHints) { - final Iterator iter = this.children.iterator(); - while (iter.hasNext()) { - final Object child = iter.next(); + for (Object child : this.children) { if (child instanceof Node) { ((Node) child).build(builder, namespaceMap, namespaceTagHints); } else if (child instanceof Buildable) {
  91. Download patch .project

    --- 2.0.0~beta2-1/.project 2011-12-21 14:42:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/.project 2012-02-09 20:55:10.000000000 +0000 @@ -1,29 +1,28 @@ <?xml version="1.0" encoding="UTF-8"?> <projectDescription> - <name>groovy</name> - <comment>Groovy: A powerful, dynamic language for the JVM</comment> - <projects> - </projects> - <buildSpec> - <buildCommand> - <name>org.eclipse.ui.externaltools.ExternalToolBuilder</name> - <triggers>full,incremental,</triggers> - <arguments> - <dictionary> - <key>LaunchConfigHandle</key> - <value>&lt;project&gt;/.externalToolBuilders/Groovy ensureGrammars.launch</value> - </dictionary> - </arguments> - </buildCommand> - <buildCommand> - <name>org.eclipse.jdt.core.javabuilder</name> - <arguments> - </arguments> - </buildCommand> - </buildSpec> - <natures> - <nature>org.eclipse.jdt.groovy.core.groovyNature</nature> - <nature>org.eclipse.jdt.core.javanature</nature> - <nature>org.codehaus.groovy.eclipse.groovyNature</nature> - </natures> + <name>groovy</name> + <comment>Groovy: A powerful, dynamic language for the JVM</comment> + <projects/> + <buildSpec> + <buildCommand> + <name>org.eclipse.ui.externaltools.ExternalToolBuilder</name> + <triggers>full,incremental,</triggers> + <arguments> + <dictionary> + <key>LaunchConfigHandle</key> + <value>&lt;project&gt;/.externalToolBuilders/Groovy ensureGrammars.launch</value> + </dictionary> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + </buildCommand> + <buildCommand> + <name>org.codehaus.groovy.eclipse.groovyBuilder</name> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.jdt.core.javanature</nature> + <nature>org.codehaus.groovy.eclipse.groovyNature</nature> + </natures> </projectDescription>
  92. Download patch .gradle/1.0-milestone-6/taskArtifacts/cache.properties

    --- 2.0.0~beta2-1/.gradle/1.0-milestone-6/taskArtifacts/cache.properties 1970-01-01 00:00:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/.gradle/1.0-milestone-6/taskArtifacts/cache.properties 2012-01-27 14:18:30.000000000 +0000 @@ -0,0 +1 @@ +#Fri Jan 27 09:48:29 CET 2012
  93. Download patch gradle/assemble.gradle

    --- 2.0.0~beta2-1/gradle/assemble.gradle 2011-12-21 14:42:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/gradle/assemble.gradle 2012-02-09 20:55:10.000000000 +0000 @@ -110,8 +110,6 @@ task jarAll(type: Jar, dependsOn: jar) { }.each {jarjarFile -> zipfileset(src: jarjarFile) } - zipfileset(src: configurations.runtime.files.find { file -> file.name.startsWith('asm-util') }, - includes: 'org/objectweb/asm/util/AbstractVisitor.class,org/objectweb/asm/util/Trace*') rule pattern: "antlr.**", result: "groovyjarjarantlr.@1" rule pattern: "org.objectweb.**", result: "groovyjarjarasm.@1" rule pattern: "org.apache.commons.cli.**", result: "groovyjarjarcommonscli.@1"
  94. Download patch src/bin/groovysh.bat

    --- 2.0.0~beta2-1/src/bin/groovysh.bat 2011-12-21 14:42:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/src/bin/groovysh.bat 2012-02-09 20:55:10.000000000 +0000 @@ -12,7 +12,8 @@ if "%OS%"=="Windows_NT" setlocal set DIRNAME=%~dp0 if "%DIRNAME%" == "" set DIRNAME=.\ -set CLASSNAME=org.codehaus.groovy.tools.shell.Main +set CLASSNAME=groovy.ui.InteractiveShell +if "%OLDSHELL%" == "" set CLASSNAME=org.codehaus.groovy.tools.shell.Main "%DIRNAME%\startGroovy.bat" "%DIRNAME%" %CLASSNAME% %*
  95. Download patch config/codenarc/codenarc.groovy
  96. Download patch src/main/org/codehaus/groovy/antlr/parser/GroovyLexer.java
  97. Download patch src/main/groovy/util/FactoryBuilderSupport.java
  98. Download patch src/main/groovy/ui/GroovyMain.java

    --- 2.0.0~beta2-1/src/main/groovy/ui/GroovyMain.java 2011-12-21 14:42:00.000000000 +0000 +++ 2.0.0~beta2+isreally1.8.6-0ubuntu1/src/main/groovy/ui/GroovyMain.java 2012-02-09 20:55:10.000000000 +0000 @@ -23,6 +23,7 @@ import groovy.lang.Script; import java.io.*; import java.math.BigInteger; +import java.net.MalformedURLException; import java.net.URL; import java.util.Iterator; import java.util.List; @@ -233,10 +234,6 @@ public class GroovyMain { .withDescription("split lines using splitPattern (default '\\s') using implicit 'split' variable") .withLongOpt("autosplit") .create('a')); - options.addOption( - OptionBuilder.withLongOpt("indy") - .withDescription("enables compilation using invokedynamic") - .create()); return options; } @@ -321,10 +318,6 @@ public class GroovyMain { main.conf.getOptimizationOptions().put(deopt_i,false); } - if (line.hasOption("indy")) { - main.conf.getOptimizationOptions().put("indy", true); - } - main.args = args; return main.run();
  99. Download patch .settings/org.eclipse.jdt.core.prefs
  100. Download patch .pc/0002-ant-build.diff.patch/build.xml
  101. ...

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: jakarta-jmeter


Modifications :
  1. Download patch debian/rules

    --- 2.3.4-2/debian/rules 2010-09-26 09:37:51.000000000 +0100 +++ 2.3.4-2ubuntu2/debian/rules 2010-09-26 09:33:44.000000000 +0100 @@ -5,7 +5,7 @@ include /usr/share/cdbs/1/rules/patchsys include /usr/share/cdbs/1/class/ant.mk JAVA_HOME_DIRS := /usr/lib/jvm/default-java -DEB_JARS := ant-nodeps avalon-framework batik bsf commons-collections3 commons-httpclient commons-io commons-jexl commons-lang commons-net geronimo-jms-1.1-spec gnumail jboss-j2ee jcharts jdom0 jdom1 js jtidy junit libhtmlparser excalibur-logger excalibur-logkit oro xalan2 xmlgraphics-commons xstream velocity +DEB_JARS := ant-nodeps avalon-framework batik bsf commons-collections3 commons-httpclient commons-io commons-jexl commons-lang commons-net geronimo-jms-1.1-spec geronimo-javamail-1.4-spec jboss-j2ee jcharts jdom0 jdom1 js jtidy junit libhtmlparser excalibur-logger excalibur-logkit oro xalan2 xmlgraphics-commons xstream velocity DEB_ANT_BUILD_TARGET := install docs-printable docs-api ANT_OPTS := -Djmeter.version=$(DEB_UPSTREAM_VERSION)
  2. Download patch debian/control

    --- 2.3.4-2/debian/control 2010-09-26 09:37:51.000000000 +0100 +++ 2.3.4-2ubuntu2/debian/control 2010-09-26 09:33:44.000000000 +0100 @@ -1,10 +1,11 @@ Source: jakarta-jmeter Section: net Priority: optional -Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> Uploaders: Onkar Shinde <onkarshinde@ubuntu.com> Build-Depends: debhelper (>=5), cdbs, ant, ant-optional, quilt -Build-Depends-Indep: default-jdk, junit, libbatik-java, libbsf-java, libavalon-framework-java, libcommons-collections3-java, libcommons-httpclient-java, libcommons-io-java, libcommons-jexl-java (>= 1.1), libcommons-lang-java, libcommons-net-java, libjboss-j2ee-java, libgnumail-java, libhtmlparser-java, libjcharts-java, libjdom1-java, libjtidy-java, libexcalibur-logkit-java, libexcalibur-logger-java, liboro-java, libxalan2-java, libxmlgraphics-commons-java, libxstream-java, rhino, velocity +Build-Depends-Indep: default-jdk, junit, libbatik-java, libbsf-java, libavalon-framework-java, libcommons-collections3-java, libcommons-httpclient-java, libcommons-io-java, libcommons-jexl-java (>= 1.1), libcommons-lang-java, libcommons-net-java, libjboss-j2ee-java, libgeronimo-javamail-1.4-spec-java, libhtmlparser-java, libjcharts-java, libjdom1-java, libjtidy-java, libexcalibur-logkit-java, libexcalibur-logger-java, liboro-java, libxalan2-java, libxmlgraphics-commons-java, libxstream-java, rhino, velocity Standards-Version: 3.8.3 Vcs-Svn: svn://svn.debian.org/pkg-java/trunk/jakarta-jmeter/ Vcs-Browser: http://svn.debian.org/viewsvn/pkg-java/trunk/jakarta-jmeter/ @@ -13,7 +14,7 @@ DM-Upload-Allowed: yes Package: jmeter Architecture: all -Depends: ${misc:Depends}, default-jre | java2-runtime, java-wrappers (>= 0.1.14), bsh, libavalon-framework-java, libbatik-java, libbsf-java, libcommons-collections3-java, libcommons-httpclient-java, libcommons-io-java, libcommons-jexl-java (>= 1.1), libcommons-lang-java, libexcalibur-logger-java, libexcalibur-logkit-java, libgnumail-java, libjcharts-java, libjtidy-java, liboro-java, libxalan2-java, libxmlgraphics-commons-java, libxstream-java, rhino +Depends: ${misc:Depends}, default-jre | java2-runtime, java-wrappers (>= 0.1.14), bsh, libavalon-framework-java, libbatik-java, libbsf-java, libcommons-collections3-java, libcommons-httpclient-java, libcommons-io-java, libcommons-jexl-java (>= 1.1), libcommons-lang-java, libexcalibur-logger-java, libexcalibur-logkit-java, libgeronimo-javamail-1.4-spec-java, libjcharts-java, libjtidy-java, liboro-java, libxalan2-java, libxmlgraphics-commons-java, libxstream-java, rhino Recommends: jmeter-http (= ${binary:Version}), jmeter-help (= ${binary:Version}) Description: Load testing and performance measurement application Apache JMeter is a 100% pure Java desktop application designed to load test @@ -84,7 +85,7 @@ Description: Load testing and performanc Package: jmeter-mail Architecture: all -Depends: ${misc:Depends}, jmeter (= ${binary:Version}), libgnumail-java, libexcalibur-logkit-java +Depends: ${misc:Depends}, jmeter (= ${binary:Version}), libgeronimo-activation-1.1-spec-java, libgeronimo-javamail-1.4-provider-java, libgeronimo-javamail-1.4-spec-java, libexcalibur-logkit-java Description: Load testing and performance measurement application Apache JMeter is a 100% pure Java desktop application designed to load test functional behavior and measure performance. It was originally designed for
  3. Download patch debian/wrappers/jmeter

    --- 2.3.4-2/debian/wrappers/jmeter 2010-09-26 09:37:51.000000000 +0100 +++ 2.3.4-2ubuntu2/debian/wrappers/jmeter 2010-09-26 09:33:44.000000000 +0100 @@ -6,8 +6,9 @@ find_jars avalon-framework batik bsf bsh commons-collections3 find_jars commons-httpclient commons-io commons-jexl commons-lang find_jars commons-logging commons-net -find_jars excalibur-logger excalibur-logkit geronimo-jms-1.1-spec gnumail -find_jars jboss-j2ee jcharts jdom1 jtidy js +find_jars excalibur-logger excalibur-logkit geronimo-jms-1.1-spec +find_jars geronimo-activation-1.1-spec geronimo-javamail-1.4-spec +find_jars geronimo-javamail-1.4-provider jboss-j2ee jcharts jdom1 jtidy js find_jars junit libhtmlparser oro xalan2 xmlgraphics-commons xstream find_jars /usr/share/jmeter/lib/jorphan.jar find_jars /usr/share/jmeter/bin/ApacheJMeter.jar

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: jarjar

jarjar (1.1-1ubuntu1) precise; urgency=low * Drop debian/patches/0006-remove-asm-commons-from-final-jar.patch: libasm3-java now ships correctly seperated jar files so asm-commons must be included. -- James Page <james.page@ubuntu.com> Tue, 25 Oct 2011 15:30:30 +0100

Modifications :
  1. Download patch debian/control

    --- 1.1-1/debian/control 2011-09-08 20:31:33.000000000 +0000 +++ 1.1-1ubuntu1/debian/control 2011-10-25 14:31:20.000000000 +0000 @@ -1,7 +1,8 @@ Source: jarjar Section: java Priority: optional -Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> Uploaders: Michael Koch <konqueror@gmx.de>, Niels Thykier <niels@thykier.net> Build-Depends: debhelper (>= 7), cdbs, ant, libasm3-java, default-jdk Standards-Version: 3.9.2
  2. Download patch .pc/applied-patches

    --- 1.1-1/.pc/applied-patches 2011-10-25 17:23:52.000000000 +0000 +++ 1.1-1ubuntu1/.pc/applied-patches 2011-10-25 17:23:52.000000000 +0000 @@ -3,4 +3,3 @@ 0003-fix-path-in-build.xml.patch 0004-support-gnu-regexp.patch 0005-cast-null-to-java.io.File.patch -0006-remove-asm-commons-from-final-jar.patch
  3. Download patch debian/patches/series

    --- 1.1-1/debian/patches/series 2010-02-28 11:52:52.000000000 +0000 +++ 1.1-1ubuntu1/debian/patches/series 2011-10-25 14:29:30.000000000 +0000 @@ -3,4 +3,3 @@ 0003-fix-path-in-build.xml.patch 0004-support-gnu-regexp.patch 0005-cast-null-to-java.io.File.patch -0006-remove-asm-commons-from-final-jar.patch
  4. Download patch build.xml

    --- 1.1-1/build.xml 2011-10-25 17:23:52.000000000 +0000 +++ 1.1-1ubuntu1/build.xml 2011-10-25 17:23:52.000000000 +0000 @@ -79,6 +79,11 @@ <jarjar jarfile="${jarfile}"> <fileset dir="build/main"/> <zipfileset src="${asm.jar}"/> + <zipfileset src="${asm-commons.jar}"> + <include name="org/objectweb/asm/commons/EmptyVisitor.class"/> + <include name="org/objectweb/asm/commons/Remap*.class"/> + <include name="org/objectweb/asm/commons/LocalVariablesSorter.class"/> + </zipfileset> <keep pattern="com.tonicsystems.jarjar.Main"/> <keep pattern="com.tonicsystems.jarjar.JarJarTask"/> <rule pattern="com.tonicsystems.jarjar.util.**" result="com.tonicsystems.jarjar.ext_util.@1"/>
  5. Download patch .pc/0006-remove-asm-commons-from-final-jar.patch/build.xml
  6. Download patch debian/patches/0006-remove-asm-commons-from-final-jar.patch

    --- 1.1-1/debian/patches/0006-remove-asm-commons-from-final-jar.patch 2011-09-08 20:26:25.000000000 +0000 +++ 1.1-1ubuntu1/debian/patches/0006-remove-asm-commons-from-final-jar.patch 1970-01-01 00:00:00.000000000 +0000 @@ -1,25 +0,0 @@ -From: Torsten Werner <twerner@debian.org> -Date: Sun, 28 Feb 2010 12:45:45 +0100 -Subject: remove asm-commons from final jar - ---- - build.xml | 5 ----- - 1 files changed, 0 insertions(+), 5 deletions(-) - -diff --git a/build.xml b/build.xml -index bbae4da..160e9ee 100644 ---- a/build.xml -+++ b/build.xml -@@ -79,11 +79,6 @@ - <jarjar jarfile="${jarfile}"> - <fileset dir="build/main"/> - <zipfileset src="${asm.jar}"/> -- <zipfileset src="${asm-commons.jar}"> -- <include name="org/objectweb/asm/commons/EmptyVisitor.class"/> -- <include name="org/objectweb/asm/commons/Remap*.class"/> -- <include name="org/objectweb/asm/commons/LocalVariablesSorter.class"/> -- </zipfileset> - <keep pattern="com.tonicsystems.jarjar.Main"/> - <keep pattern="com.tonicsystems.jarjar.JarJarTask"/> - <rule pattern="com.tonicsystems.jarjar.util.**" result="com.tonicsystems.jarjar.ext_util.@1"/> ---

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: javassist

javassist (1:3.12.1.ga-1ubuntu1) precise; urgency=low * Enable test suite for Ubuntu MIR (LP: #878186). - d/rules: Use DEB_ANT_CHECK_TARGET to execute test suite, ensure ant-junit and junit are added to the classpath. - d/control: Added ant-optional and junit to B-D-I. -- James Page <james.page@ubuntu.com> Wed, 19 Oct 2011 14:34:42 +0100

Modifications :
  1. Download patch debian/rules

    --- 1:3.12.1.ga-1/debian/rules 2010-05-14 12:07:02.000000000 +0000 +++ 1:3.12.1.ga-1ubuntu1/debian/rules 2011-10-19 13:29:44.000000000 +0000 @@ -7,6 +7,8 @@ PACKAGE := $(DEB_SOURCE_PAC VERSION := $(DEB_UPSTREAM_VERSION) JAVA_HOME := /usr/lib/jvm/default-java DEB_ANT_BUILD_TARGET := jar javadocs +DEB_ANT_CHECK_TARGET := test +DEB_JARS := ant-junit junit ANT_OPTS := -Dant.build.javac.source=1.5 -Dant.build.javac.target=1.5 clean::
  2. Download patch debian/control

    --- 1:3.12.1.ga-1/debian/control 2011-09-24 23:33:26.000000000 +0000 +++ 1:3.12.1.ga-1ubuntu1/debian/control 2011-10-19 13:28:05.000000000 +0000 @@ -1,11 +1,12 @@ Source: javassist Section: java Priority: optional -Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> Uploaders: Varun Hiremath <varun@debian.org>, Torsten Werner <twerner@debian.org>, Niels Thykier <niels@thykier.net> Build-Depends: debhelper (>= 7), cdbs -Build-Depends-Indep: ant, default-jdk, maven-repo-helper +Build-Depends-Indep: ant, default-jdk, maven-repo-helper, ant-optional, junit Standards-Version: 3.9.2 Homepage: http://www.csg.is.titech.ac.jp/~chiba/javassist/ Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/javassist

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: javatools

javatools (0.40ubuntu1) precise; urgency=low * Merge from Debian testing. Remaining changes: - Pre-generate tutorial.html; remove the build dependency on markdown. -- Micah Gersten <micahg@ubuntu.com> Sun, 12 Feb 2012 01:54:43 -0600

Modifications :
  1. Download patch debian/rules

    --- 0.40/debian/rules 2012-01-10 21:07:27.000000000 +0000 +++ 0.40ubuntu1/debian/rules 2012-02-03 05:11:35.000000000 +0000 @@ -29,8 +29,10 @@ override_dh_auto_build: jh_lib.sh # jarwrapper pod-based manpages $(POD2MAN) -s 1 jarwrapper.pod tmp.jarwrapper/jarwrapper.1 $(POD2MAN) -s 1 jardetector.pod tmp.jarwrapper/jardetector.1 - markdown --html4tags tutorial.txt | \ - cat tutorial-header.html - tutorial-footer.html > tutorial.html + if which markdown >/dev/null 2>&1; then \ + markdown --html4tags tutorial.txt | \ + cat tutorial-header.html - tutorial-footer.html > tutorial.html; \ + fi runtests: jh_lib.sh cd tests && ./tests.sh @@ -38,5 +40,5 @@ runtests: jh_lib.sh override_dh_auto_test: runtests override_dh_auto_clean: - rm -f jh_lib.sh tutorial.html + rm -f jh_lib.sh #tutorial.html rm -fr tmp tmp.jarwrapper
  2. Download patch debian/control

    --- 0.40/debian/control 2012-01-16 20:18:02.000000000 +0000 +++ 0.40ubuntu1/debian/control 2012-02-12 07:54:41.000000000 +0000 @@ -1,9 +1,10 @@ Source: javatools Priority: optional -Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> Uploaders: Matthew Johnson <mjj29@debian.org>, Niels Thykier <niels@thykier.net> Build-Depends: debhelper (>= 7.0.50~) -Build-Depends-Indep: default-jdk, libarchive-zip-perl (>= 1.30-5~), markdown, perl +Build-Depends-Indep: default-jdk, libarchive-zip-perl (>= 1.30-5~), perl Standards-Version: 3.9.2 Section: java Vcs-Git: git://git.debian.org/git/pkg-java/javatools.git
  3. Download patch tutorial.html

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: libajaxtags-java

libajaxtags-java (1.5.1-1ubuntu1) precise; urgency=low * debian/control: Build-Depends on junit4, fix FTBFS -- Angel Abad <angelabad@ubuntu.com> Wed, 04 Apr 2012 15:35:42 +0200

Modifications :
  1. Download patch debian/control

    --- 1.5.1-1/debian/control 2010-05-12 21:38:00.000000000 +0000 +++ 1.5.1-1ubuntu1/debian/control 2012-04-04 13:36:02.000000000 +0000 @@ -1,10 +1,11 @@ Source: libajaxtags-java Section: java Priority: optional -Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> Uploaders: Torsten Werner <twerner@debian.org>, Michael Koch <konqueror@gmx.de> Build-Depends: ant, cdbs, debhelper (>= 5), default-jdk, maven-debian-helper, - libservlet2.5-java + libservlet2.5-java, junit4 Standards-Version: 3.8.4 Homepage: http://ajaxtags.sourceforge.net/ Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/trunk/libajaxtags-java/

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: libcommons-compress-java

libcommons-compress-java (1.2-1ubuntu1) precise; urgency=low * Updates to support Ubuntu MIR (LP: #876413): - d/build.xml: Provide targets to compile and execute test suite. - d/control: Add B-D's on junit and ant-optional to support testing. - d/rules: Add ant-junit and junit to DEB_JARS for testing. * d/control: Bumped Standards-Version: 3.9.2, no changes. * d/copyright: Updated for revised field names. -- James Page <james.page@ubuntu.com> Wed, 19 Oct 2011 09:59:20 +0100

Modifications :
  1. Download patch debian/rules

    --- 1.2-1/debian/rules 2011-08-06 23:53:11.000000000 +0000 +++ 1.2-1ubuntu1/debian/rules 2011-10-18 13:34:51.000000000 +0000 @@ -5,6 +5,7 @@ include /usr/share/cdbs/1/class/ant.mk JAVA_HOME := /usr/lib/jvm/default-java DEB_ANT_BUILDFILE := debian/build.xml +DEB_JARS := ant-junit junit PACKAGE := commons-compress install/lib$(PACKAGE)-java::
  2. Download patch debian/control

    --- 1.2-1/debian/control 2011-08-06 23:57:24.000000000 +0000 +++ 1.2-1ubuntu1/debian/control 2011-10-18 14:19:18.000000000 +0000 @@ -1,10 +1,17 @@ Source: libcommons-compress-java Section: java Priority: optional -Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> Uploaders: Torsten Werner <twerner@debian.org> -Build-Depends: ant, cdbs, debhelper (>= 5), default-jdk, maven-repo-helper -Standards-Version: 3.8.3 +Build-Depends: ant, + ant-optional, + cdbs, + debhelper (>= 5), + default-jdk, + junit, + maven-repo-helper +Standards-Version: 3.9.2 Homepage: http://commons.apache.org/compress/ Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/trunk/libcommons-compress-java/ Vcs-Svn: svn://svn.debian.org/pkg-java/trunk/libcommons-compress-java
  3. Download patch debian/ant.properties

    --- 1.2-1/debian/ant.properties 2011-08-06 23:53:11.000000000 +0000 +++ 1.2-1ubuntu1/debian/ant.properties 2011-10-18 14:14:02.000000000 +0000 @@ -2,3 +2,8 @@ project.name=commons-compress class.dir=build source.dir=src/main/java jar=commons-compress.jar +test.dir=test +test.class.dir=${test.dir}/build +test.source.dir=src/test/java +test.res.dir=src/test/resources +test.results.dir=${test.dir}/results
  4. Download patch debian/build.xml

    --- 1.2-1/debian/build.xml 2011-08-06 23:53:11.000000000 +0000 +++ 1.2-1ubuntu1/debian/build.xml 2011-10-19 08:48:47.000000000 +0000 @@ -1,9 +1,10 @@ <?xml version="1.0" encoding="UTF-8"?> -<project default="jar" name="${project.name}" basedir=".."> +<project default="package" name="${project.name}" basedir=".."> <target name="clean"> <delete dir="${class.dir}" quiet="true"/> + <delete dir="${test.dir}" quiet="true"/> </target> <target name="compile" description="o Compile the source files"> @@ -12,6 +13,42 @@ debug="true" source="1.5"/> </target> + <target name="test-compile" description="o Compile the test source files" depends="compile"> + <mkdir dir="${test.class.dir}"/> + <javac srcdir="${test.source.dir}" destdir="${test.class.dir}" + debug="true" source="1.5" encoding="ISO-8859-1"> + <classpath> + <pathelement location="${class.dir}"/> + <pathelement path="${java.class.path}"/> + </classpath> + </javac> + <copy todir="${test.class.dir}"> + <fileset dir="${test.res.dir}"> + <exclude name="**/*.java"/> + </fileset> + </copy> + </target> + + <target name="test" depends="test-compile"> + <mkdir dir="${test.results.dir}"/> + <junit printsummary="yes" haltonfailure="yes"> + <classpath> + <pathelement location="${class.dir}"/> + <pathelement location="${test.class.dir}"/> + <pathelement path="${java.class.path}"/> + </classpath> + <formatter type="plain"/> + <batchtest todir="${test.results.dir}"> + <fileset dir="${test.source.dir}"> + <include name="**/*TestCase.java"/> + <include name="**/*Test.java"/> + <exclude name="**/*$*"/> + <exclude name="**/Abstract*"/> + </fileset> + </batchtest> + </junit> + </target> + <target name="jar" description="o Create the jar" depends="compile"> <jar jarfile="${jar}"> <fileset dir="${class.dir}"> @@ -20,4 +57,6 @@ </jar> </target> + <target name="package" depends="test,jar"/> + </project>
  5. Download patch debian/copyright

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: libcommons-dbcp-java

libcommons-dbcp-java (1.4-1ubuntu1) maverick; urgency=low * Merge from debian testing. Remaining changes: - Replace glassfish-javaee by libgeronimo-jta-1.0.1b-spec-java, since the former is in universe and the latter in main -- Thierry Carrez <thierry.carrez@ubuntu.com> Fri, 11 Jun 2010 15:09:25 +0200

Modifications :
  1. Download patch debian/rules

    --- 1.4-1/debian/rules 2010-06-11 16:46:19.000000000 +0100 +++ 1.4-1ubuntu1/debian/rules 2010-06-11 16:40:07.000000000 +0100 @@ -6,7 +6,7 @@ include /usr/share/cdbs/1/rules/patchsys include /usr/share/cdbs/1/class/ant.mk JAVA_HOME := /usr/lib/jvm/default-java -DEB_JARS := commons-collections3 commons-pool junit glassfish-javaee +DEB_JARS := commons-collections3 commons-pool junit geronimo-jta-1.0.1b-spec PACKAGE=commons-dbcp
  2. Download patch debian/control

    --- 1.4-1/debian/control 2010-06-11 16:46:19.000000000 +0100 +++ 1.4-1ubuntu1/debian/control 2010-06-11 16:40:07.000000000 +0100 @@ -1,11 +1,12 @@ Source: libcommons-dbcp-java Section: java Priority: optional -Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> Uploaders: Michael Koch <konqueror@gmx.de>, Damien Raude-Morvan <drazzib@debian.org> Build-Depends: debhelper (>= 7), cdbs, default-jdk, ant, quilt Build-Depends-Indep: libcommons-pool-java, libcommons-collections3-java, junit, - glassfish-javaee, maven-repo-helper, default-jdk-doc, libcommons-pool-java-doc + libgeronimo-jta-1.0.1b-spec-java, maven-repo-helper, default-jdk-doc, libcommons-pool-java-doc Standards-Version: 3.8.4 Homepage: http://commons.apache.org/dbcp/ Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/libcommons-dbcp-java/ @@ -14,7 +15,7 @@ Vcs-Browser: http://svn.debian.org/wsvn/ Package: libcommons-dbcp-java Architecture: all Depends: ${misc:Depends}, default-jre-headless | java2-runtime-headless, libcommons-pool-java, libcommons-collections3-java -Suggests: glassfish-javaee +Suggests: libgeronimo-jta-1.0.1b-spec-java Description: Database Connection Pooling Services The DBCP package provides database connection pooling services. The following features are supported

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: libcommons-discovery-java

libcommons-discovery-java (0.5-2ubuntu1) precise; urgency=low * Merge from Debian testing. Remaining changes: - d/control: Switch Build-Deps from maven to ant, fix Depends on binary packages. - d/rules: Switch from maven to ant cdbs build and ensure that junit4 is used to execute unit tests. - d/ant.properties: Specify build overrides for upstream build.xml to support use of system Java libraries. - d/libcommons-discovery-java-doc.install: install API docs from ant build output. - d/patches/fix_junit4_tests.diff: fix build process to execute tests using the junit ant task rather than executing junit directly in order to support use of JUnit4 annotations. -- James Page <james.page@ubuntu.com> Thu, 09 Feb 2012 16:15:30 +0000

Modifications :
  1. Download patch debian/rules

    --- 0.5-2/debian/rules 2011-11-14 23:12:27.000000000 +0000 +++ 0.5-2ubuntu1/debian/rules 2012-02-09 16:16:24.000000000 +0000 @@ -1,10 +1,20 @@ #!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk -include /usr/share/cdbs/1/class/maven.mk include /usr/share/cdbs/1/class/javahelper.mk +include /usr/share/cdbs/1/class/ant.mk JAVA_HOME := /usr/lib/jvm/default-java +DEB_JARS := ant-junit4 ant-junit +DEB_ANT_BUILD_TARGET := dist test.discovery +LIBRARY := commons-discovery + +install/lib$(LIBRARY)-java:: + mh_installpoms -plib$(LIBRARY)-java + mh_installjar -plib$(LIBRARY)-java -l pom.xml dist/$(LIBRARY).jar + +clean:: + -rm -rf debian/tmp get-orig-source: uscan --download-version $(DEB_UPSTREAM_VERSION) --force-download --rename
  2. Download patch debian/control

    --- 0.5-2/debian/control 2011-11-14 23:16:07.000000000 +0000 +++ 0.5-2ubuntu1/debian/control 2012-02-09 16:15:27.000000000 +0000 @@ -1,13 +1,14 @@ Source: libcommons-discovery-java Section: java Priority: optional -Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> Uploaders: Michael Koch <konqueror@gmx.de>, Damien Raude-Morvan <drazzib@debian.org>, - Kumar Appaiah <akumar@debian.org>, Varun Hiremath <varun@debian.org>, + Kumar Appaiah <akumar@debian.org>, Varun Hiremath <varun@debian.org> Jakub Adam <jakub.adam@ktknet.cz> -Build-Depends: debhelper (>= 7), cdbs, default-jdk, maven-debian-helper (>= 1.4) -Build-Depends-Indep: libcommons-logging-java, junit4, default-jdk-doc, libcommons-logging-java-doc, - libmaven-javadoc-plugin-java, javahelper +Build-Depends: debhelper (>= 7), cdbs, ant, default-jdk +Build-Depends-Indep: ant-optional, libcommons-logging-java, junit4, default-jdk-doc, + libcommons-logging-java-doc, maven-repo-helper, javahelper Standards-Version: 3.9.2 Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/libcommons-discovery-java/ Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/trunk/libcommons-discovery-java/ @@ -15,8 +16,7 @@ Homepage: http://commons.apache.org/disc Package: libcommons-discovery-java Architecture: all -Depends: ${misc:Depends}, ${maven:Depends} -Recommends: ${maven:OptionalDepends} +Depends: ${misc:Depends}, libcommons-logging-java Suggests: libcommons-discovery-java-doc Description: locates classes that implement a given Java interface The Discovery Component is about discovering, or finding, @@ -39,8 +39,7 @@ Description: locates classes that implem Package: libcommons-discovery-java-doc Section: doc Architecture: all -Depends: ${misc:Depends}, ${maven:DocDepends} -Recommends: ${maven:DocOptionalDepends} +Depends: ${misc:Depends}, libcommons-logging-java-doc Suggests: libcommons-discovery-java Description: locates classes that implement a given Java interface (documentation) The Discovery Component is about discovering, or finding,
  3. Download patch .pc/applied-patches

    --- 0.5-2/.pc/applied-patches 2012-02-09 18:50:31.000000000 +0000 +++ 0.5-2ubuntu1/.pc/applied-patches 2012-02-09 18:50:32.000000000 +0000 @@ -1,2 +1,3 @@ java6_incompatible_types.diff java6_incompatible_types_tests.diff +fix_junit4_tests.diff
  4. Download patch debian/patches/series

    --- 0.5-2/debian/patches/series 2011-11-01 14:41:14.000000000 +0000 +++ 0.5-2ubuntu1/debian/patches/series 2011-11-25 05:11:25.000000000 +0000 @@ -1,2 +1,3 @@ java6_incompatible_types.diff java6_incompatible_types_tests.diff +fix_junit4_tests.diff
  5. Download patch .pc/fix_junit4_tests.diff/build.xml
  6. Download patch build.xml

    --- 0.5-2/build.xml 2008-07-14 22:44:17.000000000 +0000 +++ 0.5-2ubuntu1/build.xml 2012-02-09 18:50:32.000000000 +0000 @@ -221,11 +221,20 @@ <target name="test.discovery" depends="compile.tests" description="Run basic Service unit tests ..."> <echo message="Running basic Service tests ..."/> - <java classname="${test.runner}" fork="yes" + <!-- java classname="${test.runner}" fork="yes" failonerror="${test.failonerror}"> <arg value="org.apache.commons.discovery.test.TestAll"/> <classpath refid="test.classpath"/> - </java> + </java --> + <junit printsummary="yes" haltonfailure="yes"> + <classpath refid="test.classpath"/> + <formatter type="plain"/> + <batchtest fork="yes"> + <fileset dir="${test.home}"> + <include name="**/TestAll.java"/> + </fileset> + </batchtest> + </junit> </target>
  7. Download patch debian/libcommons-discovery-java-doc.install

    --- 0.5-2/debian/libcommons-discovery-java-doc.install 2011-09-19 21:29:37.000000000 +0000 +++ 0.5-2ubuntu1/debian/libcommons-discovery-java-doc.install 2011-11-25 05:11:25.000000000 +0000 @@ -1,2 +1,2 @@ -target/apidocs/* usr/share/doc/libcommons-discovery-java/api +dist/docs/api/* usr/share/doc/libcommons-discovery-java/api
  8. Download patch debian/ant.properties

    --- 0.5-2/debian/ant.properties 1970-01-01 00:00:00.000000000 +0000 +++ 0.5-2ubuntu1/debian/ant.properties 2011-11-23 11:06:21.000000000 +0000 @@ -0,0 +1,4 @@ +junit.jar=/usr/share/java/junit4.jar +logger.jar=/usr/share/java/commons-logging.jar +ant.build.javac.source=1.5 +ant.build.javac.target=1.5
  9. Download patch debian/patches/fix_junit4_tests.diff

    --- 0.5-2/debian/patches/fix_junit4_tests.diff 1970-01-01 00:00:00.000000000 +0000 +++ 0.5-2ubuntu1/debian/patches/fix_junit4_tests.diff 2011-11-23 11:47:23.000000000 +0000 @@ -0,0 +1,35 @@ +Description: Execute JUnit tests using Ant junit task instead of executing + junit directory using java as this does not support JUnit4 test annotations. + . + Upstream have switched build system to maven so this patch will not be + forwarded either to Debian or to upstream. +Author: James Page <james.page@ubuntu.com> +Forwarded: not-needed + +Index: libcommons-discovery-java-0.5/build.xml +=================================================================== +--- libcommons-discovery-java-0.5.orig/build.xml 2011-11-23 11:13:50.206722656 +0000 ++++ libcommons-discovery-java-0.5/build.xml 2011-11-23 11:16:25.095112101 +0000 +@@ -221,11 +221,20 @@ + <target name="test.discovery" depends="compile.tests" + description="Run basic Service unit tests ..."> + <echo message="Running basic Service tests ..."/> +- <java classname="${test.runner}" fork="yes" ++ <!-- java classname="${test.runner}" fork="yes" + failonerror="${test.failonerror}"> + <arg value="org.apache.commons.discovery.test.TestAll"/> + <classpath refid="test.classpath"/> +- </java> ++ </java --> ++ <junit printsummary="yes" haltonfailure="yes"> ++ <classpath refid="test.classpath"/> ++ <formatter type="plain"/> ++ <batchtest fork="yes"> ++ <fileset dir="${test.home}"> ++ <include name="**/TestAll.java"/> ++ </fileset> ++ </batchtest> ++ </junit> + </target> + +

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: libcommons-lang-java

libcommons-lang-java (2.6-3ubuntu1) precise; urgency=low * Revert to 2.6-1 packaging, as 2.6-2 would pull in a plethora of Java/maven libraries into main. -- Martin Pitt <martin.pitt@ubuntu.com> Wed, 14 Dec 2011 14:48:44 +0100

Modifications :
  1. Download patch debian/libcommons-lang-java-doc.doc-base

    --- 2.6-3/debian/libcommons-lang-java-doc.doc-base 1970-01-01 00:00:00.000000000 +0000 +++ 2.6-3ubuntu1/debian/libcommons-lang-java-doc.doc-base 2009-07-02 12:07:30.000000000 +0000 @@ -0,0 +1,11 @@ +Document: libcommons-lang-java +Title: Programmer API for Commons Lang +Author: Apache Commons Lang developers +Abstract: The Lang Component contains a set of Java classes that provide helper + methods for standard Java classes, especially those found in the + java.lang package in the Sun JDK. +Section: Programming + +Format: HTML +Index: /usr/share/doc/libcommons-lang-java-doc/api/index.html +Files: /usr/share/doc/libcommons-lang-java-doc/api/*
  2. Download patch debian/commons-lang.bnd

    --- 2.6-3/debian/commons-lang.bnd 2011-11-13 23:40:09.000000000 +0000 +++ 2.6-3ubuntu1/debian/commons-lang.bnd 1970-01-01 00:00:00.000000000 +0000 @@ -1,15 +0,0 @@ -version=VERSION -Extension-Name: commons-lang -Package: org.apache.commons.lang -Export-Package: org.apache.commons.lang;version=${version},\ - org.apache.commons.lang.*;version=${version} -Import-Package: * -Bundle-Version: ${version} -Bundle-Description: Commons Lang, a package of Java utility classes for \ - the classes that are in java.lang's hierarchy, or are considered to \ - be so standard as to justify existence in java.lang. -Bundle-Name: Commons Lang -Bundle-DocURL: http://commons.apache.org/lang/ -Bundle-Vendor: The Apache Software Foundation -Bundle-SymbolicName: org.apache.commons.lang -Bundle-License: http://www.apache.org/licenses/LICENSE-2.0.txt
  3. Download patch debian/rules

    --- 2.6-3/debian/rules 2011-11-13 23:40:09.000000000 +0000 +++ 2.6-3ubuntu1/debian/rules 2011-08-02 16:51:38.000000000 +0000 @@ -1,19 +1,28 @@ #!/usr/bin/make -f -DEB_SOURCE_PACKAGE := $(shell dpkg-parsechangelog | grep '^Source:' | cut -f 2 -d ' ') -DEB_UPSTREAM_VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ' | cut -d: -f2- | sed 's/-[^-]*$$//') +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/ant.mk -export JAVA_HOME=/usr/lib/jvm/default-java -export CLASSPATH=$(shell for jar in `cat debian/build-classpath`; do if [ -f "$$jar" ]; then echo -n "$${jar}:"; fi; done) - -%: - dh $@ --buildsystem=ant --with maven_repo_helper - -override_dh_auto_build: - ANT_ARGS="-Dbasedir=$(realpath .) -Djdk.javadoc=file:///usr/share/doc/default-jdk-doc/api/ jar javadoc javadoc-jar" dh_auto_build - cat debian/commons-lang.bnd | sed s/VERSION/$(DEB_UPSTREAM_VERSION)/ > debian/.commons-lang-versioned.bnd - echo debian/.commons-lang-versioned.bnd >> debian/.mh_clean - bnd wrap -properties debian/.commons-lang-versioned.bnd -output target/commons-lang.bnd.jar target/commons-lang-$(DEB_UPSTREAM_VERSION).jar +PACKAGE := $(DEB_SOURCE_PACKAGE) +VERSION := $(DEB_UPSTREAM_VERSION) +JAVA_HOME := /usr/lib/jvm/default-java +DEB_JARS := junit +DEB_ANT_BUILD_TARGET := jar javadoc +LAST_MODIFIED := $(shell date +%s%N | cut -c -13) +DEB_ANT_ARGS := -Dlastmodified=$(LAST_MODIFIED) + +common-post-build-indep:: + mv build/apidocs build/api + +install/libcommons-lang-java:: + mh_installpoms -p$(PACKAGE) + mh_installjar -p$(PACKAGE) -l pom.xml build/commons-lang-$(VERSION).jar + +clean:: + -rm gjdoc_rawcomment.cache + -rm -rf docs/api/* + -rm -rf debian/tmp + mh_clean get-orig-source: -uscan --download-version $(DEB_UPSTREAM_VERSION) --force-download --rename
  4. Download patch debian/compat

    --- 2.6-3/debian/compat 2011-11-13 23:40:09.000000000 +0000 +++ 2.6-3ubuntu1/debian/compat 2009-07-02 12:07:30.000000000 +0000 @@ -1 +1 @@ -7 +6
  5. Download patch debian/control

    --- 2.6-3/debian/control 2011-12-04 01:55:14.000000000 +0000 +++ 2.6-3ubuntu1/debian/control 2011-12-14 13:49:43.000000000 +0000 @@ -1,10 +1,11 @@ Source: libcommons-lang-java Section: java Priority: optional -Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> -Uploaders: Michael Koch <konqueror@gmx.de>, Kumar Appaiah <akumar@debian.org> -Build-Depends: debhelper (>= 7.0.50~), default-jdk, maven-repo-helper (>= 1.7), ant -Build-Depends-Indep: libcommons-parent-java (>= 12), junit (>= 3.8.1), bnd, default-jdk-doc +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> +Uploaders: Arnaud Vandyck <avdyk@debian.org>, Michael Koch <konqueror@gmx.de>, Kumar Appaiah <akumar@debian.org> +Build-Depends: debhelper (>= 6), cdbs, default-jdk +Build-Depends-Indep: maven-repo-helper, ant, junit (>= 3.8.1), default-jdk-doc Standards-Version: 3.9.2 Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/libcommons-lang-java Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/trunk/libcommons-lang-java @@ -12,9 +13,8 @@ Homepage: http://commons.apache.org/lang Package: libcommons-lang-java Architecture: all -Depends: ${misc:Depends}, libcommons-parent-java (>= 12) -Suggests: libcommons-lang-java-doc -Description: Commons Lang - an extension of the java.lang package +Depends: ${misc:Depends} +Description: Extension of the java.lang package The Lang Component contains a set of Java classes that provide helper methods for standard Java classes, especially those found in the java.lang package in the Sun JDK. The following classes are included: @@ -38,8 +38,8 @@ Package: libcommons-lang-java-doc Section: doc Architecture: all Depends: ${misc:Depends} -Suggests: libcommons-lang-java, default-jdk-doc -Description: Documentation for Commons Lang - an extension of the java.lang package +Suggests: default-jdk-doc +Description: Documentation for an extension of the java.lang package The Lang Component contains a set of Java classes that provide helper methods for standard Java classes, especially those found in the java.lang package in the Sun JDK. The following classes are included:
  6. Download patch debian/libcommons-lang-java-doc.install

    --- 2.6-3/debian/libcommons-lang-java-doc.install 2011-11-13 23:40:09.000000000 +0000 +++ 2.6-3ubuntu1/debian/libcommons-lang-java-doc.install 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -target/apidocs/* usr/share/doc/libcommons-lang-java/api
  7. Download patch .pc/applied-patches

    --- 2.6-3/.pc/applied-patches 1970-01-01 00:00:00.000000000 +0000 +++ 2.6-3ubuntu1/.pc/applied-patches 2011-12-14 15:54:17.000000000 +0000 @@ -0,0 +1 @@ +OSGi_Manifest.patch
  8. Download patch debian/libcommons-lang-java-doc.doc-base.api

    --- 2.6-3/debian/libcommons-lang-java-doc.doc-base.api 2011-11-13 23:40:09.000000000 +0000 +++ 2.6-3ubuntu1/debian/libcommons-lang-java-doc.doc-base.api 1970-01-01 00:00:00.000000000 +0000 @@ -1,11 +0,0 @@ -Document: libcommons-lang-java -Title: Programmer API for Commons Lang -Author: Apache Commons Lang developers -Abstract: The Lang Component contains a set of Java classes that provide helper - methods for standard Java classes, especially those found in the - java.lang package in the Sun JDK. -Section: Programming - -Format: HTML -Index: /usr/share/doc/libcommons-lang-java/api/index.html -Files: /usr/share/doc/libcommons-lang-java/api/*
  9. Download patch debian/maven.rules

    --- 2.6-3/debian/maven.rules 2011-11-13 23:40:09.000000000 +0000 +++ 2.6-3ubuntu1/debian/maven.rules 2009-07-02 12:07:30.000000000 +0000 @@ -1,20 +1,2 @@ -# Maven rules - transform Maven dependencies and plugins -# Format of this file is: -# [group] [artifact] [type] [version] [classifier] [scope] -# where each element can be either -# - the exact string, for example org.apache for the group, or 3.1 -# for the version. In this case, the element is simply matched -# and left as it is -# - * (the star character, alone). In this case, anything will -# match and be left as it is. For example, using * on the -# position of the artifact field will match any artifact id -# - a regular expression of the form s/match/replace/ -# in this case, elements that match are transformed using -# the regex rule. -# All elements much match before a rule can be applied -# Example rule: match jar with groupid= junit, artifactid= junit -# and version starting with 3., replacing the version with 3.x -# junit junit jar s/3\\..*/3.x/ +junit junit jar s/3\..*/3.x/ -junit junit jar s/3\..*/3.x/ * * -org.apache.commons commons-parent pom s/.*/debian/ * *
  10. Download patch debian/patches/OSGi_Manifest.patch

    --- 2.6-3/debian/patches/OSGi_Manifest.patch 1970-01-01 00:00:00.000000000 +0000 +++ 2.6-3ubuntu1/debian/patches/OSGi_Manifest.patch 2011-08-02 20:02:40.000000000 +0000 @@ -0,0 +1,94 @@ +Description: Add OSGi metadata +Author: Ludovic Claude <ludovic.claude@laposte.net> +Forwarded: no +Last-Update: 2011-08-02 + +--- libcommons-lang-java-2.6.orig/build.xml ++++ libcommons-lang-java-2.6/build.xml +@@ -30,7 +30,7 @@ + <property file="${basedir}/build.properties"/> + <property file="${basedir}/default.properties"/> + <!-- The Sun Javadoc for versions prior to 1.3 are off-line. --> +- <property name="jdk.javadoc" value="http://java.sun.com/j2se/1.3/docs/api/"/> ++ <property name="jdk.javadoc" value="file:///usr/share/doc/default-jdk-doc/api/"/> + + <!-- ========== Construct compile classpath =============================== --> + <path id="compile.classpath"> +@@ -52,8 +52,12 @@ + <filter token="version" value="${component.version}"/> + <filter token="compile.source" value="${compile.source}"/> + <filter token="compile.target" value="${compile.target}"/> ++ <filter token="lastmodified" value="${lastmodified}"/> + <mkdir dir="${build.home}"/> + <available property="jdk.1.5.present" classname="java.lang.StringBuilder"/> ++ <copy todir="${build.home}/conf" filtering="on"> ++ <fileset dir="${conf.home}" includes="*.MF"/> ++ </copy> + </target> + + <!-- ========== Compile Targets ========================================= --> +@@ -159,18 +163,7 @@ + <mkdir dir="${build.home}/classes/META-INF"/> + <copy file="LICENSE.txt" tofile="${build.home}/classes/META-INF/LICENSE.txt"/> + <copy file="NOTICE.txt" tofile="${build.home}/classes/META-INF/NOTICE.txt"/> +- <jar jarfile="${build.home}/${final.name}.jar"> +- <manifest> +- <attribute name="Specification-Title" value="Commons Lang"/> +- <attribute name="Specification-Version" value="${component.version}"/> +- <attribute name="Specification-Vendor" value="The Apache Software Foundation"/> +- <attribute name="Implementation-Title" value="Commons Lang"/> +- <attribute name="Implementation-Version" value="${component.version}"/> +- <attribute name="Implementation-Vendor" value="The Apache Software Foundation"/> +- <attribute name="Implementation-Vendor-Id" value="org.apache"/> +- <attribute name="X-Compile-Source-JDK" value="${compile.source}"/> +- <attribute name="X-Compile-Target-JDK" value="${compile.target}"/> +- </manifest> ++ <jar jarfile="${build.home}/${final.name}.jar" manifest="${build.home}/conf/MANIFEST.MF"> + <fileset dir="${build.home}/classes"> + <include name="**/*.class"/> + <include name="**/LICENSE.txt"/> +--- /dev/null ++++ libcommons-lang-java-2.6/src/conf/MANIFEST.MF +@@ -0,0 +1,42 @@ ++Manifest-Version: 1.0 ++Package: org.apache.commons.lang ++Extension-Name: commons-lang ++Specification-Version: @version@ ++Specification-Vendor: The Apache Software Foundation ++Specification-Title: Commons Lang ++Implementation-Version: @version@ ++Implementation-Vendor: The Apache Software Foundation ++Implementation-Title: Commons Lang ++Implementation-Vendor-Id: org.apache ++X-Compile-Source-JDK: @compile.source@ ++X-Compile-Target-JDK: @compile.target@ ++Bundle-License: http://www.apache.org/licenses/LICENSE-2.0.txt ++Import-Package: org.apache.commons.lang;version="@version@", ++ org.apache.commons.lang.builder;version="@version@", ++ org.apache.commons.lang.enum;version="@version@", ++ org.apache.commons.lang.enums;version="@version@", ++ org.apache.commons.lang.exception;version="@version@", ++ org.apache.commons.lang.math;version="@version@", ++ org.apache.commons.lang.mutable;version="@version@", ++ org.apache.commons.lang.text;version="@version@", ++ org.apache.commons.lang.time;version="@version@" ++Bnd-LastModified: @lastmodified@ ++Export-Package: org.apache.commons.lang.math;version="@version@", ++ org.apache.commons.lang.enums;version="@version@", ++ org.apache.commons.lang.builder;version="@version@", ++ org.apache.commons.lang.exception;version="@version@", ++ org.apache.commons.lang.enum;version="@version@", ++ org.apache.commons.lang.mutable;version="@version@", ++ org.apache.commons.lang.text;version="@version@", ++ org.apache.commons.lang.time;version="@version@", ++ org.apache.commons.lang;version="@version@" ++Bundle-Version: @version@ ++Bundle-Description: Commons Lang, a package of Java utility classes fo ++ r the classes that are in java.lang's hierarchy, or are considered ++ to be so standard as to justify existence in java.lang. ++Bundle-Name: Commons Lang ++Bundle-DocURL: http://commons.apache.org/lang/ ++Bundle-ManifestVersion: 2 ++Bundle-Vendor: The Apache Software Foundation ++Bundle-SymbolicName: org.apache.commons.lang ++Tool: Bnd-0.0.238
  11. Download patch src/conf/MANIFEST.MF

    --- 2.6-3/src/conf/MANIFEST.MF 1970-01-01 00:00:00.000000000 +0000 +++ 2.6-3ubuntu1/src/conf/MANIFEST.MF 2011-12-14 15:54:17.000000000 +0000 @@ -0,0 +1,42 @@ +Manifest-Version: 1.0 +Package: org.apache.commons.lang +Extension-Name: commons-lang +Specification-Version: @version@ +Specification-Vendor: The Apache Software Foundation +Specification-Title: Commons Lang +Implementation-Version: @version@ +Implementation-Vendor: The Apache Software Foundation +Implementation-Title: Commons Lang +Implementation-Vendor-Id: org.apache +X-Compile-Source-JDK: @compile.source@ +X-Compile-Target-JDK: @compile.target@ +Bundle-License: http://www.apache.org/licenses/LICENSE-2.0.txt +Import-Package: org.apache.commons.lang;version="@version@", + org.apache.commons.lang.builder;version="@version@", + org.apache.commons.lang.enum;version="@version@", + org.apache.commons.lang.enums;version="@version@", + org.apache.commons.lang.exception;version="@version@", + org.apache.commons.lang.math;version="@version@", + org.apache.commons.lang.mutable;version="@version@", + org.apache.commons.lang.text;version="@version@", + org.apache.commons.lang.time;version="@version@" +Bnd-LastModified: @lastmodified@ +Export-Package: org.apache.commons.lang.math;version="@version@", + org.apache.commons.lang.enums;version="@version@", + org.apache.commons.lang.builder;version="@version@", + org.apache.commons.lang.exception;version="@version@", + org.apache.commons.lang.enum;version="@version@", + org.apache.commons.lang.mutable;version="@version@", + org.apache.commons.lang.text;version="@version@", + org.apache.commons.lang.time;version="@version@", + org.apache.commons.lang;version="@version@" +Bundle-Version: @version@ +Bundle-Description: Commons Lang, a package of Java utility classes fo + r the classes that are in java.lang's hierarchy, or are considered + to be so standard as to justify existence in java.lang. +Bundle-Name: Commons Lang +Bundle-DocURL: http://commons.apache.org/lang/ +Bundle-ManifestVersion: 2 +Bundle-Vendor: The Apache Software Foundation +Bundle-SymbolicName: org.apache.commons.lang +Tool: Bnd-0.0.238
  12. Download patch debian/libcommons-lang-java-doc.poms

    --- 2.6-3/debian/libcommons-lang-java-doc.poms 2011-11-13 23:40:09.000000000 +0000 +++ 2.6-3ubuntu1/debian/libcommons-lang-java-doc.poms 1970-01-01 00:00:00.000000000 +0000 @@ -1,26 +0,0 @@ -# List of POM files for the package -# Format of this file is: -# <path to pom file> [option]* -# where option can be: -# --ignore: ignore this POM or -# --no-parent: remove the <parent> tag from the POM -# --package=<package>: an alternative package to use when installing this POM -# and its artifact -# --has-package-version: to indicate that the original version of the POM is the same as the upstream part -# of the version for the package. -# --keep-elements=<elem1,elem2>: a list of XML elements to keep in the POM -# during a clean operation with mh_cleanpom or mh_installpom -# --artifact=<path>: path to the build artifact associated with this POM, -# it will be installed when using the command mh_install -# --java-lib: install the jar into /usr/share/java to comply with Debian -# packaging guidelines -# --usj-name=<name>: name to use when installing the library in /usr/share/java -# --usj-version=<version>: version to use when installing the library in /usr/share/java -# --no-usj-versionless: don't install the versionless link in /usr/share/java -# --dest-jar=<path>: the destination for the real jar -# it will be installed with mh_install. -# --classifier=<classifier>: Optional, the classifier for the jar. Empty by default. -# --ignore-pom: don't install the POM with mh_install or mh_installpoms. To use with POM files that are created -# temporarily for certain artifacts such as Javadoc jars. -# -pom.xml --ignore-pom --has-package-version --artifact=target/commons-lang-*-javadoc.jar --classifier=javadoc
  13. Download patch debian/libcommons-lang-java-doc.docs

    --- 2.6-3/debian/libcommons-lang-java-doc.docs 1970-01-01 00:00:00.000000000 +0000 +++ 2.6-3ubuntu1/debian/libcommons-lang-java-doc.docs 2011-08-02 16:51:38.000000000 +0000 @@ -0,0 +1 @@ +build/api
  14. Download patch debian/patches/series

    --- 2.6-3/debian/patches/series 1970-01-01 00:00:00.000000000 +0000 +++ 2.6-3ubuntu1/debian/patches/series 2009-07-02 12:07:30.000000000 +0000 @@ -0,0 +1 @@ +OSGi_Manifest.patch
  15. Download patch .pc/OSGi_Manifest.patch/build.xml
  16. Download patch build.xml

    --- 2.6-3/build.xml 2011-01-13 23:05:11.000000000 +0000 +++ 2.6-3ubuntu1/build.xml 2011-12-14 15:54:17.000000000 +0000 @@ -30,7 +30,7 @@ <property file="${basedir}/build.properties"/> <property file="${basedir}/default.properties"/> <!-- The Sun Javadoc for versions prior to 1.3 are off-line. --> - <property name="jdk.javadoc" value="http://java.sun.com/j2se/1.3/docs/api/"/> + <property name="jdk.javadoc" value="file:///usr/share/doc/default-jdk-doc/api/"/> <!-- ========== Construct compile classpath =============================== --> <path id="compile.classpath"> @@ -52,8 +52,12 @@ <filter token="version" value="${component.version}"/> <filter token="compile.source" value="${compile.source}"/> <filter token="compile.target" value="${compile.target}"/> + <filter token="lastmodified" value="${lastmodified}"/> <mkdir dir="${build.home}"/> <available property="jdk.1.5.present" classname="java.lang.StringBuilder"/> + <copy todir="${build.home}/conf" filtering="on"> + <fileset dir="${conf.home}" includes="*.MF"/> + </copy> </target> <!-- ========== Compile Targets ========================================= --> @@ -159,18 +163,7 @@ <mkdir dir="${build.home}/classes/META-INF"/> <copy file="LICENSE.txt" tofile="${build.home}/classes/META-INF/LICENSE.txt"/> <copy file="NOTICE.txt" tofile="${build.home}/classes/META-INF/NOTICE.txt"/> - <jar jarfile="${build.home}/${final.name}.jar"> - <manifest> - <attribute name="Specification-Title" value="Commons Lang"/> - <attribute name="Specification-Version" value="${component.version}"/> - <attribute name="Specification-Vendor" value="The Apache Software Foundation"/> - <attribute name="Implementation-Title" value="Commons Lang"/> - <attribute name="Implementation-Version" value="${component.version}"/> - <attribute name="Implementation-Vendor" value="The Apache Software Foundation"/> - <attribute name="Implementation-Vendor-Id" value="org.apache"/> - <attribute name="X-Compile-Source-JDK" value="${compile.source}"/> - <attribute name="X-Compile-Target-JDK" value="${compile.target}"/> - </manifest> + <jar jarfile="${build.home}/${final.name}.jar" manifest="${build.home}/conf/MANIFEST.MF"> <fileset dir="${build.home}/classes"> <include name="**/*.class"/> <include name="**/LICENSE.txt"/>
  17. Download patch debian/maven.ignoreRules

    --- 2.6-3/debian/maven.ignoreRules 2011-11-13 23:40:09.000000000 +0000 +++ 2.6-3ubuntu1/debian/maven.ignoreRules 1970-01-01 00:00:00.000000000 +0000 @@ -1,17 +0,0 @@ -# Maven ignore rules - ignore some Maven dependencies and plugins -# Format of this file is: -# [group] [artifact] [type] [version] [classifier] [scope] -# where each element can be either -# - the exact string, for example org.apache for the group, or 3.1 -# for the version. In this case, the element is simply matched -# and left as it is -# - * (the star character, alone). In this case, anything will -# match and be left as it is. For example, using * on the -# position of the artifact field will match any artifact id -# All elements much match before a rule can be applied -# Example rule: match jar with groupid= junit, artifactid= junit -# and version starting with 3., this dependency is then removed -# from the POM -# junit junit jar s/3\\..*/3.x/ - -org.apache.maven.plugins maven-assembly-plugin * * * *
  18. Download patch debian/libcommons-lang-java.poms

    --- 2.6-3/debian/libcommons-lang-java.poms 2011-11-13 23:40:09.000000000 +0000 +++ 2.6-3ubuntu1/debian/libcommons-lang-java.poms 2009-07-02 12:07:30.000000000 +0000 @@ -1,27 +1 @@ -# List of POM files for the package -# Format of this file is: -# <path to pom file> [option]* -# where option can be: -# --ignore: ignore this POM or -# --no-parent: remove the <parent> tag from the POM -# --package=<package>: an alternative package to use when installing this POM -# and its artifact -# --has-package-version: to indicate that the original version of the POM is the same as the upstream part -# of the version for the package. -# --keep-elements=<elem1,elem2>: a list of XML elements to keep in the POM -# during a clean operation with mh_cleanpom or mh_installpom -# --artifact=<path>: path to the build artifact associated with this POM, -# it will be installed when using the command mh_install -# --java-lib: install the jar into /usr/share/java to comply with Debian -# packaging guidelines -# --usj-name=<name>: name to use when installing the library in /usr/share/java -# --usj-version=<version>: version to use when installing the library in /usr/share/java -# --no-usj-versionless: don't install the versionless link in /usr/share/java -# --dest-jar=<path>: the destination for the real jar -# it will be installed with mh_install. -# --classifier=<classifier>: Optional, the classifier for the jar. Empty by default. -# --ignore-pom: don't install the POM with mh_install or mh_installpoms. To use with POM files that are created -# temporarily for certain artifacts such as Javadoc jars. -# -pom.xml --has-package-version --artifact=target/commons-lang.bnd.jar --java-lib - +pom.xml --no-parent
  19. Download patch debian/build-classpath

    --- 2.6-3/debian/build-classpath 2011-11-13 23:40:09.000000000 +0000 +++ 2.6-3ubuntu1/debian/build-classpath 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -/usr/share/java/junit.jar
  20. Download patch debian/copyright

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: libcommons-net2-java

libcommons-net2-java (2.2-1ubuntu1) precise; urgency=low * Updates to support Ubuntu MIR (LP: #876413): - d/build.properties: enable test suite execution - d/control: Added junit to B-D's to support testing. - d/rules: Added ant-junit and junit to DEB_JARS to support testing. - d/maven-build.xml: Exclude tests that require network access, fail build when tests fail. * d/control: Bumped Standards-Version: 3.9.2, no changes -- James Page <james.page@ubuntu.com> Tue, 18 Oct 2011 15:26:44 +0100

Modifications :
  1. Download patch debian/build.properties

    --- 2.2-1/debian/build.properties 2011-10-19 10:54:03.000000000 +0000 +++ 2.2-1ubuntu1/debian/build.properties 2011-10-19 10:54:03.000000000 +0000 @@ -1,5 +1,4 @@ javadoc.dir=build/docs/api -maven.test.skip=true +#maven.test.skip=true build.javaVersion=1.5 manifest=debian/tmp/MANIFEST.MF -
  2. Download patch debian/rules

    --- 2.2-1/debian/rules 2011-10-19 10:54:03.000000000 +0000 +++ 2.2-1ubuntu1/debian/rules 2011-10-19 10:54:03.000000000 +0000 @@ -9,7 +9,7 @@ include /usr/share/cdbs/1/class/ant.mk PACKAGE := $(DEB_SOURCE_PACKAGE) VERSION := $(DEB_UPSTREAM_VERSION) JAVA_HOME := /usr/lib/jvm/default-java -DEB_JARS := ant-nodeps +DEB_JARS := ant-nodeps ant-junit junit DEB_ANT_BUILD_TARGET := package javadoc # work with a slightly modified version of maven-ant-helper's build file: DEB_ANT_BUILDFILE := debian/maven-build.xml
  3. Download patch debian/control

    --- 2.2-1/debian/control 2011-10-19 10:54:03.000000000 +0000 +++ 2.2-1ubuntu1/debian/control 2011-10-19 10:54:03.000000000 +0000 @@ -1,11 +1,12 @@ Source: libcommons-net2-java Section: java Priority: optional -Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> Uploaders: Ludovic Claude <ludovic.claude@laposte.net> Build-Depends: debhelper (>= 7), cdbs, default-jdk -Build-Depends-Indep: ant, ant-optional, maven-ant-helper, maven-repo-helper, default-jdk-doc -Standards-Version: 3.9.1 +Build-Depends-Indep: ant, ant-optional, maven-ant-helper, maven-repo-helper, default-jdk-doc, junit +Standards-Version: 3.9.2 Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/libcommons-net2-java Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/trunk/libcommons-net2-java/ Homepage: http://commons.apache.org/net/
  4. Download patch debian/maven-build.xml

    --- 2.2-1/debian/maven-build.xml 2011-10-19 10:54:03.000000000 +0000 +++ 2.2-1ubuntu1/debian/maven-build.xml 2011-10-19 10:54:03.000000000 +0000 @@ -320,7 +320,7 @@ <target name="test" depends="test-compile" unless="maven.test.skip"> <mkdir dir="${build.directory}/test-output"/> - <junit printsummary="yes" haltonfailure="no"> <!-- fork="yes" forkmode="once" --> + <junit printsummary="yes" haltonfailure="yes"> <!-- fork="yes" forkmode="once" --> <sysproperty key="basedir" value="${basedir}"/> <classpath> <pathelement path="${classpath.full.test}"/> @@ -331,6 +331,8 @@ <fileset dir="${build.testSourceDirectory}"> <include name="**/*Test.java"/> <exclude name="**/Abstract*"/> + <exclude name="**/*FunctionalTest.java"/> + <exclude name="**/POP3*"/> <exclude name="${maven.test.exclude}"/> </fileset> </batchtest>

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: libhibernate3-java

libhibernate3-java (3.6.9.Final-2ubuntu2) precise; urgency=low * Deploy all jars with --java-lib option enabled to ensure artifacts get deployed to /usr/share/java (LP: #959525). -- James Page <james.page@ubuntu.com> Mon, 19 Mar 2012 17:41:33 +0000 libhibernate3-java (3.6.9.Final-2ubuntu1) precise; urgency=low * Merge from Debian testing. Remaining changes: - d/rules: Use upstream version number when deciding whether to use install or package maven target for first time new upstream release builds. -- James Page <james.page@ubuntu.com> Thu, 09 Feb 2012 17:05:07 +0000

Modifications :
  1. Download patch debian/rules

    --- 3.6.9.Final-2/debian/rules 2012-01-13 20:10:35.000000000 +0000 +++ 3.6.9.Final-2ubuntu2/debian/rules 2012-03-19 17:46:02.000000000 +0000 @@ -9,12 +9,10 @@ DEB_BUILDDIR := $(CURDIR)/projec # Avoid incremental builds when packaging a new upstream release by # using the maven install target to ensure that artifacts are installed -ifeq ($(shell echo -n $(DEB_VERSION) | sed -sre 's/^.*-(.*)$$/\1/'),1) -ifneq ($(shell dpkg-query -W -f='$${Version}' $(DEB_SOURCE_PACKAGE)),\ - $(shell echo -n $(DEB_VERSION))) +ifneq ($(shell dpkg-query -W -f='$${Version}' $(DEB_SOURCE_PACKAGE) | sed -rne 's,^([^+]+)-.*,\1,p'),\ + $(shell echo -n $(DEB_UPSTREAM_VERSION))) DEB_MAVEN_BUILD_TARGET := install endif -endif clean:: -rm -rf debian/null mvn-build
  2. Download patch debian/control

    --- 3.6.9.Final-2/debian/control 2011-12-25 16:54:50.000000000 +0000 +++ 3.6.9.Final-2ubuntu2/debian/control 2012-03-19 17:27:24.000000000 +0000 @@ -1,7 +1,8 @@ Source: libhibernate3-java Section: java Priority: optional -Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> Uploaders: Torsten Werner <twerner@debian.org>, Varun Hiremath <varun@debian.org>, Damien Raude-Morvan <drazzib@debian.org>, Miguel Landaeta <miguel@miguel.cc> DM-Upload-Allowed: yes
  3. Download patch debian/libhibernate3-java.poms

    --- 3.6.9.Final-2/debian/libhibernate3-java.poms 2011-12-25 16:54:50.000000000 +0000 +++ 3.6.9.Final-2ubuntu2/debian/libhibernate3-java.poms 2012-03-19 17:33:46.000000000 +0000 @@ -1,15 +1,15 @@ project/pom.xml --no-parent -project/hibernate-parent/pom.xml -project/hibernate-core/pom.xml -project/hibernate-testing/pom.xml -project/hibernate-testsuite/pom.xml -project/hibernate-ehcache/pom.xml -project/hibernate-jbosscache/pom.xml -project/hibernate-oscache/pom.xml -project/hibernate-swarmcache/pom.xml -project/hibernate-c3p0/pom.xml -project/hibernate-proxool/pom.xml -project/hibernate-entitymanager/pom.xml -project/hibernate-envers/pom.xml -project/hibernate-jdbc3-testing/pom.xml -project/hibernate-infinispan/pom.xml +project/hibernate-parent/pom.xml --java-lib +project/hibernate-core/pom.xml --java-lib +project/hibernate-testing/pom.xml --java-lib +project/hibernate-testsuite/pom.xml --java-lib +project/hibernate-ehcache/pom.xml --java-lib +project/hibernate-jbosscache/pom.xml --java-lib +project/hibernate-oscache/pom.xml --java-lib +project/hibernate-swarmcache/pom.xml --java-lib +project/hibernate-c3p0/pom.xml --java-lib +project/hibernate-proxool/pom.xml --java-lib +project/hibernate-entitymanager/pom.xml --java-lib +project/hibernate-envers/pom.xml --java-lib +project/hibernate-jdbc3-testing/pom.xml --java-lib +project/hibernate-infinispan/pom.xml --java-lib

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: libi18n-java

libi18n-java (0.1.3a-4ubuntu1) precise; urgency=low * Fix FTBFS with OpenJDK7 (LP: #888962): - d/ant.properties: Specify source/target as 1.5 for javac and javadoc ant tasks to ensure backwards compatibility and work around Java 7 encoding errors. -- James Page <james.page@ubuntu.com> Wed, 14 Dec 2011 12:39:18 +0000

Modifications :
  1. Download patch debian/control

    --- 0.1.3a-4/debian/control 2011-12-14 14:23:10.000000000 +0000 +++ 0.1.3a-4ubuntu1/debian/control 2011-12-14 14:23:10.000000000 +0000 @@ -1,7 +1,8 @@ Source: libi18n-java Section: java Priority: optional -Maintainer: Debian QA Group <packages@qa.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian QA Group <packages@qa.debian.org> Build-Depends: debhelper (>= 7), cdbs, ant, default-jdk Standards-Version: 3.8.3 Homepage: http://jhraigniac.freesurf.fr/i18n-lib/
  2. Download patch debian/ant.properties

    --- 0.1.3a-4/debian/ant.properties 1970-01-01 00:00:00.000000000 +0000 +++ 0.1.3a-4ubuntu1/debian/ant.properties 2011-12-14 14:23:10.000000000 +0000 @@ -0,0 +1,4 @@ +# 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 ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: libjaxp1.3-java

libjaxp1.3-java (1.3.05-2ubuntu2) precise; urgency=low * No-change rebuild to drop spurious libsfgcc1 dependency on armhf. -- Adam Conrad <adconrad@0c3.net> Fri, 02 Dec 2011 20:59:58 -0700 libjaxp1.3-java (1.3.05-2ubuntu1) precise; urgency=low * Merge with Debian; remaining changes: -- Matthias Klose <doko@ubuntu.com> Thu, 01 Dec 2011 17:46:28 +0100

Modifications :
  1. Download patch debian/control

    --- 1.3.05-2/debian/control 2011-11-15 22:58:39.000000000 +0000 +++ 1.3.05-2ubuntu2/debian/control 2011-12-01 16:48:34.000000000 +0000 @@ -1,7 +1,8 @@ Source: libjaxp1.3-java Section: java Priority: optional -Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> Uploaders: Matthias Klose <doko@ubuntu.com>, Michael Koch <konqueror@gmx.de>, Jakub Adam <jakub.adam@ktknet.cz> Build-Depends: cdbs, debhelper (>= 7), default-jdk, maven-repo-helper, @@ -15,7 +16,7 @@ Package: libjaxp1.3-java Architecture: all Depends: ${misc:Depends} Suggests: libjaxp1.3-java-gcj -Conflicts: libxalan2-java (<= 2.7.1-2) +Conflicts: libxalan2-java (<= 2.7.1-3) Description: Java XML parser and transformer APIs (DOM, SAX, JAXP, TrAX) xml-apis.jar from the Apache XML Commons project is used by the Xerces-J XML parser and Xalan-J XSLT processor and specifies these APIs:

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: libjibx1.1-java

libjibx1.1-java (1.1.6a-3ubuntu1) precise; urgency=low * Drop libjibx-java binary package, now built by libjibx1.2-java instead. -- Colin Watson <cjwatson@ubuntu.com> Mon, 23 Jan 2012 11:24:35 +0000

Modifications :
  1. Download patch debian/rules

    --- 1.1.6a-3/debian/rules 2011-10-22 21:35:36.000000000 +0000 +++ 1.1.6a-3ubuntu1/debian/rules 2012-01-23 11:07:33.000000000 +0000 @@ -30,8 +30,3 @@ install/libjibx$(DEB_UPSTREAM_VERSION_2) dh_link -plibjibx$(DEB_UPSTREAM_VERSION_2)-java usr/share/java/jibx-run-$(DEB_UPSTREAM_VERSION).jar \ usr/share/java/jibx-run-$(DEB_UPSTREAM_VERSION_2).jar ; \ fi - -install/libjibx-java:: - dh_link -plibjibx-java usr/share/java/jibx-bind-$(DEB_UPSTREAM_VERSION).jar usr/share/java/jibx-bind.jar - dh_link -plibjibx-java usr/share/java/jibx-extras-$(DEB_UPSTREAM_VERSION).jar usr/share/java/jibx-extras.jar - dh_link -plibjibx-java usr/share/java/jibx-run-$(DEB_UPSTREAM_VERSION).jar usr/share/java/jibx-run.jar
  2. Download patch debian/control

    --- 1.1.6a-3/debian/control 2011-10-24 21:19:29.000000000 +0000 +++ 1.1.6a-3ubuntu1/debian/control 2012-01-23 11:08:04.000000000 +0000 @@ -1,7 +1,8 @@ Source: libjibx1.1-java Section: java Priority: optional -Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> Uploaders: Eric Lavarde <deb@zorglub.s.bawue.de>, Michael Koch <konqueror@gmx.de>, Steffen Moeller <moeller@debian.org>, Douglas Kirkland <kirkland@canonical.com> DM-upload-allowed: yes @@ -26,20 +27,6 @@ Description: Framework for binding XML d with very high efficiency, but still allows you a high degree of control over the translation process. -Package: libjibx-java -Architecture: all -Depends: libjibx1.1-java, ${misc:Depends} -Description: Framework for binding XML data to Java objects - JiBX lets you work with data from XML documents using your own class - structures. The JiBX framework handles all the details of converting - your data to and from XML based on your instructions. JiBX is designed - to perform the translation between internal data structures and XML - with very high efficiency, but still allows you a high degree of - control over the translation process. - . - This package provides the jibx.jar file as a symbolic link to the - versioned jar. - Package: libjibx1.1-java-doc Section: doc Architecture: all

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: libmx4j-java

libmx4j-java (3.0.2-12ubuntu1) precise; urgency=low * d/control: Drop optional jython dependencies to reduce main requirements in Ubuntu. -- James Page <james.page@ubuntu.com> Wed, 19 Oct 2011 16:39:43 +0100

Modifications :
  1. Download patch debian/control

    --- 3.0.2-12/debian/control 2011-09-23 20:03:12.000000000 +0000 +++ 3.0.2-12ubuntu1/debian/control 2011-10-19 15:43:53.000000000 +0000 @@ -1,12 +1,13 @@ Source: libmx4j-java Section: java Priority: optional -Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> Uploaders: Michael Koch <konqueror@gmx.de>, Damien Raude-Morvan <drazzib@debian.org>, Niels Thykier <niels@thykier.net> Build-Depends: cdbs, debhelper (>= 7), default-jdk, ant, liblog4j1.2-java, libcommons-logging-java, libbcel-java (>=5.0), - libgnujaf-java, libgnumail-java, libservlet2.5-java, jython, + libgnujaf-java, libgnumail-java, libservlet2.5-java, libaxis-java, javahelper, libhessian-java Standards-Version: 3.9.2 Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/libmx4j-java @@ -18,7 +19,7 @@ Architecture: all Depends: libbcel-java (>=5.0), liblog4j1.2-java, ${misc:Depends} -Suggests: libservlet2.5-java, libgnumail-java, jython, libjetty-java, libhessian-java +Suggests: libservlet2.5-java, libgnumail-java, libjetty-java, libhessian-java Description: Open Source implementation of the JMX(TM) technology JMX defines the architecture, the patterns , the API and services to build manageable Java applications. It provide flexible framework to

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: libproxool-java

libproxool-java (0.9.1-4ubuntu1) maverick; urgency=low * Change build dependency libservlet2.4-java to libservlet2.5-java. -- Onkar Shinde <onkarshinde@ubuntu.com> Sun, 15 Aug 2010 21:53:44 +0530

Modifications :
  1. Download patch debian/rules

    --- 0.9.1-4/debian/rules 2010-05-21 22:11:23.000000000 +0100 +++ 0.9.1-4ubuntu1/debian/rules 2010-08-19 07:59:26.000000000 +0100 @@ -6,7 +6,7 @@ include /usr/share/cdbs/1/rules/debhelpe JAVA_HOME := /usr/lib/jvm/default-java DEB_ANT_BUILD_TARGET := jar javadoc DEB_ANT_BUILDFILE := debian/build.xml -DEB_JARS := commons-logging servlet-api jsp-api cglib avalon-framework junit log4j-1.2 logkit hsqldb +DEB_JARS := commons-logging servlet-api-2.5 jsp-api-2.1 cglib avalon-framework junit log4j-1.2 logkit hsqldb DEB_ANT_ARGS := -Dbuild.sysclasspath=last DEB_ANT_CHECK_TARGET := test
  2. Download patch debian/control

    --- 0.9.1-4/debian/control 2010-05-21 22:11:35.000000000 +0100 +++ 0.9.1-4ubuntu1/debian/control 2010-08-19 07:59:26.000000000 +0100 @@ -1,11 +1,12 @@ Source: libproxool-java Section: java Priority: optional -Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> Uploaders: Varun Hiremath <varun@debian.org>, Torsten Werner <twerner@debian.org> Build-Depends: cdbs, debhelper (>= 7), maven-repo-helper Build-Depends-Indep: ant, default-jdk, libavalon-framework-java, - libcommons-logging-java, libservlet2.4-java, libcglib-java, junit, liblog4j1.2-java, libexcalibur-logkit-java, libhsqldb-java + libcommons-logging-java, libservlet2.5-java, libcglib-java, junit, liblog4j1.2-java, libexcalibur-logkit-java, libhsqldb-java Standards-Version: 3.8.4 Homepage: http://proxool.sourceforge.net/ Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/libproxool-java

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: maven-debian-helper

The Changelog was not found or an error occured while reading it!

Modifications :
  1. Download patch debian/control

    --- 1.5/debian/control 2012-01-25 21:05:47.000000000 +0000 +++ 1.5ubuntu1/debian/control 2012-03-26 08:25:41.000000000 +0000 @@ -1,7 +1,8 @@ Source: maven-debian-helper Section: java Priority: optional -Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> Uploaders: Torsten Werner <twerner@debian.org>, Ludovic Claude <ludovic.claude@laposte.net>, Michael Koch <konqueror@gmx.de>, Damien Raude-Morvan <drazzib@debian.org> Build-Depends: cdbs, debhelper (>= 7), default-jdk, maven-ant-helper (>= 7.0), ant-optional, help2man
  2. Download patch maven-debian-plugin/src/main/java/org/debian/maven/plugin/SysInstallMojo.java

    --- 1.5/maven-debian-plugin/src/main/java/org/debian/maven/plugin/SysInstallMojo.java 2012-01-25 21:05:47.000000000 +0000 +++ 1.5ubuntu1/maven-debian-plugin/src/main/java/org/debian/maven/plugin/SysInstallMojo.java 2012-03-26 08:22:06.000000000 +0000 @@ -460,7 +460,6 @@ public class SysInstallMojo extends Abst if (jarFile.exists()) { System.out.println("Install jar for " + artifactId + " into /usr/share/java"); mkdir(compatSharePath()); - FileUtils.copyFile(jarFile, new File(jarDestPath())); if (noUsjVersionless) { FileUtils.copyFile(jarFile, new File(versionedFullCompatPath())); } else {

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: maven-repo-helper

maven-repo-helper (1.7.1ubuntu1) precise; urgency=low * Merge from Debian testing. Remaining changes: - Removed Build-Depend on markdown (universe) - disabled generation of HTML documentation -- James Page <james.page@ubuntu.com> Tue, 07 Feb 2012 14:49:59 +0000

Modifications :
  1. Download patch debian/rules

    --- 1.7.1/debian/rules 2012-01-25 21:02:22.000000000 +0000 +++ 1.7.1ubuntu1/debian/rules 2012-02-05 05:14:22.000000000 +0000 @@ -42,17 +42,13 @@ debian/.mh/mh_% : src/main/bin/mh_% debi chmod +x $@ debian/.mh/doc: mkdir -p debian/.mh/doc - markdown --html4tags doc/tutorial.txt | \ - cat doc/tutorial-header.html - doc/tutorial-footer.html > debian/.mh/doc/tutorial.html + cp doc/tutorial.txt debian/.mh/doc cat doc/reference.txt doc/ref/mh_cleanpom.txt doc/ref/mh_installpom.txt doc/ref/mh_installpoms.txt doc/ref/mh_patchpom.txt \ doc/ref/mh_patchpoms.txt doc/ref/mh_unpatchpoms.txt doc/reference2.txt doc/ref/mh_installjar.txt \ doc/ref/mh_linkjar.txt doc/ref/mh_linkjars.txt doc/reference3.txt doc/ref/mh_clean.txt doc/ref/mh_installsite.txt \ doc/ref/mh_install.txt doc/reference4.txt doc/ref/mh_checkrepo.txt doc/reference5.txt \ doc/ref/dh_with_maven_repo_helper.txt doc/ref/dh_with_jh_maven_repo_helper.txt > debian/.mh/doc/reference.txt - markdown --html4tags debian/.mh/doc/reference.txt | \ - cat doc/reference-header.html - doc/reference-footer.html > debian/.mh/doc/reference.html - markdown --html4tags doc/repository.txt | \ - cat doc/repository-header.html - doc/repository-footer.html > debian/.mh/doc/repository.html + cp doc/repository.txt debian/.mh/doc debian/.mh/doc/mh_%.1 : debian/.mh/mh_% help2man -N -n $(mh_$*_description) -o $@ $< @@ -73,7 +69,7 @@ binary-post-install/$(PACKAGE):: debian/.mh/$(PACKAGE)-debian.pom debian/.mh/pom.properties dh_install -p$(PACKAGE) --sourcedir=debian/.mh $(PACKAGE)-debian.pom \ usr/share/maven-repo/org/debian/maven/$(PACKAGE)/debian - dh_install -p$(PACKAGE) --sourcedir=debian/.mh/doc tutorial.html reference.html repository.html usr/share/doc/maven-repo-helper + dh_install -p$(PACKAGE) --sourcedir=debian/.mh/doc tutorial.txt reference.txt repository.txt usr/share/doc/maven-repo-helper clean:: -rm -rf debian/.mh
  2. Download patch debian/control

    --- 1.7.1/debian/control 2012-01-25 21:02:22.000000000 +0000 +++ 1.7.1ubuntu1/debian/control 2012-02-05 05:14:22.000000000 +0000 @@ -1,9 +1,10 @@ Source: maven-repo-helper Section: java Priority: optional -Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> Uploaders: Ludovic Claude <ludovic.claude@laposte.net>, Damien Raude-Morvan <drazzib@debian.org> -Build-Depends: debhelper (>= 7), cdbs, default-jdk, ant, help2man, markdown +Build-Depends: debhelper (>= 7), cdbs, default-jdk, ant, help2man Build-Depends-Indep: ant-optional, libstax-java, junit, libxmlunit-java, libcommons-io-java Standards-Version: 3.9.2 Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/maven-repo-helper/
  3. Download patch debian/README.Debian

    --- 1.7.1/debian/README.Debian 2012-01-25 21:02:22.000000000 +0000 +++ 1.7.1ubuntu1/debian/README.Debian 2012-02-05 05:14:22.000000000 +0000 @@ -4,5 +4,5 @@ or where upstream uses another build too at /usr/share/maven-repo with the necessary metadata - in Maven terms, POM files - and make them available to other projects. -A tutorial is available at /usr/share/doc/maven-repo/tutorial.html +A tutorial is available at /usr/share/doc/maven-repo/tutorial.txt

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: solr

solr (1.4.1+dfsg1-2ubuntu2) oneiric; urgency=low * Update to support removal of libcommons-fileupload-java-universe from archive (LP: #845541): - debian/control: Drop references to libcommons-fileupload-java-universe. * Fix misc FTBFS: - debian/ant.properties: Upgrade lucene2 2.9.3 -> 2.9.4 - debian/rules: Update call to ant to use debian/ant.properties -- James Page <james.page@ubuntu.com> Fri, 09 Sep 2011 13:13:57 +0100 solr (1.4.1+dfsg1-2ubuntu1) natty; urgency=low * Merge from debian unstable. Remaining changes: - Bump lucene version to 2.9.3 - debian/control: Add libcommons-fileupload-java-universe | to Depends * Dropped change: (superceeded in debian): - Adding lucene-memory.jar to the /usr/share/solr/WEB-INF/lib links to avoid errors when using complex queries -- Bhavani Shankar <bhavi@ubuntu.com> Tue, 07 Dec 2010 11:11:16 +0530

Modifications :
  1. Download patch debian/rules

    --- 1.4.1+dfsg1-2/debian/rules 2010-12-02 13:10:45.000000000 +0000 +++ 1.4.1+dfsg1-2ubuntu2/debian/rules 2011-09-09 11:58:46.000000000 +0000 @@ -6,7 +6,7 @@ export JAVA_HOME=/usr/lib/jvm/default-ja dh $@ override_dh_auto_build: - ant -Dversion=1.4.1 init-forrest-entities dist-solrj dist-jar dist-contrib compile make-manifest + ant -Dversion=1.4.1 -propertyfile debian/ant.properties init-forrest-entities dist-solrj dist-jar dist-contrib compile make-manifest ##!/usr/bin/make -f
  2. Download patch debian/control

    --- 1.4.1+dfsg1-2/debian/control 2010-12-06 10:18:03.000000000 +0000 +++ 1.4.1+dfsg1-2ubuntu2/debian/control 2011-09-09 11:08:31.000000000 +0000 @@ -1,7 +1,8 @@ Source: solr Section: java Priority: optional -Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> Uploaders: Jan-Pascal van Best <janpascal@vanbest.org>, Thomas Koch <thomas@koch.ro> DM-Upload-Allowed: yes Homepage: http://lucene.apache.org/solr/
  3. Download patch debian/ant.properties

    --- 1.4.1+dfsg1-2/debian/ant.properties 2010-12-02 13:10:45.000000000 +0000 +++ 1.4.1+dfsg1-2ubuntu2/debian/ant.properties 2011-09-09 11:57:07.000000000 +0000 @@ -8,4 +8,4 @@ build.compiler=javac1.5 compile.debug=on compile.optimize=on ant.library.dir=/usr/share/ant/lib -lucene_version=2.9.2 +lucene_version=2.9.4

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: stylebook

stylebook (1.0~b3~svn20061109-5ubuntu1) precise; urgency=low * Fix FTBFS with OpenJDK 7 (LP: #888127); - d/rules: Specify source/target = 1.5 for all javac commands to ensure backwards compatibility and workaround Java 7 encoding errors. -- James Page <james.page@ubuntu.com> Tue, 06 Dec 2011 14:27:24 +0000

Modifications :
  1. Download patch debian/rules

    --- 1.0~b3~svn20061109-5/debian/rules 2011-11-27 01:24:40.000000000 +0000 +++ 1.0~b3~svn20061109-5ubuntu1/debian/rules 2011-12-06 14:27:22.000000000 +0000 @@ -14,7 +14,8 @@ DEB_CLASSPATH = $(shell for jar in $(DEB done; \ if [ -f "$(JAVA_HOME)/lib/tools.jar" ]; then echo -n "$(JAVA_HOME)/lib/tools.jar"; fi) -DEB_ANT_ARGS := -Dbin.dir=build +DEB_ANT_ARGS := -Dbin.dir=build -Dant.build.javac.source=1.5 \ + -Dant.build.javac.target=1.5 ANT_INVOKE := $(JAVACMD) -classpath $(DEB_CLASSPATH) \ org.apache.tools.ant.Main $(DEB_ANT_ARGS)
  2. Download patch debian/control

    --- 1.0~b3~svn20061109-5/debian/control 2011-11-27 01:30:50.000000000 +0000 +++ 1.0~b3~svn20061109-5ubuntu1/debian/control 2011-12-06 14:28:33.000000000 +0000 @@ -1,7 +1,8 @@ Source: stylebook Section: java Priority: optional -Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> Uploaders: Michael Koch <konqueror@gmx.de>, Jakub Adam <jakub.adam@ktknet.cz> Build-Depends: debhelper (>= 8) Build-Depends-Indep: default-jdk, ant, javahelper (>= 0.33~), libxerces2-java

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: tiles

tiles (2.2.2-2ubuntu1) precise; urgency=low * Merge from debian testing. Remaining changes: - Build-depend/suggest libmvel2-java instead of libmvel-java. -- Angel Abad <angelabad@ubuntu.com> Sat, 15 Oct 2011 15:10:32 +0200

Modifications :
  1. Download patch debian/control

    --- 2.2.2-2/debian/control 2011-08-20 11:14:31.000000000 +0000 +++ 2.2.2-2ubuntu1/debian/control 2011-10-15 13:10:25.000000000 +0000 @@ -1,12 +1,13 @@ Source: tiles Section: java Priority: optional -Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> Uploaders: Damien Raude-Morvan <drazzib@debian.org> Build-Depends: cdbs, debhelper (>= 7), default-jdk, maven-ant-helper Build-Depends-Indep: libcommons-digester-java, libslf4j-java, libognl-java, libservlet2.5-java, libtomcat6-java, libspring-core-java, libspring-web-java, - libfreemarker-java, maven-repo-helper, libmvel-java + libfreemarker-java, maven-repo-helper, libmvel2-java Standards-Version: 3.9.2 Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/tiles/ Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/trunk/tiles/ @@ -16,7 +17,7 @@ Package: libtiles-java Architecture: all Depends: ${misc:Depends}, libcommons-digester-java, libslf4j-java Suggests: libservlet2.5-java, libognl-java, libtomcat6-java, libfreemarker-java, - libspring-core-java, libspring-web-java, libmvel-java + libspring-core-java, libspring-web-java, libmvel2-java Description: Java templating framework for web application user interfaces Apache Tiles is a Java templating framework built to simplify the development of web application user interfaces. Tiles allows authors to define page

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: tomcat6

tomcat6 (6.0.35-3ubuntu1) quantal; urgency=low * Merge from Debian Unstable, remaining changes: - d/tomcat6-instance-create: Quote access to files and directories so that spaces can be used when creating user instances. - d/tomcat6.init: Make NAME dynamic, to allow starting multiple instances. -- James Page <james.page@ubuntu.com> Thu, 03 May 2012 16:09:04 +0100

Modifications :
  1. Download patch .pc/0011-CVE-2012-0022-regression-fix.patch/java/org/apache/tomcat/util/http/LocalStrings.properties

    --- 6.0.35-1/.pc/0011-CVE-2012-0022-regression-fix.patch/java/org/apache/tomcat/util/http/LocalStrings.properties 1970-01-01 00:00:00.000000000 +0000 +++ 6.0.35-1ubuntu3/.pc/0011-CVE-2012-0022-regression-fix.patch/java/org/apache/tomcat/util/http/LocalStrings.properties 2011-11-12 08:36:55.000000000 +0000 @@ -0,0 +1,23 @@ +# 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. + +parameters.bytes=Start processing with input [{0}] +parameters.copyFail=Failed to create copy of original parameter values for debug logging purposes +parameters.decodeFail.debug=Character decoding failed. Parameter [{0}] with value [{1}] has been ignored. +parameters.decodeFail.info=Character decoding failed. Parameter [{0}] with value [{1}] has been ignored. Note that the name and value quoted here may be corrupted due to the failed decoding. Use debug level logging to see the original, non-corrupted values. +parameters.invalidChunk=Invalid chunk starting at byte [{0}] and ending at byte [{1}] with a value of [{2}] ignored +parameters.maxCountFail=More than the maximum number of request parameters (GET plus POST) for a single request ([{0}]) were detected. Any parameters beyond this limit have been ignored. To change this limit, set the maxParameterCount attribute on the Connector. +parameters.multipleDecodingFail=Character decoding failed. A total of [{0}] failures were detected but only the first was logged. Enable debug level logging for this logger to log all failures. +parameters.noequal=Parameter starting at position [{0}] and ending at position [{1}] with a value of [{0}] was not followed by an '=' character
  2. Download patch .pc/0011-CVE-2012-0022-regression-fix.patch/java/org/apache/tomcat/util/http/Parameters.java
  3. Download patch debian/tomcat6-instance-create

    --- 6.0.35-1/debian/tomcat6-instance-create 2011-12-13 06:47:05.000000000 +0000 +++ 6.0.35-1ubuntu3/debian/tomcat6-instance-create 2012-04-11 09:29:07.000000000 +0000 @@ -117,38 +117,38 @@ if [ ${warned} -eq 1 ]; then read answer fi -mkdir -p ${TARGET} +mkdir -p "${TARGET}" -FULLTARGET=`cd ${TARGET} > /dev/null && pwd` +FULLTARGET=`cd "${TARGET}" > /dev/null && pwd` -mkdir ${TARGET}/conf -mkdir ${TARGET}/logs -mkdir ${TARGET}/webapps -mkdir ${TARGET}/work -mkdir ${TARGET}/temp -cp -r /usr/share/tomcat6/skel/* ${TARGET} +mkdir "${TARGET}/conf" +mkdir "${TARGET}/logs" +mkdir "${TARGET}/webapps" +mkdir "${TARGET}/work" +mkdir "${TARGET}/temp" +cp -r /usr/share/tomcat6/skel/* "${TARGET}" # Create necessary symbolic links so that eclipse can be properly configured -ln -s /usr/share/tomcat6/lib ${TARGET}/lib -ln -s /usr/share/tomcat6/bin/bootstrap.jar ${TARGET}/bin/bootstrap.jar +ln -s /usr/share/tomcat6/lib "${TARGET}/lib" +ln -s /usr/share/tomcat6/bin/bootstrap.jar "${TARGET}/bin/bootstrap.jar" -sed -i -e "s/Connector port=\"8080\"/Connector port=\"${HPORT}\"/;s/Server port=\"8005\" shutdown=\"SHUTDOWN\"/Server port=\"${CPORT}\" shutdown=\"${CWORD}\"/" ${TARGET}/conf/server.xml +sed -i -e "s/Connector port=\"8080\"/Connector port=\"${HPORT}\"/;s/Server port=\"8005\" shutdown=\"SHUTDOWN\"/Server port=\"${CPORT}\" shutdown=\"${CWORD}\"/" "${TARGET}/conf/server.xml" -cat > ${TARGET}/bin/startup.sh << EOT +cat > "${TARGET}/bin/startup.sh" << EOT #!/bin/sh -export CATALINA_BASE=${FULLTARGET} +export CATALINA_BASE="${FULLTARGET}" /usr/share/tomcat6/bin/startup.sh echo "Tomcat started" EOT -cat > ${TARGET}/bin/shutdown.sh << EOT +cat > "${TARGET}/bin/shutdown.sh" << EOT #!/bin/sh -export CATALINA_BASE=${FULLTARGET} +export CATALINA_BASE="${FULLTARGET}" /usr/share/tomcat6/bin/shutdown.sh echo "Tomcat stopped" EOT -chmod a+x ${TARGET}/bin/startup.sh ${TARGET}/bin/shutdown.sh +chmod a+x "${TARGET}/bin/startup.sh" "${TARGET}/bin/shutdown.sh" echo "* New Tomcat instance created in ${TARGET}" echo "* You might want to edit default configuration in ${TARGET}/conf" echo "* Run ${TARGET}/bin/startup.sh to start your Tomcat instance"
  4. Download patch debian/control

    --- 6.0.35-1/debian/control 2011-12-13 06:47:05.000000000 +0000 +++ 6.0.35-1ubuntu3/debian/control 2012-02-13 14:05:51.000000000 +0000 @@ -1,7 +1,8 @@ Source: tomcat6 Section: java Priority: optional -Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> Uploaders: Torsten Werner <twerner@debian.org>, Ludovic Claude <ludovic.claude@laposte.net>, Michael Koch <konqueror@gmx.de>, Damien Raude-Morvan <drazzib@debian.org>, Miguel Landaeta <miguel@miguel.cc>,
  5. Download patch debian/patches/0011-CVE-2012-0022-regression-fix.patch

    --- 6.0.35-1/debian/patches/0011-CVE-2012-0022-regression-fix.patch 1970-01-01 00:00:00.000000000 +0000 +++ 6.0.35-1ubuntu3/debian/patches/0011-CVE-2012-0022-regression-fix.patch 2012-02-13 14:04:42.000000000 +0000 @@ -0,0 +1,83 @@ +Description: fix regression from the CVE-2012-0022 security fix that + went into 6.0.35. +Origin: upstream, http://svn.apache.org/viewvc?view=revision&revision=1229027 +Bug: https://issues.apache.org/bugzilla/show_bug.cgi?id=52384 + +Index: tomcat6-6.0.35/java/org/apache/tomcat/util/http/LocalStrings.properties +=================================================================== +--- tomcat6-6.0.35.orig/java/org/apache/tomcat/util/http/LocalStrings.properties 2011-11-12 03:36:55.000000000 -0500 ++++ tomcat6-6.0.35/java/org/apache/tomcat/util/http/LocalStrings.properties 2012-02-13 09:03:10.865891860 -0500 +@@ -17,6 +17,7 @@ + parameters.copyFail=Failed to create copy of original parameter values for debug logging purposes + parameters.decodeFail.debug=Character decoding failed. Parameter [{0}] with value [{1}] has been ignored. + parameters.decodeFail.info=Character decoding failed. Parameter [{0}] with value [{1}] has been ignored. Note that the name and value quoted here may be corrupted due to the failed decoding. Use debug level logging to see the original, non-corrupted values. ++parameters.emptyChunk=Empty parameter chunk ignored + parameters.invalidChunk=Invalid chunk starting at byte [{0}] and ending at byte [{1}] with a value of [{2}] ignored + parameters.maxCountFail=More than the maximum number of request parameters (GET plus POST) for a single request ([{0}]) were detected. Any parameters beyond this limit have been ignored. To change this limit, set the maxParameterCount attribute on the Connector. + parameters.multipleDecodingFail=Character decoding failed. A total of [{0}] failures were detected but only the first was logged. Enable debug level logging for this logger to log all failures. +Index: tomcat6-6.0.35/java/org/apache/tomcat/util/http/Parameters.java +=================================================================== +--- tomcat6-6.0.35.orig/java/org/apache/tomcat/util/http/Parameters.java 2011-11-25 16:11:35.000000000 -0500 ++++ tomcat6-6.0.35/java/org/apache/tomcat/util/http/Parameters.java 2012-02-13 09:03:10.889891861 -0500 +@@ -314,6 +314,15 @@ + } + + if (nameEnd <= nameStart ) { ++ if (valueStart == -1) { ++ // && ++ if (log.isDebugEnabled()) { ++ log.debug(sm.getString("parameters.emptyChunk")); ++ } ++ // Do not flag as error ++ continue; ++ } ++ // &=foo& + if (log.isInfoEnabled()) { + if (valueEnd >= nameStart && log.isDebugEnabled()) { + String extract = null; +@@ -341,7 +350,11 @@ + } + + tmpName.setBytes(bytes, nameStart, nameEnd - nameStart); +- tmpValue.setBytes(bytes, valueStart, valueEnd - valueStart); ++ if (valueStart >= 0) { ++ tmpValue.setBytes(bytes, valueStart, valueEnd - valueStart); ++ } else { ++ tmpValue.setBytes(bytes, 0, 0); ++ } + + // Take copies as if anything goes wrong originals will be + // corrupted. This means original values can be logged. +@@ -349,7 +362,11 @@ + if (log.isDebugEnabled()) { + try { + origName.append(bytes, nameStart, nameEnd - nameStart); +- origValue.append(bytes, valueStart, valueEnd - valueStart); ++ if (valueStart >= 0) { ++ origValue.append(bytes, valueStart, valueEnd - valueStart); ++ } else { ++ origValue.append(bytes, 0, 0); ++ } + } catch (IOException ioe) { + // Should never happen... + log.error(sm.getString("parameters.copyFail"), ioe); +@@ -366,11 +383,15 @@ + tmpName.setCharset(charset); + name = tmpName.toString(); + +- if (decodeValue) { +- urlDecode(tmpValue); ++ if (valueStart >= 0) { ++ if (decodeValue) { ++ urlDecode(tmpValue); ++ } ++ tmpValue.setCharset(charset); ++ value = tmpValue.toString(); ++ } else { ++ value = ""; + } +- tmpValue.setCharset(charset); +- value = tmpValue.toString(); + + addParam(name, value); + } catch (IOException e) {
  6. Download patch .pc/applied-patches

    --- 6.0.35-1/.pc/applied-patches 2012-04-11 12:29:21.000000000 +0000 +++ 6.0.35-1ubuntu3/.pc/applied-patches 2012-04-11 12:29:22.000000000 +0000 @@ -7,3 +7,4 @@ 0007-add-OSGi-headers-to-servlet-api.patch 0008-add-OSGI-headers-to-jsp-api.patch 0010-Use-java.security.policy-file-in-catalina.sh.patch +0011-CVE-2012-0022-regression-fix.patch
  7. Download patch debian/patches/series

    --- 6.0.35-1/debian/patches/series 2011-12-13 06:47:05.000000000 +0000 +++ 6.0.35-1ubuntu3/debian/patches/series 2012-02-13 14:01:30.000000000 +0000 @@ -7,3 +7,4 @@ 0007-add-OSGi-headers-to-servlet-api.patch 0008-add-OSGI-headers-to-jsp-api.patch 0010-Use-java.security.policy-file-in-catalina.sh.patch +0011-CVE-2012-0022-regression-fix.patch
  8. Download patch java/org/apache/tomcat/util/http/LocalStrings.properties

    --- 6.0.35-1/java/org/apache/tomcat/util/http/LocalStrings.properties 2011-11-12 08:36:55.000000000 +0000 +++ 6.0.35-1ubuntu3/java/org/apache/tomcat/util/http/LocalStrings.properties 2012-04-11 12:29:22.000000000 +0000 @@ -17,6 +17,7 @@ parameters.bytes=Start processing with i parameters.copyFail=Failed to create copy of original parameter values for debug logging purposes parameters.decodeFail.debug=Character decoding failed. Parameter [{0}] with value [{1}] has been ignored. parameters.decodeFail.info=Character decoding failed. Parameter [{0}] with value [{1}] has been ignored. Note that the name and value quoted here may be corrupted due to the failed decoding. Use debug level logging to see the original, non-corrupted values. +parameters.emptyChunk=Empty parameter chunk ignored parameters.invalidChunk=Invalid chunk starting at byte [{0}] and ending at byte [{1}] with a value of [{2}] ignored parameters.maxCountFail=More than the maximum number of request parameters (GET plus POST) for a single request ([{0}]) were detected. Any parameters beyond this limit have been ignored. To change this limit, set the maxParameterCount attribute on the Connector. parameters.multipleDecodingFail=Character decoding failed. A total of [{0}] failures were detected but only the first was logged. Enable debug level logging for this logger to log all failures.
  9. Download patch java/org/apache/tomcat/util/http/Parameters.java

    --- 6.0.35-1/java/org/apache/tomcat/util/http/Parameters.java 2011-11-25 21:11:35.000000000 +0000 +++ 6.0.35-1ubuntu3/java/org/apache/tomcat/util/http/Parameters.java 2012-04-11 12:29:22.000000000 +0000 @@ -314,6 +314,15 @@ public final class Parameters { } if (nameEnd <= nameStart ) { + if (valueStart == -1) { + // && + if (log.isDebugEnabled()) { + log.debug(sm.getString("parameters.emptyChunk")); + } + // Do not flag as error + continue; + } + // &=foo& if (log.isInfoEnabled()) { if (valueEnd >= nameStart && log.isDebugEnabled()) { String extract = null; @@ -341,7 +350,11 @@ public final class Parameters { } tmpName.setBytes(bytes, nameStart, nameEnd - nameStart); - tmpValue.setBytes(bytes, valueStart, valueEnd - valueStart); + if (valueStart >= 0) { + tmpValue.setBytes(bytes, valueStart, valueEnd - valueStart); + } else { + tmpValue.setBytes(bytes, 0, 0); + } // Take copies as if anything goes wrong originals will be // corrupted. This means original values can be logged. @@ -349,7 +362,11 @@ public final class Parameters { if (log.isDebugEnabled()) { try { origName.append(bytes, nameStart, nameEnd - nameStart); - origValue.append(bytes, valueStart, valueEnd - valueStart); + if (valueStart >= 0) { + origValue.append(bytes, valueStart, valueEnd - valueStart); + } else { + origValue.append(bytes, 0, 0); + } } catch (IOException ioe) { // Should never happen... log.error(sm.getString("parameters.copyFail"), ioe); @@ -366,11 +383,15 @@ public final class Parameters { tmpName.setCharset(charset); name = tmpName.toString(); - if (decodeValue) { - urlDecode(tmpValue); + if (valueStart >= 0) { + if (decodeValue) { + urlDecode(tmpValue); + } + tmpValue.setCharset(charset); + value = tmpValue.toString(); + } else { + value = ""; } - tmpValue.setCharset(charset); - value = tmpValue.toString(); addParam(name, value); } catch (IOException e) {
  10. Download patch debian/tomcat6.init

    --- 6.0.35-1/debian/tomcat6.init 2011-12-13 06:47:05.000000000 +0000 +++ 6.0.35-1ubuntu3/debian/tomcat6.init 2012-03-16 14:28:08.000000000 +0000 @@ -23,7 +23,7 @@ set -e PATH=/bin:/usr/bin:/sbin:/usr/sbin -NAME=tomcat6 +NAME="$(basename "$0" | sed 's/^[KS][0-9]\{2\}//')" DESC="Tomcat servlet engine" DEFAULT=/etc/default/$NAME JVM_TMP=/tmp/tomcat6-$NAME-tmp

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: xmlgraphics-commons

xmlgraphics-commons (1.4.dfsg-4ubuntu1) precise; urgency=low * Merge from Debian testing (LP: #922893). Remaining changes: - debian/rules: commented in junit ant-junit to DEB_ANT_JARS to enable test suite execution. - debian/patches/enable-testsuite.patch: patch in system libraries and patch out failing tests (see patch for details of why). - debian/rules: use /usr/lib/jvm/default-java for build. - debian/control: Build-Depends: switched to default-jdk. -- James Page <james.page@ubuntu.com> Thu, 09 Feb 2012 15:58:23 +0000

Modifications :
  1. Download patch debian/rules

    --- 1.4.dfsg-4/debian/rules 2011-11-24 22:55:23.000000000 +0000 +++ 1.4.dfsg-4ubuntu1/debian/rules 2012-02-09 15:57:51.000000000 +0000 @@ -5,10 +5,9 @@ include /usr/share/cdbs/1/class/ant.mk export VERSION = $(shell echo $(DEB_UPSTREAM_VERSION) | sed -e 's/.dfsg.*//') -JAVA_HOME := $(firstword $(wildcard /usr/lib/jvm/java-6-openjdk-$(DEB_HOST_ARCH) /usr/lib/jvm/java-6-openjdk /usr/lib/jvm/java-6-sun)) +JAVA_HOME := /usr/lib/jvm/default-java -# no junit test at the moment -DEB_JARS := commons-io commons-logging #junit ant-junit +DEB_JARS := commons-io commons-logging junit ant-junit DEB_ANT_BUILD_TARGET := all maven-artifacts install/libxmlgraphics-commons-java::
  2. Download patch test/java/org/apache/xmlgraphics/image/writer/internal/TIFFImageWriterTest.java

    --- 1.4.dfsg-4/test/java/org/apache/xmlgraphics/image/writer/internal/TIFFImageWriterTest.java 2010-07-02 12:04:27.000000000 +0000 +++ 1.4.dfsg-4ubuntu1/test/java/org/apache/xmlgraphics/image/writer/internal/TIFFImageWriterTest.java 2012-02-09 18:51:01.000000000 +0000 @@ -37,26 +37,4 @@ public class TIFFImageWriterTest extends BufferedImage image = new BufferedImage(200, 200, BufferedImage.TYPE_BYTE_GRAY); imageWriter.writeImage(image, out); } - - public void testJPEGWritingWithoutJPEGParams() throws Exception { - //This used to generate a NPE because the JPEG encoding params were not set - OutputStream out = new NullOutputStream(); - org.apache.xmlgraphics.image.writer.ImageWriter imageWriter = new TIFFImageWriter(); - MultiImageWriter writer = null; - try { - writer = imageWriter.createMultiImageWriter(out); - // retrieve writer - if (imageWriter != null) { - ImageWriterParams iwp = new ImageWriterParams(); - iwp.setCompressionMethod("JPEG"); - - for (int pageNumber = 0; pageNumber <= 2; pageNumber++) { - BufferedImage image = new BufferedImage(200, 200, BufferedImage.TYPE_BYTE_GRAY); - writer.writeImage(image, iwp); - } - } - } finally { - writer.close(); - } - } }
  3. Download patch test/java/org/apache/xmlgraphics/xmp/XMPParserTest.java

    --- 1.4.dfsg-4/test/java/org/apache/xmlgraphics/xmp/XMPParserTest.java 2010-07-02 12:04:26.000000000 +0000 +++ 1.4.dfsg-4ubuntu1/test/java/org/apache/xmlgraphics/xmp/XMPParserTest.java 2012-02-09 18:51:01.000000000 +0000 @@ -164,19 +164,4 @@ public class XMPParserTest extends TestC assertEquals(cal.getTime(), dcAdapter.getDate()); } - public void testParseEmptyValues() throws Exception { - URL url = getClass().getResource("empty-values.xmp"); - Metadata meta = XMPParser.parseXMP(url); - - DublinCoreAdapter dc = DublinCoreSchema.getAdapter(meta); - String title = dc.getTitle(); - assertEquals("empty", title); - - title = dc.getTitle("fr"); //Does not exist - assertNull(title); - - title = dc.getTitle("de"); - assertNull(title); //Empty value treated same as not existant - } - }
  4. Download patch debian/control

    --- 1.4.dfsg-4/debian/control 2011-11-24 22:55:23.000000000 +0000 +++ 1.4.dfsg-4ubuntu1/debian/control 2012-02-09 15:58:19.000000000 +0000 @@ -1,13 +1,14 @@ Source: xmlgraphics-commons Section: java Priority: optional -Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> DM-Upload-Allowed: yes Uploaders: Michael Koch <konqueror@gmx.de>, Vincent Fourmond <fourmond@debian.org>, Mathieu Malaterre <mathieu.malaterre@gmail.com> -Build-Depends: debhelper (>= 7), cdbs -Build-Depends-Indep: openjdk-6-jdk | sun-java6-jdk, ant-optional, - libcommons-io-java (>= 1.3.1), junit, libcommons-logging-java, maven-repo-helper +Build-Depends: debhelper (>= 7), cdbs, default-jdk, maven-repo-helper +Build-Depends-Indep: ant-optional, libcommons-io-java (>= 1.3.1), + junit, libcommons-logging-java Standards-Version: 3.9.2 Homepage: http://xmlgraphics.apache.org/commons/ Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/xmlgraphics-commons
  5. Download patch .pc/enable-testsuite.patch/test/java/org/apache/xmlgraphics/xmp/XMPParserTest.java

    --- 1.4.dfsg-4/.pc/enable-testsuite.patch/test/java/org/apache/xmlgraphics/xmp/XMPParserTest.java 1970-01-01 00:00:00.000000000 +0000 +++ 1.4.dfsg-4ubuntu1/.pc/enable-testsuite.patch/test/java/org/apache/xmlgraphics/xmp/XMPParserTest.java 2010-07-02 12:04:26.000000000 +0000 @@ -0,0 +1,182 @@ +/* + * 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. + */ + +/* $Id: XMPParserTest.java 889803 2009-12-11 20:36:36Z jeremias $ */ + +package org.apache.xmlgraphics.xmp; + +import java.net.URL; +import java.util.Calendar; +import java.util.Date; +import java.util.TimeZone; + +import junit.framework.TestCase; + +import org.apache.xmlgraphics.xmp.schemas.DublinCoreAdapter; +import org.apache.xmlgraphics.xmp.schemas.DublinCoreSchema; +import org.apache.xmlgraphics.xmp.schemas.XMPBasicAdapter; +import org.apache.xmlgraphics.xmp.schemas.XMPBasicSchema; +import org.apache.xmlgraphics.xmp.schemas.pdf.AdobePDFAdapter; +import org.apache.xmlgraphics.xmp.schemas.pdf.AdobePDFSchema; + +/** + * Tests for the XMP parser. + */ +public class XMPParserTest extends TestCase { + + public void testParseBasics() throws Exception { + URL url = getClass().getResource("test-basics.xmp"); + Metadata meta = XMPParser.parseXMP(url); + + DublinCoreAdapter dcAdapter = DublinCoreSchema.getAdapter(meta); + XMPBasicAdapter basicAdapter = XMPBasicSchema.getAdapter(meta); + AdobePDFAdapter pdfAdapter = AdobePDFSchema.getAdapter(meta); + + XMPProperty prop; + prop = meta.getProperty(XMPConstants.DUBLIN_CORE_NAMESPACE, "creator"); + XMPArray array; + array = prop.getArrayValue(); + assertEquals(1, array.getSize()); + assertEquals("John Doe", array.getValue(0).toString()); + assertEquals("John Doe", dcAdapter.getCreators()[0]); + + prop = meta.getProperty(XMPConstants.DUBLIN_CORE_NAMESPACE, "title"); + assertEquals("Example document", prop.getValue().toString()); + assertEquals("Example document", dcAdapter.getTitle()); + prop = meta.getProperty(XMPConstants.XMP_BASIC_NAMESPACE, "CreateDate"); + //System.out.println("Creation Date: " + prop.getValue() + " " + prop.getClass().getName()); + prop = meta.getProperty(XMPConstants.XMP_BASIC_NAMESPACE, "CreatorTool"); + assertEquals("An XML editor", prop.getValue().toString()); + assertEquals("An XML editor", basicAdapter.getCreatorTool()); + prop = meta.getProperty(XMPConstants.ADOBE_PDF_NAMESPACE, "Producer"); + assertEquals("Apache FOP Version SVN trunk", prop.getValue().toString()); + assertEquals("Apache FOP Version SVN trunk", pdfAdapter.getProducer()); + prop = meta.getProperty(XMPConstants.ADOBE_PDF_NAMESPACE, "PDFVersion"); + assertEquals("1.4", prop.getValue().toString()); + assertEquals("1.4", pdfAdapter.getPDFVersion()); + } + + public void testParse1() throws Exception { + URL url = getClass().getResource("unknown-schema.xmp"); + Metadata meta = XMPParser.parseXMP(url); + + DublinCoreAdapter dcAdapter = DublinCoreSchema.getAdapter(meta); + + XMPProperty prop; + //Access through the known schema as reference + prop = meta.getProperty(XMPConstants.DUBLIN_CORE_NAMESPACE, "title"); + assertEquals("Unknown Schema", prop.getValue().toString()); + assertEquals("Unknown Schema", dcAdapter.getTitle()); + + //Access through a schema unknown to the XMP framework + prop = meta.getProperty("http://unknown.org/something", "dummy"); + assertEquals("Dummy!", prop.getValue().toString()); + } + + public void testParseStructures() throws Exception { + URL url = getClass().getResource("test-structures.xmp"); + Metadata meta = XMPParser.parseXMP(url); + + XMPProperty prop; + + String testns = "http://foo.bar/test/"; + prop = meta.getProperty(testns, "something"); + assertEquals("blablah", prop.getValue().toString()); + + prop = meta.getProperty(testns, "ingredients"); + XMPArray array = prop.getArrayValue(); + assertEquals(3, array.getSize()); + XMPStructure struct = array.getStructure(0); + assertEquals(2, struct.getPropertyCount()); + prop = struct.getValueProperty(); + assertEquals("Apples", prop.getValue()); + prop = struct.getProperty(testns, "amount"); + assertEquals("4", prop.getValue()); + + prop = meta.getProperty(testns, "villain"); + XMPProperty prop1; + prop1 = prop.getStructureValue().getProperty(testns, "name"); + assertEquals("Darth Sidious", prop1.getValue()); + prop1 = prop.getStructureValue().getProperty(testns, "other-name"); + assertEquals("Palpatine", prop1.getValue()); + + //Test shorthand form + prop = meta.getProperty(testns, "project"); + prop1 = prop.getStructureValue().getProperty(testns, "name"); + assertEquals("Apache XML Graphics", prop1.getValue()); + prop1 = prop.getStructureValue().getProperty(testns, "url"); + assertEquals("http://xmlgraphics.apache.org/", prop1.getValue()); + + } + + public void testAttributeValues() throws Exception { + URL url = getClass().getResource("test-attribute-values.xmp"); + Metadata meta = XMPParser.parseXMP(url); + + DublinCoreAdapter dcAdapter = DublinCoreSchema.getAdapter(meta); + assertEquals("Ender's Game", dcAdapter.getTitle()); + assertEquals("Orson Scott Card", dcAdapter.getCreators()[0]); + } + + public void testParseDates() throws Exception { + URL url = getClass().getResource("test-dates.xmp"); + Metadata meta = XMPParser.parseXMP(url); + XMPProperty prop; + + DublinCoreAdapter dcAdapter = DublinCoreSchema.getAdapter(meta); + + //Simple adapter access + Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("GMT+2:00")); + cal.set(2006, Calendar.JUNE, 2, 10, 36, 40); + cal.set(Calendar.MILLISECOND, 0); + assertEquals(cal.getTime(), dcAdapter.getDate()); + Date[] dates = dcAdapter.getDates(); + assertEquals(2, dates.length); + + //The second is the most recent and should match the simple value + assertEquals(dates[1], dcAdapter.getDate()); + + prop = meta.getProperty(XMPConstants.DUBLIN_CORE_NAMESPACE, "date"); + assertNotNull(prop.getArrayValue()); + assertEquals(2, prop.getArrayValue().getSize()); + + //Now add a new date and check if the adapter's getDate() method returns the new date. + cal.set(2008, Calendar.NOVEMBER, 1, 10, 10, 0); + dcAdapter.addDate(cal.getTime()); + assertEquals(3, dcAdapter.getDates().length); + prop = meta.getProperty(XMPConstants.DUBLIN_CORE_NAMESPACE, "date"); + assertNotNull(prop.getArrayValue()); + assertEquals(3, prop.getArrayValue().getSize()); + assertEquals(cal.getTime(), dcAdapter.getDate()); + } + + public void testParseEmptyValues() throws Exception { + URL url = getClass().getResource("empty-values.xmp"); + Metadata meta = XMPParser.parseXMP(url); + + DublinCoreAdapter dc = DublinCoreSchema.getAdapter(meta); + String title = dc.getTitle(); + assertEquals("empty", title); + + title = dc.getTitle("fr"); //Does not exist + assertNull(title); + + title = dc.getTitle("de"); + assertNull(title); //Empty value treated same as not existant + } + +}
  6. Download patch .pc/enable-testsuite.patch/test/java/org/apache/xmlgraphics/image/writer/internal/TIFFImageWriterTest.java

    --- 1.4.dfsg-4/.pc/enable-testsuite.patch/test/java/org/apache/xmlgraphics/image/writer/internal/TIFFImageWriterTest.java 1970-01-01 00:00:00.000000000 +0000 +++ 1.4.dfsg-4ubuntu1/.pc/enable-testsuite.patch/test/java/org/apache/xmlgraphics/image/writer/internal/TIFFImageWriterTest.java 2010-07-02 12:04:27.000000000 +0000 @@ -0,0 +1,62 @@ +/* + * 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. + */ + +/* $Id: TIFFImageWriterTest.java 750418 2009-03-05 11:03:54Z vhennebert $ */ + +package org.apache.xmlgraphics.image.writer.internal; + +import java.awt.image.BufferedImage; +import java.io.OutputStream; + +import junit.framework.TestCase; + +import org.apache.commons.io.output.NullOutputStream; +import org.apache.xmlgraphics.image.writer.ImageWriterParams; +import org.apache.xmlgraphics.image.writer.MultiImageWriter; + +public class TIFFImageWriterTest extends TestCase { + + public void testJPEGWritingWithoutParams() throws Exception { + //This used to generate a NPE when no ImageWriterParams were not set + OutputStream out = new NullOutputStream(); + org.apache.xmlgraphics.image.writer.ImageWriter imageWriter = new TIFFImageWriter(); + BufferedImage image = new BufferedImage(200, 200, BufferedImage.TYPE_BYTE_GRAY); + imageWriter.writeImage(image, out); + } + + public void testJPEGWritingWithoutJPEGParams() throws Exception { + //This used to generate a NPE because the JPEG encoding params were not set + OutputStream out = new NullOutputStream(); + org.apache.xmlgraphics.image.writer.ImageWriter imageWriter = new TIFFImageWriter(); + MultiImageWriter writer = null; + try { + writer = imageWriter.createMultiImageWriter(out); + // retrieve writer + if (imageWriter != null) { + ImageWriterParams iwp = new ImageWriterParams(); + iwp.setCompressionMethod("JPEG"); + + for (int pageNumber = 0; pageNumber <= 2; pageNumber++) { + BufferedImage image = new BufferedImage(200, 200, BufferedImage.TYPE_BYTE_GRAY); + writer.writeImage(image, iwp); + } + } + } finally { + writer.close(); + } + } +}
  7. Download patch .pc/applied-patches

    --- 1.4.dfsg-4/.pc/applied-patches 2012-02-09 18:51:01.000000000 +0000 +++ 1.4.dfsg-4ubuntu1/.pc/applied-patches 2012-02-09 18:51:01.000000000 +0000 @@ -1,2 +1,3 @@ xml-top-level.patch xml-rdf-resource.patch +enable-testsuite.patch
  8. Download patch debian/patches/series

    --- 1.4.dfsg-4/debian/patches/series 2010-12-20 20:45:00.000000000 +0000 +++ 1.4.dfsg-4ubuntu1/debian/patches/series 2011-12-05 06:09:21.000000000 +0000 @@ -1,2 +1,3 @@ xml-top-level.patch xml-rdf-resource.patch +enable-testsuite.patch
  9. Download patch debian/patches/enable-testsuite.patch

    --- 1.4.dfsg-4/debian/patches/enable-testsuite.patch 1970-01-01 00:00:00.000000000 +0000 +++ 1.4.dfsg-4ubuntu1/debian/patches/enable-testsuite.patch 2011-07-11 13:15:39.000000000 +0000 @@ -0,0 +1,90 @@ +Description: Enabled testsuite during build process by patching + in system libraries for commons-[io|logging].jar, disable tests + that cause issues during build process: + . + * TIFFImageWriterTest: testJPEGWritingWithoutJPEGParams exceed + maximum array size/runs out of memory? + * XMPParserTest: ParseEmptyValues throws and exception; suspect + that this is a difference between Java 1.4 and 1.6 JAX-P. + . +Author: James Page <james.page@ubuntu.com +Forwarded: not-needed + +Index: xmlgraphics-commons/build.xml +=================================================================== +--- xmlgraphics-commons.orig/build.xml 2011-07-11 14:13:51.486226021 +0100 ++++ xmlgraphics-commons/build.xml 2011-07-11 14:15:36.576225956 +0100 +@@ -43,7 +43,7 @@ + <property name="src.dir" value="${basedir}/src"/> + <property name="src.java.dir" value="${src.dir}/java"/> + <property name="src.res.dir" value="${src.dir}/resources"/> +- <property name="lib.dir" value="${basedir}/lib"/> ++ <property name="lib.dir" value="/usr/share/java"/> + + <property name="build.dir" value="${basedir}/build"/> + <property name="build.classes.dir" value="${build.dir}/classes"/> +@@ -64,7 +64,8 @@ + + <path id="libs-build-classpath"> + <fileset dir="${lib.dir}"> +- <include name="*.jar"/> ++ <include name="commons-io.jar"/> ++ <include name="commons-logging.jar"/> + </fileset> + </path> + +Index: xmlgraphics-commons/test/java/org/apache/xmlgraphics/xmp/XMPParserTest.java +=================================================================== +--- xmlgraphics-commons.orig/test/java/org/apache/xmlgraphics/xmp/XMPParserTest.java 2011-07-11 14:13:51.466226021 +0100 ++++ xmlgraphics-commons/test/java/org/apache/xmlgraphics/xmp/XMPParserTest.java 2011-07-11 14:13:58.006226016 +0100 +@@ -164,19 +164,4 @@ + assertEquals(cal.getTime(), dcAdapter.getDate()); + } + +- public void testParseEmptyValues() throws Exception { +- URL url = getClass().getResource("empty-values.xmp"); +- Metadata meta = XMPParser.parseXMP(url); +- +- DublinCoreAdapter dc = DublinCoreSchema.getAdapter(meta); +- String title = dc.getTitle(); +- assertEquals("empty", title); +- +- title = dc.getTitle("fr"); //Does not exist +- assertNull(title); +- +- title = dc.getTitle("de"); +- assertNull(title); //Empty value treated same as not existant +- } +- + } +Index: xmlgraphics-commons/test/java/org/apache/xmlgraphics/image/writer/internal/TIFFImageWriterTest.java +=================================================================== +--- xmlgraphics-commons.orig/test/java/org/apache/xmlgraphics/image/writer/internal/TIFFImageWriterTest.java 2011-07-11 14:13:51.446226021 +0100 ++++ xmlgraphics-commons/test/java/org/apache/xmlgraphics/image/writer/internal/TIFFImageWriterTest.java 2011-07-11 14:13:58.006226016 +0100 +@@ -37,26 +37,4 @@ + BufferedImage image = new BufferedImage(200, 200, BufferedImage.TYPE_BYTE_GRAY); + imageWriter.writeImage(image, out); + } +- +- public void testJPEGWritingWithoutJPEGParams() throws Exception { +- //This used to generate a NPE because the JPEG encoding params were not set +- OutputStream out = new NullOutputStream(); +- org.apache.xmlgraphics.image.writer.ImageWriter imageWriter = new TIFFImageWriter(); +- MultiImageWriter writer = null; +- try { +- writer = imageWriter.createMultiImageWriter(out); +- // retrieve writer +- if (imageWriter != null) { +- ImageWriterParams iwp = new ImageWriterParams(); +- iwp.setCompressionMethod("JPEG"); +- +- for (int pageNumber = 0; pageNumber <= 2; pageNumber++) { +- BufferedImage image = new BufferedImage(200, 200, BufferedImage.TYPE_BYTE_GRAY); +- writer.writeImage(image, iwp); +- } +- } +- } finally { +- writer.close(); +- } +- } + }
  10. Download patch .pc/enable-testsuite.patch/build.xml
  11. Download patch build.xml

    --- 1.4.dfsg-4/build.xml 2010-07-02 12:04:26.000000000 +0000 +++ 1.4.dfsg-4ubuntu1/build.xml 2012-02-09 18:51:01.000000000 +0000 @@ -43,7 +43,7 @@ <property name="src.dir" value="${basedir}/src"/> <property name="src.java.dir" value="${src.dir}/java"/> <property name="src.res.dir" value="${src.dir}/resources"/> - <property name="lib.dir" value="${basedir}/lib"/> + <property name="lib.dir" value="/usr/share/java"/> <property name="build.dir" value="${basedir}/build"/> <property name="build.classes.dir" value="${build.dir}/classes"/> @@ -64,7 +64,8 @@ <path id="libs-build-classpath"> <fileset dir="${lib.dir}"> - <include name="*.jar"/> + <include name="commons-io.jar"/> + <include name="commons-logging.jar"/> </fileset> </path>

Debian ( Changelog | PTS | Bugs ) Ubuntu ( Changelog | txt | LP | Bugs ) | Diff from Ubuntu

Source: zookeeper

zookeeper (3.3.5+dfsg1-1ubuntu1) precise; urgency=low * d/patches/fixes/ZOOKEEPER-1431: Fix up memory leak in zookeeper python binding which results in significant memory growth for large result sets (LP: #963280). Thanks to Johan Rydberg for identifying this bug and Kapil Thangavelu for the patch. -- James Page <james.page@ubuntu.com> Fri, 23 Mar 2012 17:33:38 +0000

Modifications :
  1. Download patch debian/control

    --- 3.3.5+dfsg1-1/debian/control 2012-03-21 21:23:25.000000000 +0000 +++ 3.3.5+dfsg1-1ubuntu1/debian/control 2012-03-23 17:32:42.000000000 +0000 @@ -1,7 +1,8 @@ Source: zookeeper Section: java Priority: optional -Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> +XSBC-Original-Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> Uploaders: James Page <james.page@ubuntu.com> Homepage: http://hadoop.apache.org/zookeeper Vcs-Browser: http://git.debian.org/?p=pkg-java/zookeeper.git
  2. Download patch .pc/applied-patches

    --- 3.3.5+dfsg1-1/.pc/applied-patches 2012-03-23 19:51:07.000000000 +0000 +++ 3.3.5+dfsg1-1ubuntu1/.pc/applied-patches 2012-03-23 19:51:08.000000000 +0000 @@ -5,3 +5,4 @@ fixes/ZOOKEEPER-705 fixes/ZOOKEEPER-1033 fixes/ZOOKEEPER-1374 fixes/ZOOKEEPER-1403 +fixes/ZOOKEEPER-1431
  3. Download patch debian/patches/fixes/ZOOKEEPER-1431

    --- 3.3.5+dfsg1-1/debian/patches/fixes/ZOOKEEPER-1431 1970-01-01 00:00:00.000000000 +0000 +++ 3.3.5+dfsg1-1ubuntu1/debian/patches/fixes/ZOOKEEPER-1431 2012-03-23 17:45:49.000000000 +0000 @@ -0,0 +1,71 @@ +Description: Fix up memory leak for large results set in zk + python bindings. +Author: Kapil Thangavelu <kapil.thangavelu@canonical.com> +Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/zookeeper/+bug/963280 +Bug: https://issues.apache.org/jira/browse/ZOOKEEPER-1431 + +Index: a/src/contrib/zkpython/src/c/zookeeper.c +=================================================================== +--- a/src/contrib/zkpython/src/c/zookeeper.c (revision 1304459) ++++ b/src/contrib/zkpython/src/c/zookeeper.c (working copy) +@@ -436,7 +436,8 @@ + if (PyObject_CallObject((PyObject*)callback, arglist) == NULL) { + PyErr_Print(); + } +- if (pyw->permanent == 0 && (type != ZOO_SESSION_EVENT || is_unrecoverable(zzh) == ZINVALIDSTATE)) { ++ Py_DECREF(arglist); ++ if (pyw->permanent == 0 && (type != ZOO_SESSION_EVENT || is_unrecoverable(zzh) == ZINVALIDSTATE)) { + free_pywatcher(pyw); + } + PyGILState_Release(gstate); +@@ -457,6 +458,7 @@ + PyObject *arglist = Py_BuildValue("(i,i)", pyw->zhandle, rc); + if (PyObject_CallObject((PyObject*)callback, arglist) == NULL) + PyErr_Print(); ++ Py_DECREF(arglist); + free_pywatcher(pyw); + PyGILState_Release(gstate); + } +@@ -474,9 +476,9 @@ + PyObject *pystat = build_stat(stat); + PyObject *arglist = Py_BuildValue("(i,i,O)", pyw->zhandle,rc, pystat); + Py_DECREF(pystat); +- + if (PyObject_CallObject((PyObject*)callback, arglist) == NULL) + PyErr_Print(); ++ Py_DECREF(arglist); + free_pywatcher(pyw); + PyGILState_Release(gstate); + } +@@ -498,6 +500,7 @@ + + if (PyObject_CallObject((PyObject*)callback, arglist) == NULL) + PyErr_Print(); ++ Py_DECREF(arglist); + free_pywatcher(pyw); + PyGILState_Release(gstate); + } +@@ -518,6 +521,7 @@ + PyObject *arglist = Py_BuildValue("(i,i,O)", pyw->zhandle, rc, pystrings); + if (arglist == NULL || PyObject_CallObject((PyObject*)callback, arglist) == NULL) + PyErr_Print(); ++ Py_DECREF(arglist); + } + else + PyErr_Print(); +@@ -540,6 +544,7 @@ + PyObject *arglist = Py_BuildValue("(i,i,s)", pyw->zhandle,rc, value); + if (PyObject_CallObject((PyObject*)callback, arglist) == NULL) + PyErr_Print(); ++ Py_DECREF(arglist); + free_pywatcher(pyw); + PyGILState_Release(gstate); + } +@@ -565,6 +570,7 @@ + if (PyObject_CallObject((PyObject*)callback, arglist) == NULL) { + PyErr_Print(); + } ++ Py_DECREF(arglist); + free_pywatcher(pyw); + PyGILState_Release(gstate); + }
  4. Download patch .pc/fixes/ZOOKEEPER-1431/src/contrib/zkpython/src/c/zookeeper.c
  5. Download patch debian/patches/series

    --- 3.3.5+dfsg1-1/debian/patches/series 2012-03-21 21:23:25.000000000 +0000 +++ 3.3.5+dfsg1-1ubuntu1/debian/patches/series 2012-03-23 17:32:11.000000000 +0000 @@ -5,3 +5,4 @@ fixes/ZOOKEEPER-705 fixes/ZOOKEEPER-1033 fixes/ZOOKEEPER-1374 fixes/ZOOKEEPER-1403 +fixes/ZOOKEEPER-1431
  6. Download patch src/contrib/zkpython/src/c/zookeeper.c

    --- 3.3.5+dfsg1-1/src/contrib/zkpython/src/c/zookeeper.c 2012-03-15 20:09:29.000000000 +0000 +++ 3.3.5+dfsg1-1ubuntu1/src/contrib/zkpython/src/c/zookeeper.c 2012-03-23 19:51:08.000000000 +0000 @@ -436,7 +436,8 @@ void watcher_dispatch(zhandle_t *zzh, in if (PyObject_CallObject((PyObject*)callback, arglist) == NULL) { PyErr_Print(); } - if (pyw->permanent == 0 && (type != ZOO_SESSION_EVENT || is_unrecoverable(zzh) == ZINVALIDSTATE)) { + Py_DECREF(arglist); + if (pyw->permanent == 0 && (type != ZOO_SESSION_EVENT || is_unrecoverable(zzh) == ZINVALIDSTATE)) { free_pywatcher(pyw); } PyGILState_Release(gstate); @@ -457,6 +458,7 @@ void void_completion_dispatch(int rc, co PyObject *arglist = Py_BuildValue("(i,i)", pyw->zhandle, rc); if (PyObject_CallObject((PyObject*)callback, arglist) == NULL) PyErr_Print(); + Py_DECREF(arglist); free_pywatcher(pyw); PyGILState_Release(gstate); } @@ -474,9 +476,9 @@ void stat_completion_dispatch(int rc, co PyObject *pystat = build_stat(stat); PyObject *arglist = Py_BuildValue("(i,i,O)", pyw->zhandle,rc, pystat); Py_DECREF(pystat); - if (PyObject_CallObject((PyObject*)callback, arglist) == NULL) PyErr_Print(); + Py_DECREF(arglist); free_pywatcher(pyw); PyGILState_Release(gstate); } @@ -498,6 +500,7 @@ void data_completion_dispatch(int rc, co if (PyObject_CallObject((PyObject*)callback, arglist) == NULL) PyErr_Print(); + Py_DECREF(arglist); free_pywatcher(pyw); PyGILState_Release(gstate); } @@ -518,6 +521,7 @@ void strings_completion_dispatch(int rc, PyObject *arglist = Py_BuildValue("(i,i,O)", pyw->zhandle, rc, pystrings); if (arglist == NULL || PyObject_CallObject((PyObject*)callback, arglist) == NULL) PyErr_Print(); + Py_DECREF(arglist); } else PyErr_Print(); @@ -540,6 +544,7 @@ void string_completion_dispatch(int rc, PyObject *arglist = Py_BuildValue("(i,i,s)", pyw->zhandle,rc, value); if (PyObject_CallObject((PyObject*)callback, arglist) == NULL) PyErr_Print(); + Py_DECREF(arglist); free_pywatcher(pyw); PyGILState_Release(gstate); } @@ -565,6 +570,7 @@ void acl_completion_dispatch(int rc, str if (PyObject_CallObject((PyObject*)callback, arglist) == NULL) { PyErr_Print(); } + Py_DECREF(arglist); free_pywatcher(pyw); PyGILState_Release(gstate); }
  1. antlr3
  2. asm2
  3. batik
  4. c3p0
  5. cdk
  6. commons-vfs
  7. doxia-sitetools
  8. doxia
  9. gant
  10. groovy
  11. jakarta-jmeter
  12. jarjar
  13. javassist
  14. javatools
  15. libajaxtags-java
  16. libcommons-compress-java
  17. libcommons-dbcp-java
  18. libcommons-discovery-java
  19. libcommons-lang-java
  20. libcommons-net2-java
  21. libhibernate3-java
  22. libi18n-java
  23. libjaxp1.3-java
  24. libjibx1.1-java
  25. libmx4j-java
  26. libproxool-java
  27. maven-debian-helper
  28. maven-repo-helper
  29. solr
  30. stylebook
  31. tiles
  32. tomcat6
  33. xmlgraphics-commons
  34. zookeeper