debian/0000755000000000000000000000000012260555011007163 5ustar debian/libstapler-java.classpath0000644000000000000000000000060012260551165014151 0ustar /usr/share/java/stapler.jar servlet-api-2.5.jar commons-discovery.jar commons-beanutils.jar commons-io.jar localizer.jar hudson-json.jar tiger-types.jar guava.jar commons-fileupload.jar /usr/share/java/stapler-jelly.jar stapler.jar jenkins-commons-jelly.jar hudson-dom4j.jar commons-jexl.jar /usr/share/java/stapler-groovy.jar groovy.jar /usr/share/java/stapler-jsp.jar stapler.jar debian/README.source0000644000000000000000000000121712260551165011351 0ustar Information about stapler ------------------------- 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. The jruby module is currently not built; this is due to the fact that it required JRuby 1.6.1. Once this is in the archive (with maven artefacts) this module can be enabled. The jrebel module is currently not built; this is due to the fact that it requires zeroturnaround that is currently not packaged for Debian - this can be enabled if and when this happens. debian/patches/0000755000000000000000000000000012260551735010623 5ustar debian/patches/0001-beanutils18-compat.patch0000644000000000000000000000166112260551735015646 0ustar From: Debian Java Maintainers Date: Mon, 12 Aug 2013 09:43:30 +0100 Subject: beanutils18-compat --- core/src/main/java/org/kohsuke/stapler/RequestImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/kohsuke/stapler/RequestImpl.java b/core/src/main/java/org/kohsuke/stapler/RequestImpl.java index c1b8b2a..f6c8c12 100644 --- a/core/src/main/java/org/kohsuke/stapler/RequestImpl.java +++ b/core/src/main/java/org/kohsuke/stapler/RequestImpl.java @@ -657,7 +657,7 @@ public class RequestImpl extends HttpServletRequestWrapper implements StaplerReq if (converter==null) throw new IllegalArgumentException("Unable to convert to "+type); - l.add(converter.convert(type,o)); + l.add(converter.convert(l.itemType,o)); return l.toCollection(); } } debian/patches/0007-Remove-use-of-findbugs.patch0000644000000000000000000001226412260551735016465 0ustar From: James Page Date: Mon, 12 Aug 2013 09:45:41 +0100 Subject: Remove use of findbugs findbugs is not yet packaged so drop references from codebase. --- core/pom.xml | 6 ------ core/src/main/java/org/kohsuke/stapler/HttpRedirect.java | 5 ++--- core/src/main/java/org/kohsuke/stapler/ResponseImpl.java | 9 ++++----- core/src/main/java/org/kohsuke/stapler/StaplerResponse.java | 5 ++--- 4 files changed, 8 insertions(+), 17 deletions(-) diff --git a/core/pom.xml b/core/pom.xml index f163dda..796751a 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -129,12 +129,6 @@ test - com.github.stephenc.findbugs - findbugs-annotations - 1.3.9-1 - provided - - com.jcraft jzlib 1.1.2 diff --git a/core/src/main/java/org/kohsuke/stapler/HttpRedirect.java b/core/src/main/java/org/kohsuke/stapler/HttpRedirect.java index 8d2724a..c80b222 100644 --- a/core/src/main/java/org/kohsuke/stapler/HttpRedirect.java +++ b/core/src/main/java/org/kohsuke/stapler/HttpRedirect.java @@ -23,7 +23,6 @@ package org.kohsuke.stapler; -import edu.umd.cs.findbugs.annotations.NonNull; import javax.servlet.ServletException; import java.io.IOException; @@ -39,11 +38,11 @@ public final class HttpRedirect extends RuntimeException implements HttpResponse private final int statusCode; private final String url; - public HttpRedirect(@NonNull String url) { + public HttpRedirect(String url) { this(SC_MOVED_TEMPORARILY,url); } - public HttpRedirect(int statusCode, @NonNull String url) { + public HttpRedirect(int statusCode, String url) { this.statusCode = statusCode; if (url == null) { throw new NullPointerException(); diff --git a/core/src/main/java/org/kohsuke/stapler/ResponseImpl.java b/core/src/main/java/org/kohsuke/stapler/ResponseImpl.java index db4b6a4..7547af2 100644 --- a/core/src/main/java/org/kohsuke/stapler/ResponseImpl.java +++ b/core/src/main/java/org/kohsuke/stapler/ResponseImpl.java @@ -23,7 +23,6 @@ package org.kohsuke.stapler; -import edu.umd.cs.findbugs.annotations.NonNull; import net.sf.json.JsonConfig; import org.kohsuke.stapler.compression.CompressionFilter; import org.kohsuke.stapler.compression.FilterServletOutputStream; @@ -128,7 +127,7 @@ public class ResponseImpl extends HttpServletResponseWrapper implements StaplerR } @Override - public void sendRedirect(@NonNull String url) throws IOException { + public void sendRedirect(String url) throws IOException { // WebSphere doesn't apparently handle relative URLs, so // to be safe, always resolve relative URLs to absolute URLs by ourselves. // see http://www.nabble.com/Hudson%3A-1.262%3A-Broken-link-using-update-manager-to21067157.html @@ -146,13 +145,13 @@ public class ResponseImpl extends HttpServletResponseWrapper implements StaplerR super.sendRedirect(base); } - public void sendRedirect2(@NonNull String url) throws IOException { + public void sendRedirect2(String url) throws IOException { // Tomcat doesn't encode URL (servlet spec isn't very clear on it) // so do the encoding by ourselves sendRedirect(encode(url)); } - public void sendRedirect(int statusCode, @NonNull String url) throws IOException { + public void sendRedirect(int statusCode, String url) throws IOException { if (statusCode==SC_MOVED_TEMPORARILY) { sendRedirect(url); // to be safe, let the servlet container handles this default case return; @@ -352,7 +351,7 @@ public class ResponseImpl extends HttpServletResponseWrapper implements StaplerR /** * Escapes non-ASCII characters. */ - public static @NonNull String encode(@NonNull String s) { + public static String encode(String s) { try { boolean escaped = false; diff --git a/core/src/main/java/org/kohsuke/stapler/StaplerResponse.java b/core/src/main/java/org/kohsuke/stapler/StaplerResponse.java index 385843f..259e244 100644 --- a/core/src/main/java/org/kohsuke/stapler/StaplerResponse.java +++ b/core/src/main/java/org/kohsuke/stapler/StaplerResponse.java @@ -23,7 +23,6 @@ package org.kohsuke.stapler; -import edu.umd.cs.findbugs.annotations.NonNull; import net.sf.json.JsonConfig; import org.kohsuke.stapler.export.Flavor; @@ -72,12 +71,12 @@ public interface StaplerResponse extends HttpServletResponse { * Works like {@link #sendRedirect(String)} except that this method * escapes the URL. */ - void sendRedirect2(@NonNull String url) throws IOException; + void sendRedirect2(String url) throws IOException; /** * Works like {@link #sendRedirect2(String)} but allows the caller to specify the HTTP status code. */ - void sendRedirect(int statusCore, @NonNull String url) throws IOException; + void sendRedirect(int statusCore, String url) throws IOException; /** * Serves a static resource. debian/patches/0008-Drop-use-of-custom-doklet.patch0000644000000000000000000000142412260551735017122 0ustar From: James Page Date: Tue, 31 Dec 2013 14:25:01 +0000 Subject: Drop use of custom doklet Drop use of custom doklet for javadoc generation. --- pom.xml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/pom.xml b/pom.xml index cc7a09a..3e205ee 100644 --- a/pom.xml +++ b/pom.xml @@ -172,13 +172,6 @@ maven-javadoc-plugin true - org.kohsuke.doklet.Doklet - true - - org.kohsuke - doklet - 1.0 - debian/patches/0002-disable-jruby-bindings.patch0000644000000000000000000000074712260551735016562 0ustar From: Debian Java Maintainers Date: Mon, 12 Aug 2013 09:43:30 +0100 Subject: disable-jruby-bindings --- pom.xml | 1 - 1 file changed, 1 deletion(-) diff --git a/pom.xml b/pom.xml index 831a271..e7bf152 100644 --- a/pom.xml +++ b/pom.xml @@ -18,7 +18,6 @@ core jsp jelly - jruby groovy jrebel debian/patches/0003-fix-groovy-build.patch0000644000000000000000000000123712260551735015435 0ustar From: Debian Java Maintainers Date: Mon, 12 Aug 2013 09:43:30 +0100 Subject: fix-groovy-build --- groovy/pom.xml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/groovy/pom.xml b/groovy/pom.xml index 6ff3470..8961ecc 100644 --- a/groovy/pom.xml +++ b/groovy/pom.xml @@ -22,6 +22,11 @@ 1.8.3 + org.apache.ant + ant + 1.8.2 + + javax.servlet servlet-api 2.3 debian/patches/0006-servlet25-compat.patch0000644000000000000000000000333512260551735015347 0ustar From: Debian Java Maintainers Date: Mon, 12 Aug 2013 09:43:30 +0100 Subject: servlet25-compat --- .../test/java/org/kohsuke/stapler/MockRequest.java | 20 ++++++++++++++++++++ .../java/org/kohsuke/stapler/MockServletContext.java | 4 ++++ 2 files changed, 24 insertions(+) diff --git a/core/src/test/java/org/kohsuke/stapler/MockRequest.java b/core/src/test/java/org/kohsuke/stapler/MockRequest.java index d8a9436..5a80c83 100644 --- a/core/src/test/java/org/kohsuke/stapler/MockRequest.java +++ b/core/src/test/java/org/kohsuke/stapler/MockRequest.java @@ -267,4 +267,24 @@ public class MockRequest implements HttpServletRequest { // TODO throw new UnsupportedOperationException(); } + + public int getRemotePort() { + // TODO + throw new UnsupportedOperationException(); + } + + public int getLocalPort() { + // TODO + throw new UnsupportedOperationException(); + } + + public String getLocalAddr() { + // TODO + throw new UnsupportedOperationException(); + } + + public String getLocalName() { + // TODO + throw new UnsupportedOperationException(); + } } diff --git a/core/src/test/java/org/kohsuke/stapler/MockServletContext.java b/core/src/test/java/org/kohsuke/stapler/MockServletContext.java index e759ab1..4c6663b 100644 --- a/core/src/test/java/org/kohsuke/stapler/MockServletContext.java +++ b/core/src/test/java/org/kohsuke/stapler/MockServletContext.java @@ -105,4 +105,8 @@ public class MockServletContext implements ServletContext { public String getServletContextName() { return null; } + + public String getContextPath() { + return null; + } } debian/patches/0005-revert-kohsuke-asm3.patch0000644000000000000000000000212112260551735016041 0ustar From: Debian Java Maintainers Date: Mon, 12 Aug 2013 09:43:30 +0100 Subject: revert-kohsuke-asm3 --- core/src/main/java/org/kohsuke/stapler/ClassDescriptor.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/src/main/java/org/kohsuke/stapler/ClassDescriptor.java b/core/src/main/java/org/kohsuke/stapler/ClassDescriptor.java index 3c14446..967fd86 100644 --- a/core/src/main/java/org/kohsuke/stapler/ClassDescriptor.java +++ b/core/src/main/java/org/kohsuke/stapler/ClassDescriptor.java @@ -24,11 +24,11 @@ package org.kohsuke.stapler; import org.apache.commons.io.IOUtils; -import org.kohsuke.asm3.ClassReader; -import org.kohsuke.asm3.Label; -import org.kohsuke.asm3.MethodVisitor; -import org.kohsuke.asm3.Type; -import org.kohsuke.asm3.commons.EmptyVisitor; +import org.objectweb.asm.ClassReader; +import org.objectweb.asm.Label; +import org.objectweb.asm.MethodVisitor; +import org.objectweb.asm.Type; +import org.objectweb.asm.commons.EmptyVisitor; import java.io.IOException; import java.io.InputStream; debian/patches/series0000644000000000000000000000040112260551735012033 0ustar 0001-beanutils18-compat.patch 0002-disable-jruby-bindings.patch 0003-fix-groovy-build.patch 0004-disable-jrebel-bindings.patch 0005-revert-kohsuke-asm3.patch 0006-servlet25-compat.patch 0007-Remove-use-of-findbugs.patch 0008-Drop-use-of-custom-doklet.patch debian/patches/0004-disable-jrebel-bindings.patch0000644000000000000000000000073512260551735016671 0ustar From: Debian Java Maintainers Date: Mon, 12 Aug 2013 09:43:30 +0100 Subject: disable-jrebel-bindings --- pom.xml | 1 - 1 file changed, 1 deletion(-) diff --git a/pom.xml b/pom.xml index e7bf152..cc7a09a 100644 --- a/pom.xml +++ b/pom.xml @@ -19,7 +19,6 @@ jsp jelly groovy - jrebel http://stapler.kohsuke.org/ debian/rules0000755000000000000000000000060312260551165010250 0ustar #!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/javahelper.mk include /usr/share/cdbs/1/class/maven.mk JAVA_HOME := /usr/lib/jvm/default-java DEB_MAVEN_BUILD_TARGET := install DEB_MAVEN_DOC_TARGET := javadoc:jar javadoc:aggregate get-orig-source: uscan --download-version $(DEB_UPSTREAM_VERSION) --force-download --rename debian/libstapler-java-doc.install0000644000000000000000000000007012260551165014401 0ustar target/site/apidocs/* usr/share/doc/libstapler-java/api debian/libstapler-java.poms0000644000000000000000000000214012260552627013152 0ustar # List of POM files for the package # Format of this file is: # [option]* # where option can be: # --ignore: ignore this POM or # --no-parent: remove the tag from the POM # --package=: an alternative package to use when installing this POM # and its artifact # --keep-elements=: a list of XML elements to keep in the POM # during a clean operation with mh_cleanpom or mh_installpom # --artifact=: 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 to use when installing the library in /usr/share/java # --usj-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=: the destination for the real jar # pom.xml --no-parent core/pom.xml --java-lib jelly/pom.xml --java-lib jsp/pom.xml --java-lib groovy/pom.xml --java-lib debian/maven.ignoreRules0000644000000000000000000000240212260552107012512 0ustar # 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-project-info-reports-plugin * * * * org.apache.maven.plugins maven-release-plugin * * * * org.jvnet.maven-jellydoc-plugin maven-jellydoc-plugin * * * * org.jvnet.fix1600 fix1600 * * * * org.jvnet.wagon-svn wagon-svn * * * * org.apache.maven.wagon wagon-webdav * * * * org.kathrynhuxtable.maven.wagon wagon-gitsite * * * * org.apache.maven.plugins maven-site-plugin * * * * com.jolira hickory * * * * org.kohsuke.stapler stapler * * tests * org.kohsuke.stapler stapler-adjunct-jquery * * * test debian/libstapler-java-doc.doc-base0000644000000000000000000000050212260551165014410 0ustar Document: libstapler-java Title: API Javadoc for Stapler HTTP request handling engine Author: Kohsuke Kawaguchi Abstract: This is the API Javadoc provided for the libstapler-java library. Section: Programming Format: HTML Index: /usr/share/doc/libstapler-java/api/index.html Files: /usr/share/doc/libstapler-java/api/* debian/compat0000644000000000000000000000000212260551165010367 0ustar 7 debian/changelog0000644000000000000000000000507712260554374011061 0ustar stapler (1.218-1) unstable; urgency=medium * New upstream release: - d/control: Add new BD on libjzlib-java. - d/p/*: Refresh patches. - Drop use of custom doklet during javadoc generation. - d/maven.ignoreRules: Ignore use of stapler adjunct during testing. * d/control: Bumped Standards-Version, no changes. -- James Page Tue, 31 Dec 2013 14:22:08 +0000 stapler (1.207-1) unstable; urgency=low * New upstream release. * Switch to using git patch-queue for patch management. * d/control: Update my email addresss. -- James Page Mon, 12 Aug 2013 16:32:27 +0100 stapler (1.198-1) unstable; urgency=low * Upload to unstable. -- James Page Thu, 16 May 2013 11:16:41 +0100 stapler (1.198-1~exp1) experimental; urgency=low * New upstream release: - d/maven.ignoreRules,maven.properties: Drop test dependency on hickory, skip tests for the time being. - Refreshed patches. * Tidied lintian warnings. -- James Page Sun, 17 Feb 2013 18:23:12 +0000 stapler (1.189-1) experimental; urgency=low * New upstream release: - d/control: Added new BD on libannotation-indexer-java. - d/maven.{ignoreRules,rules}: Updated for new release. -- James Page Wed, 19 Sep 2012 11:03:47 +0100 stapler (1.182-1) unstable; urgency=low * New upstream release: - d/patches/asm3-compat.patch: Dropped - included upstream. - d/maven.rules, d/patches/revert-kohsuke-asm3.patch: Use stock asm3 rather than package renamed fork from upstream as asm version is consistent between stapler and jenkins in the archive. - Refreshed remaining patches. * Enabled test suite. -- James Page Thu, 26 Apr 2012 11:15:09 +0100 stapler (1.174-2) unstable; urgency=low * Fix FTBFS (Closes: #663548): - d/libstapler-java.poms: Add --java-lib to ensure artifacts are deployed to /usr/share/java. * Bumped Standards-Version: 3.9.3 - d/copyright: Updated Format to release specification. * d/libstapler-java-doc.lintian-overrides: Dropped - no longer required. [tony mancill] * Set DMUA flag. -- James Page Tue, 13 Mar 2012 11:51:03 +0000 stapler (1.174-1) unstable; urgency=low * Initial Debian release (Closes: #631959) * New upstream release -- James Page Thu, 29 Sep 2011 10:13:35 +0100 stapler (1.167-0ubuntu1) oneiric; urgency=low * Initial release -- James Page Tue, 28 Jun 2011 15:14:30 +0100 debian/source/0000755000000000000000000000000012260551165010471 5ustar debian/source/format0000644000000000000000000000001412260551165011677 0ustar 3.0 (quilt) debian/copyright0000644000000000000000000005337512260551165011141 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0 Upstream-Name: Stapler Upstream-Contact: Kohsuke Kawaguchi as developer Source: http://stapler.java.net Files: * Copyright: 2004-2010, Kohsuke Kawaguchi , Hiroshi Nakamura, Alan Harder , Jim Meyer, David Brownell, jglick License: BSD Files: ./core/src/main/java/org/kohsuke/stapler/export/TypeUtil.java Copyright: 1997-2007 Sun Microsystems, Inc. All rights reserved. License: GPL-2 or CDDL Files: ./core/src/main/java/org/kohsuke/stapler/export/XmlChars.java Copyright: 2000 The Apache Software Foundation. All rights reserved. License: Apache 1.1 Files: debian/* Copyright: 2011, Canonical Ltd (http://www.canonical.com/) License: BSD License: BSD Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . - 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. . 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. License: GPL-2 On Debian GNU/Linux system you can find the complete text of the GNU General Public License version 2 license in '/usr/share/common-licenses/GPL-2'. License: CDDL Open Source Initiative OSI - Common Development and Distribution License (CDDL-1.0) . COMMON DEVELOPMENT AND DISTRIBUTION LICENSE Version 1.0 (CDDL-1.0) (text) 1. Definitions. . 1.1. Contributor means each individual or entity that creates or contributes to the creation of Modifications. . 1.2. Contributor Version means the combination of the Original Software, prior Modifications used by a Contributor (if any), and the Modifications made by that particular Contributor. . 1.3. Covered Software means (a) the Original Software, or (b) Modifications, or (c) the combination of files containing Original Software with files containing Modifications, in each case including portions thereof. . 1.4. Executable means the Covered Software in any form other than Source Code. . 1.5. Initial Developer means the individual or entity that first makes Original Software available under this License. . 1.6. Larger Work means a work which combines Covered Software or portions thereof with code not governed by the terms of this License. . 1.7. License means this document. . 1.8. Licensable means having the right to grant, to the maximum extent possible, whether at the time of the initial grant or subsequently acquired, any and all of the rights conveyed herein. . 1.9. Modifications means the Source Code and Executable form of any of the following: . A. Any file that results from an addition to, deletion from or modification of the contents of a file containing Original Software or previous Modifications; . B. Any new file that contains any part of the Original Software or previous Modification; or . C. Any new file that is contributed or otherwise made available under the terms of this License. . 1.10. Original Software means the Source Code and Executable form of computer software code that is originally released under this License. . 1.11. Patent Claims means any patent claim(s), now owned or hereafter acquired, including without limitation, method, process, and apparatus claims, in any patent Licensable by grantor. . 1.12. Source Code means (a) the common form of computer software code in which modifications are made and (b) associated documentation included in or with such code. . 1.13. You (or Your) means an individual or a legal entity exercising rights under, and complying with all of the terms of, this License. For legal entities, You includes any entity which controls, is controlled by, or is under common control with You. For purposes of this definition, control means (a) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (b) ownership of more than fifty percent (50%) of the outstanding shares or beneficial ownership of such entity. . 2. License Grants. . 2.1. The Initial Developer Grant. . Conditioned upon Your compliance with Section 3.1 below and subject to third party intellectual property claims, the Initial Developer hereby grants You a world-wide, royalty-free, non-exclusive license: . (a) under intellectual property rights (other than patent or trademark) Licensable by Initial Developer, to use, reproduce, modify, display, perform, sublicense and distribute the Original Software (or portions thereof), with or without Modifications, and/or as part of a Larger Work; and . (b) under Patent Claims infringed by the making, using or selling of Original Software, to make, have made, use, practice, sell, and offer for sale, and/or otherwise dispose of the Original Software (or portions thereof). . (c) The licenses granted in Sections 2.1(a) and (b) are effective on the date Initial Developer first distributes or otherwise makes the Original Software available to a third party under the terms of this License. . (d) Notwithstanding Section 2.1(b) above, no patent license is granted: (1) for code that You delete from the Original Software, or (2) for infringements caused by: (i) the modification of the Original Software, or (ii) the combination of the Original Software with other software or devices. . 2.2. Contributor Grant. . Conditioned upon Your compliance with Section 3.1 below and subject to third party intellectual property claims, each Contributor hereby grants You a world-wide, royalty-free, non-exclusive license: . (a) under intellectual property rights (other than patent or trademark) Licensable by Contributor to use, reproduce, modify, display, perform, sublicense and distribute the Modifications created by such Contributor (or portions thereof), either on an unmodified basis, with other Modifications, as Covered Software and/or as part of a Larger Work; and . (b) under Patent Claims infringed by the making, using, or selling of Modifications made by that Contributor either alone and/or in combination with its Contributor Version (or portions of such combination), to make, use, sell, offer for sale, have made, and/or otherwise dispose of: (1) Modifications made by that Contributor (or portions thereof); and (2) the combination of Modifications made by that Contributor with its Contributor Version (or portions of such combination). . (c) The licenses granted in Sections 2.2(a) and 2.2(b) are effective on the date Contributor first distributes or otherwise makes the Modifications available to a third party. . (d) Notwithstanding Section 2.2(b) above, no patent license is granted: (1) for any code that Contributor has deleted from the Contributor Version; (2) for infringements caused by: (i) third party modifications of Contributor Version, or (ii) the combination of Modifications made by that Contributor with other software (except as part of the Contributor Version) or other devices; or (3) under Patent Claims infringed by Covered Software in the absence of Modifications made by that Contributor. . 3. Distribution Obligations. . 3.1. Availability of Source Code. . Any Covered Software that You distribute or otherwise make available in Executable form must also be made available in Source Code form and that Source Code form must be distributed only under the terms of this License. You must include a copy of this License with every copy of the Source Code form of the Covered Software You distribute or otherwise make available. You must inform recipients of any such Covered Software in Executable form as to how they can obtain such Covered Software in Source Code form in a reasonable manner on or through a medium customarily used for software exchange. . 3.2. Modifications. . The Modifications that You create or to which You contribute are governed by the terms of this License. You represent that You believe Your Modifications are Your original creation(s) and/or You have sufficient rights to grant the rights conveyed by this License. . 3.3. Required Notices. . You must include a notice in each of Your Modifications that identifies You as the Contributor of the Modification. You may not remove or alter any copyright, patent or trademark notices contained within the Covered Software, or any notices of licensing or any descriptive text giving attribution to any Contributor or the Initial Developer. . 3.4. Application of Additional Terms. . You may not offer or impose any terms on any Covered Software in Source Code form that alters or restricts the applicable version of this License or the recipients rights hereunder. You may choose to offer, and to charge a fee for, warranty, support, indemnity or liability obligations to one or more recipients of Covered Software. However, you may do so only on Your own behalf, and not on behalf of the Initial Developer or any Contributor. You must make it absolutely clear that any such warranty, support, indemnity or liability obligation is offered by You alone, and You hereby agree to indemnify the Initial Developer and every Contributor for any liability incurred by the Initial Developer or such Contributor as a result of warranty, support, indemnity or liability terms You offer. . 3.5. Distribution of Executable Versions. . You may distribute the Executable form of the Covered Software under the terms of this License or under the terms of a license of Your choice, which may contain terms different from this License, provided that You are in compliance with the terms of this License and that the license for the Executable form does not attempt to limit or alter the recipients rights in the Source Code form from the rights set forth in this License. If You distribute the Covered Software in Executable form under a different license, You must make it absolutely clear that any terms which differ from this License are offered by You alone, not by the Initial Developer or Contributor. You hereby agree to indemnify the Initial Developer and every Contributor for any liability incurred by the Initial Developer or such Contributor as a result of any such terms You offer. . 3.6. Larger Works. . You may create a Larger Work by combining Covered Software with other code not governed by the terms of this License and distribute the Larger Work as a single product. In such a case, You must make sure the requirements of this License are fulfilled for the Covered Software. . 4. Versions of the License. . 4.1. New Versions. . Sun Microsystems, Inc. is the initial license steward and may publish revised and/or new versions of this License from time to time. Each version will be given a distinguishing version number. Except as provided in Section 4.3, no one other than the license steward has the right to modify this License. . 4.2. Effect of New Versions. . You may always continue to use, distribute or otherwise make the Covered Software available under the terms of the version of the License under which You originally received the Covered Software. If the Initial Developer includes a notice in the Original Software prohibiting it from being distributed or otherwise made available under any subsequent version of the License, You must distribute and make the Covered Software available under the terms of the version of the License under which You originally received the Covered Software. Otherwise, You may also choose to use, distribute or otherwise make the Covered Software available under the terms of any subsequent version of the License published by the license steward. . 4.3. Modified Versions. . When You are an Initial Developer and You want to create a new license for Your Original Software, You may create and use a modified version of this License if You: (a) rename the license and remove any references to the name of the license steward (except to note that the license differs from this License); and (b) otherwise make it clear that the license contains terms which differ from this License. . 5. DISCLAIMER OF WARRANTY. . COVERED SOFTWARE IS PROVIDED UNDER THIS LICENSE ON AN AS IS BASIS, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, WARRANTIES THAT THE COVERED SOFTWARE IS FREE OF DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED SOFTWARE IS WITH YOU. SHOULD ANY COVERED SOFTWARE PROVE DEFECTIVE IN ANY RESPECT, YOU (NOT THE INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF ANY COVERED SOFTWARE IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER. . 6. TERMINATION. . 6.1. This License and the rights granted hereunder will terminate automatically if You fail to comply with terms herein and fail to cure such breach within 30 days of becoming aware of the breach. Provisions which, by their nature, must remain in effect beyond the termination of this License shall survive. . 6.2. If You assert a patent infringement claim (excluding declaratory judgment actions) against Initial Developer or a Contributor (the Initial Developer or Contributor against whom You assert such claim is referred to as Participant) alleging that the Participant Software (meaning the Contributor Version where the Participant is a Contributor or the Original Software where the Participant is the Initial Developer) directly or indirectly infringes any patent, then any and all rights granted directly or indirectly to You by such Participant, the Initial Developer (if the Initial Developer is not the Participant) and all Contributors under Sections 2.1 and/or 2.2 of this License shall, upon 60 days notice from Participant terminate prospectively and automatically at the expiration of such 60 day notice period, unless if within such 60 day period You withdraw Your claim with respect to the Participant Software against such Participant either unilaterally or pursuant to a written agreement with Participant. . 6.3. In the event of termination under Sections 6.1 or 6.2 above, all end user licenses that have been validly granted by You or any distributor hereunder prior to termination (excluding licenses granted to You by any distributor) shall survive termination. . 7. LIMITATION OF LIABILITY. . UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL YOU, THE INITIAL DEVELOPER, ANY OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF COVERED SOFTWARE, OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON FOR ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOST PROFITS, LOSS OF GOODWILL, WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER COMMERCIAL DAMAGES OR LOSSES, EVEN IF SUCH PARTY SHALL HAVE BEEN INFORMED OF THE POSSIBILITY OF SUCH DAMAGES. THIS LIMITATION OF LIABILITY SHALL NOT APPLY TO LIABILITY FOR DEATH OR PERSONAL INJURY RESULTING FROM SUCH PARTYS NEGLIGENCE TO THE EXTENT APPLICABLE LAW PROHIBITS SUCH LIMITATION. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THIS EXCLUSION AND LIMITATION MAY NOT APPLY TO YOU. . 8. U.S. GOVERNMENT END USERS. . The Covered Software is a commercial item, as that term is defined in 48 C.F.R. 2.101 (Oct. 1995), consisting of commercial computer software (as that term is defined at 48 C.F.R. 252.227-7014(a)(1)) and commercial computer software documentation as such terms are used in 48 C.F.R. 12.212 (Sept. 1995). Consistent with 48 C.F.R. 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (June 1995), all U.S. Government End Users acquire Covered Software with only those rights set forth herein. This U.S. Government Rights clause is in lieu of, and supersedes, any other FAR, DFAR, or other clause or provision that addresses Government rights in computer software under this License. . 9. MISCELLANEOUS. . This License represents the complete agreement concerning subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. This License shall be governed by the law of the jurisdiction specified in a notice contained within the Original Software (except to the extent applicable law, if any, provides otherwise), excluding such jurisdictions conflict-of-law provisions. Any litigation relating to this License shall be subject to the jurisdiction of the courts located in the jurisdiction and venue specified in a notice contained within the Original Software, with the losing party responsible for costs, including, without limitation, court costs and reasonable attorneys fees and expenses. The application of the United Nations Convention on Contracts for the International Sale of Goods is expressly excluded. Any law or regulation which provides that the language of a contract shall be construed against the drafter shall not apply to this License. You agree that You alone are responsible for compliance with the United States export administration regulations (and the export control laws and regulation of any other countries) when You use, distribute or otherwise make available any Covered Software. . 10. RESPONSIBILITY FOR CLAIMS. . As between Initial Developer and the Contributors, each party is responsible for claims and damages arising, directly or indirectly, out of its utilization of rights under this License and You agree to work with Initial Developer and Contributors to distribute such responsibility on an equitable basis. Nothing herein is intended or shall be deemed to constitute any admission of liability. Open Source Initiative OSI - Common Development and Distribution License (CDDL-1.0) License: Apache 1.1 /* ==================================================================== * The Apache Software License, Version 1.1 * * Copyright (c) 2000 The Apache Software Foundation. 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. The end-user documentation included with the redistribution, * if any, must include the following acknowledgment: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowledgment may appear in the software itself, * if and wherever such third-party acknowledgments normally appear. * * 4. The names "Apache" and "Apache Software Foundation" must * not be used to endorse or promote products derived from this * software without prior written permission. For written * permission, please contact apache@apache.org. * * 5. Products derived from this software may not be called "Apache", * nor may "Apache" appear in their name, without prior written * permission of the Apache Software Foundation. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 APACHE SOFTWARE FOUNDATION OR * ITS 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. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation. For more * information on the Apache Software Foundation, please see * . * * Portions of this software are based upon public domain software * originally written at the National Center for Supercomputing Applications, * University of Illinois, Urbana-Champaign. */ debian/maven.properties0000644000000000000000000000014212260551165012412 0ustar # Include here properties to pass to Maven during the build. # For example: maven.test.skip=true debian/maven.rules0000644000000000000000000000300112260551165011345 0ustar # 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/4\..*/4.x/ * * commons-collections commons-collections * s/3\..*/3.x/ * * s/org.kohsuke/asm/ s/asm3/asm-all/ * s/.*/3.x/ * * s/groovy/org.codehaus.groovy/ groovy * s/.*/debian/ * * s/javax.servlet/javax.servlet.jsp/ jsp-api jar s/2\..*/2.1/ * * javax.servlet servlet-api jar s/2\..*/2.5/ * * org.jvnet.maven-jellydoc-plugin * * s/1\..*/1.x/ * * s/org.jvnet.hudson/org.jenkins-ci/ commons-jelly-tags-define * * * * s/org.jvnet.hudson/org.jenkins-ci/ htmlunit * s/.*/debian/ * * org.mockito s/mockito-all/mockito-core/ * s/.*/debian/ * * org.mortbay.jetty jetty * s/6\..*/6.x/ * * s/org.jvnet.hudson/org.jenkins-ci/ annotation-indexer * s/.*/debian/ * * debian/watch0000644000000000000000000000021612260551165010221 0ustar version=3 opts=dversionmangle=s/\.dfsg// \ http://githubredir.debian.net/github/stapler/stapler/ stapler-parent-(.+).tar.gz debian jh_repack debian/control0000644000000000000000000000435512260554353010605 0ustar Source: stapler Section: java Priority: optional Maintainer: Debian Java Maintainers Uploaders: James Page Build-Depends: cdbs, debhelper (>= 7), default-jdk, javahelper, maven-debian-helper Build-Depends-Indep: default-jdk-doc, groovy, junit4, libannotation-indexer-java, libasm3-java, libcommons-beanutils-java, libcommons-discovery-java, libcommons-fileupload-java, libcommons-io-java, libcommons-jexl-java, libcssparser-java, libguava-java, libguava-java-doc, libjellydoc-java, libjenkins-commons-jelly-java, libjenkins-htmlunit-java, libjenkins-dom4j-java, libjenkins-json-java, libjetty-java, libjzlib-java, liblocalizer-java, libmaven-enforcer-plugin-java, libmaven-install-plugin-java, libmaven-javadoc-plugin-java, libmetainf-services-java, libmetainf-services-java-doc, libmockito-java, libservlet2.5-java, libtiger-types-java Standards-Version: 3.9.5 Homepage: http://stapler.java.net Vcs-Git: git://git.debian.org/git/pkg-java/stapler.git Vcs-Browser: http://git.debian.org/?p=pkg-java/stapler.git Package: libstapler-java Architecture: all Depends: ${maven:Depends}, ${misc:Depends} Recommends: ${maven:OptionalDepends} Description: Stapler HTTP request handling engine Stapler is a library that "staples" your application objects to URLs, making it easier to write web applications. The core idea of Stapler is to automatically assign URLs for your objects, creating an intuitive URL hierarchy. . Stapler provides bindings for: * Commons Jelly * Groovy * JRuby (not packaged) * Java Server Pages Package: libstapler-java-doc Architecture: all Section: doc Depends: ${maven:DocDepends}, ${misc:Depends} Recommends: ${maven:DocOptionalDepends} Suggests: libstapler-java Description: Documentation for libstapler-java Stapler is a library that "staples" your application objects to URLs, making it easier to write web applications. The core idea of Stapler is to automatically assign URLs for your objects, creating an intuitive URL hierarchy. . Stapler provides bindings for: * Commons Jelly * Groovy * JRuby (not packaged) * Java Server Pages * JRebel (not packaged) . This package provides the API documentation for libstapler-java. debian/maven.cleanIgnoreRules0000644000000000000000000000213012260551165013456 0ustar # 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-project-info-reports-plugin * * * * org.apache.maven.plugins maven-release-plugin * * * * org.apache.maven.plugins maven-enforcer-plugin * * * * org.jvnet.maven-jellydoc-plugin maven-jellydoc-plugin * * * * org.jvnet.fix1600 fix1600 * * * * org.jvnet.wagon-svn wagon-svn * * * * org.apache.maven.wagon wagon-webdav * * * *