debian/0000755000000000000000000000000012230133566007167 5ustar debian/build.xml0000644000000000000000000001254011733140663011015 0ustar debian/maven.rules0000644000000000000000000000057211636506161011361 0ustar # keep the version for all Maven plugins as versionless plugins don't work * * maven-plugin * junit junit jar s/3\..*/3.x/ junit junit jar s/4\..*/4.x/ jmock jmock jar s/1\..*/1.x/ # fix the version of maven-shade-plugin org.apache.maven.plugins maven-shade-plugin maven-plugin s/.*/1.2.1 s/org.apache.maven.shared/org.apache.maven.plugin-testing/ maven-plugin-testing-harness debian/watch0000644000000000000000000000015611636506161010226 0ustar version=3 http://svn.apache.org/repos/asf/maven/surefire/tags/ \ surefire-(\d.*)/ debian debian/orig-tar.sh debian/rules0000755000000000000000000000506111645102372010251 0ustar #!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk 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 maven-core maven-model maven-plugin-api maven-project file-management plexus-utils plexus-container-default-alpha DEB_ANT_BUILD_TARGET := package #javadoc DEB_ANT_BUILDFILE := debian/build.xml DEB_ANT_ARGS := -Dpackage=$(PACKAGE) -Dversion=$(VERSION) API_DOCS := target/api get-orig-source: -uscan --download-version $(DEB_UPSTREAM_VERSION) --force-download --rename binary-post-install/lib$(PACKAGE)-java:: mh_installpoms -plib$(PACKAGE)-java mh_installjar -plib$(PACKAGE)-java -l surefire-api/pom.xml surefire-api/target/surefire-api-$(VERSION).jar mh_installjar -plib$(PACKAGE)-java -l surefire-booter/pom.xml surefire-booter/target/surefire-booter-$(VERSION).jar mh_installjar -plib$(PACKAGE)-java -l surefire-providers/common-junit3/pom.xml surefire-providers/common-junit3/target/common-junit3-$(VERSION).jar mh_installjar -plib$(PACKAGE)-java -l surefire-providers/common-junit4/pom.xml surefire-providers/common-junit4/target/common-junit4-$(VERSION).jar mh_installjar -plib$(PACKAGE)-java -l surefire-providers/surefire-junit3/pom.xml surefire-providers/surefire-junit3/target/surefire-junit3-$(VERSION).jar mh_installjar -plib$(PACKAGE)-java -l surefire-providers/surefire-junit4/pom.xml surefire-providers/surefire-junit4/target/surefire-junit4-$(VERSION).jar mh_installjar -plib$(PACKAGE)-java -l surefire-providers/surefire-junit47/pom.xml surefire-providers/surefire-junit47/target/surefire-junit47-$(VERSION).jar mh_installjar -plib$(PACKAGE)-java -l surefire-providers/surefire-testng/pom.xml surefire-providers/surefire-testng/target/surefire-testng-$(VERSION).jar mh_installjar -plib$(PACKAGE)-java -l surefire-providers/surefire-testng-utils/pom.xml surefire-providers/surefire-testng-utils/target/surefire-testng-utils-$(VERSION).jar mh_installjar -plib$(PACKAGE)-java -l maven-surefire-common/pom.xml maven-surefire-common/target/maven-surefire-common-$(VERSION).jar mh_installjar -plib$(PACKAGE)-java -l maven-surefire-plugin/pom.xml maven-surefire-plugin/target/maven-surefire-plugin-$(VERSION).jar mh_installjar -plib$(PACKAGE)-java -l maven-surefire-report-plugin/pom.xml maven-surefire-report-plugin/target/maven-surefire-report-plugin-$(VERSION).jar clean:: -rm -rf debian/tmp surefire-providers/target mh_clean -find . -type f -name pom.xml.save -delete debian/changelog0000644000000000000000000000663012230133550011037 0ustar surefire (2.10-5) unstable; urgency=low * Team upload. * Don't check the version of TestNG to make the 'debian' version usable. * debian/control: - Use canonical URLs for the Vcs-* fields - Updated Standards-Version to 3.9.4 (no changes) -- Emmanuel Bourg Thu, 17 Oct 2013 22:54:43 +0200 surefire (2.10-4) unstable; urgency=low * Team upload. * Apply updated JUnit 4 detection patch. (Closes: #665796) - Thanks to James Page. -- tony mancill Mon, 26 Mar 2012 11:27:25 -0700 surefire (2.10-3) unstable; urgency=low * Team upload. * Fix JUnit 4 detection during unit tests in build time. Thanks to James Page for the patch. (Closes: #664641). * Bump Standards-Version to 3.9.3. No changes were required. -- Miguel Landaeta Thu, 22 Mar 2012 19:49:18 -0430 surefire (2.10-2) unstable; urgency=low [ Miguel Landaeta ] * Team upload. * Drop self Build-Depends on libsurefire-java. (Closes: #655011). Thanks to Daniel Schepler for the patch. [ Damien Raude-Morvan ] * Use Recommends: junit | junit4 | testng | libjmock-java instead of Depends as only one test framework is needed at a time. (Closes: #563710). -- Damien Raude-Morvan Sun, 08 Jan 2012 12:48:06 +0100 surefire (2.10-1) unstable; urgency=low * Team upload. * New upstream release. * Refresh and remove unneccesary patches. * Add Build-Depends on libsurefire-java and libmaven-common-artifact-filters-java. * Drop outdated Maven artifact surefire-junit. * Provide new Maven artifacts: surefire-junit3, maven-surefire-common, common-junit3, common-junit4, surefire-junit47 and surefire-testng-utils. * Fix clean target to allow "two in a row" builds. * Update Vcs-Browser field. -- Miguel Landaeta Mon, 10 Oct 2011 20:42:16 -0430 surefire (2.4.3-5) unstable; urgency=low * Team upload. * Switch to default-jdk. (Closes: #641380). * Add mh_clean call in clean target to allow twice in row builds. * Bump Standards-Version to 3.9.2. No changes were required. -- Miguel Landaeta Tue, 13 Sep 2011 07:27:04 -0430 surefire (2.4.3-4) unstable; urgency=low * Switch to source format 3.0. * Update debian/build.xml for newer maven-ant-helper. (Closes: #637824) * Switch to debhelper level 7. * Update Standards-Version: 3.9.1. -- Torsten Werner Sun, 21 Aug 2011 21:54:11 +0200 surefire (2.4.3-3) unstable; urgency=low * Fix groupId for maven-plugin-testing-harness dependency in the Maven POM. -- Ludovic Claude Sun, 26 Jul 2009 16:11:15 +0100 surefire (2.4.3-2) experimental; urgency=low * Change section to java, bump up Standards-Version to 3.8.1 * Bump up debhelper to 6 * Migrate the build from cdbs-maven to cdbs-ant as Maven uses this plugin for its build. * Add a Build-Depends-Indep dependency on maven-repo-helper * Use mh_installpom and mh_installjar to install the POM and the jar to the Maven repository * Remove the patch for the POM as it's no longer needed, as well as the dependency on Quilt * Remove Depends on Java runtimes as it is a library -- Ludovic Claude Tue, 26 May 2009 21:03:39 +0100 surefire (2.4.3-1) unstable; urgency=low * Initial release. (Closes: #508829) -- Torsten Werner Mon, 05 Jan 2009 23:46:52 +0100 debian/maven-settings.xml0000644000000000000000000000035111636506161012660 0ustar /usr/share/maven-repo true debian/patches/0000755000000000000000000000000012230133566010616 5ustar debian/patches/fix-junit-provider-selection.patch0000644000000000000000000000300211734132340017357 0ustar Description: Surefire can't correctly detect the 4.x version of JUnit that is present in the Debian Maven Repository. . This patch corrects that - its safe to assume that its greater than 4.7 as sid contains 4.8.2. The JUnit4Provider should never get selected due to the way these two checks are combined. Author: James Page Forwarded: not-needed Index: surefire/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java =================================================================== --- surefire.orig/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java 2012-03-19 15:06:03.310108598 +0000 +++ surefire/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java 2012-03-26 09:34:20.549223250 +0100 @@ -311,12 +311,14 @@ private boolean isJunit47Compatible( Artifact artifact ) { - return dependencyResolver.isWithinVersionSpec( artifact, "[4.7,)" ); + return ( dependencyResolver.isWithinVersionSpec( artifact, "[4.7,)" ) || + ( artifact != null && "4.x".equals( artifact.getVersion() ) ) ); } private boolean isAnyJunit4( Artifact artifact ) { - return dependencyResolver.isWithinVersionSpec( artifact, "[4.0,)" ); + return ( dependencyResolver.isWithinVersionSpec( artifact, "[4.0,)" ) || + ( artifact != null && "4.x".equals( artifact.getVersion() ) ) ); } boolean isForkModeNever() debian/patches/series0000644000000000000000000000011712230133550012023 0ustar pom.patch fix-junit-provider-selection.patch bypass-testng-version-check.patch debian/patches/bypass-testng-version-check.patch0000644000000000000000000000331612230133550017174 0ustar Description: Bypass the verification of the version of TestNG since it doesn't work with the modified version installed in Debian. TestNG in Debian has always been above the minimum version required by Surefire anyway. Author: Emmanuel Bourg Forwarded: not-needed --- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java +++ b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java @@ -531,16 +531,6 @@ // TODO: this is pretty manual, but I'd rather not require the plugin > dependencies section right now Artifact artifact = (Artifact) getProjectArtifactMap().get( getTestNGArtifactName() ); - if ( artifact != null ) - { - VersionRange range = VersionRange.createFromVersionSpec( "[4.7,)" ); - if ( !range.containsVersion( new DefaultArtifactVersion( artifact.getVersion() ) ) ) - { - throw new MojoFailureException( - "TestNG support requires version 4.7 or above. You have declared version " + - artifact.getVersion() ); - } - } return artifact; } --- a/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/TestNGExecutor.java +++ b/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/TestNGExecutor.java @@ -143,7 +143,7 @@ return new TestNGMapConfigurator(); } - throw new TestSetFailedException( "Unknown TestNG version " + version ); + return new TestNGMapConfigurator(); } catch ( InvalidVersionSpecificationException invsex ) { debian/patches/pom.patch0000644000000000000000000000300611645102372012431 0ustar Description: Disable Maven artifacts not available in Debian Author: Miguel Landaeta Forwarded: no Last-Update: 2011-10-10 --- surefire-2.10.orig/pom.xml +++ surefire-2.10/pom.xml @@ -20,12 +20,6 @@ 4.0.0 - - maven-parent - org.apache.maven - 20 - ../pom/maven/pom.xml - org.apache.maven.surefire surefire @@ -226,7 +220,7 @@ - + + debian/orig-tar.sh0000755000000000000000000000052111636506161011254 0ustar #!/bin/sh set -e TAR=../surefire_$2.orig.tar.gz DIR=surefire-$2 TAG=surefire-$2 svn export http://svn.apache.org/repos/asf/maven/surefire/tags/$TAG $DIR tar -c -z -f $TAR $DIR rm -rf $DIR ../$TAG # move to directory 'tarballs' if [ -r .svn/deb-layout ]; then . .svn/deb-layout mv $TAR $origDir echo "moved $TAR to $origDir" fi debian/source/0000755000000000000000000000000012230133566010467 5ustar debian/source/format0000644000000000000000000000001411636506160011700 0ustar 3.0 (quilt) debian/compat0000644000000000000000000000000211636506161010371 0ustar 7 debian/libsurefire-java.poms0000644000000000000000000000075611645102372013331 0ustar pom.xml --no-parent surefire-api/pom.xml surefire-booter/pom.xml surefire-providers/pom.xml surefire-providers/common-junit3/pom.xml surefire-providers/common-junit4/pom.xml surefire-providers/surefire-junit3/pom.xml surefire-providers/surefire-junit4/pom.xml surefire-providers/surefire-junit47/pom.xml surefire-providers/surefire-testng/pom.xml surefire-providers/surefire-testng-utils/pom.xml maven-surefire-common/pom.xml maven-surefire-plugin/pom.xml maven-surefire-report-plugin/pom.xml debian/copyright0000644000000000000000000000311611733140663011126 0ustar This package was debianized by Torsten Werner . The Debian packaging is Copyright (c) 2008 Torsten Werner and is licensed under the GNU General Public License version 3. On Debian systems, the complete text of the GNU General Public License can be found in '/usr/share/common-licenses/GPL-3'. The package was downloaded from . Copyright: 2005-2008 The Apache Software Foundation. License: 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. The full text of the license can be found in `/usr/share/common-licenes/Apache-2.0'. ---------- Files: surefire-api/src/main/java/org/apache/maven/surefire/util/Nested*.java Copyright: 2005-2007 Spring Framework Project 2005-2008 The Apache Software Foundation. License: Apache 2.0 (see above) Those files have been originally developed by . debian/build.properties0000644000000000000000000000254311645102372012410 0ustar javadoc.dir=target/api build.directory=target maven.test.skip=true classpath.compile = \ /usr/share/java/commons-lang.jar:\ /usr/share/java/plexus-utils.jar:\ /usr/share/java/junit.jar:\ /usr/share/java/junit4.jar:\ /usr/share/java/testng.jar:\ /usr/share/java/doxia-core.jar:\ /usr/share/java/doxia-logging-api.jar:\ /usr/share/java/doxia-sink-api.jar:\ /usr/share/java/doxia-site-renderer.jar:\ /usr/share/java/maven-artifact.jar:\ /usr/share/java/maven-artifact-manager.jar:\ /usr/share/java/maven-core.jar:\ /usr/share/java/maven-project.jar:\ /usr/share/java/maven-reporting-api.jar:\ /usr/share/java/maven-reporting-impl.jar:\ /usr/share/java/maven-toolchain.jar:\ /usr/share/java/maven-common-artifact-filters.jar:\ ${basedir}/surefire-api/target/surefire-api-${version}.jar:\ ${basedir}/surefire-booter/target/surefire-booter-${version}.jar:\ ${basedir}/maven-surefire-common/target/maven-surefire-common-${version}.jar:\ ${basedir}/surefire-providers/common-junit3/target/common-junit3-${version}.jar:\ ${basedir}/surefire-providers/common-junit4/target/common-junit4-${version}.jar build.javaVersion=1.5 debian/control0000644000000000000000000000416712230133550010573 0ustar Source: surefire Section: java Priority: optional Maintainer: Debian Java Maintainers Uploaders: Torsten Werner Build-Depends: cdbs, debhelper (>= 7), default-jdk Build-Depends-Indep: ant, ant-optional, junit, junit4, libjmock-java, libmaven-clean-plugin-java, libmaven-common-artifact-filters-java, libmaven-compiler-plugin-java, libmaven-install-plugin-java, libmaven-jar-plugin-java, libmaven-plugin-tools-java, libmaven-resources-plugin-java, libmaven-shade-plugin-java, libplexus-velocity-java, maven-ant-helper (>= 7.3), maven-repo-helper, testng, velocity Standards-Version: 3.9.4 Vcs-Svn: svn://anonscm.debian.org/pkg-java/trunk/surefire Vcs-Browser: http://anonscm.debian.org/viewvc/pkg-java/trunk/surefire Homepage: http://maven.apache.org/surefire/ Package: libsurefire-java Architecture: all Depends: libmaven-common-artifact-filters-java, ${misc:Depends} Recommends: junit | junit4 | testng | libjmock-java Description: Surefire test framework for Java Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project's build, reporting and documentation from a central piece of information. . Maven's primary goal is to allow a developer to comprehend the complete state of a development effort in the shortest period of time. In order to attain this goal there are several areas of concern that Maven attempts to deal with: . * Making the build process easy * Providing a uniform build system * Providing quality project information * Providing guidelines for best practices development * Allowing transparent migration to new features . This package ships the surefire test framework and the maven-surefire-plugin.