[maven-plugin-testing] 02/28: [svn-inject] Applying Debian modifications to trunk
Emmanuel Bourg
ebourg-guest at moszumanska.debian.org
Mon Jul 17 23:37:01 UTC 2017
This is an automated email from the git hooks/post-receive script.
ebourg-guest pushed a commit to branch master
in repository maven-plugin-testing.
commit 08faf81fff55f7ec66dd0a811c7af20a9d08d9bd
Author: Ludovic Claude <ludovic.claude at laposte.net>
Date: Thu Jun 11 14:21:32 2009 +0000
[svn-inject] Applying Debian modifications to trunk
---
debian/build.properties | 26 ++++++++++
debian/build.xml | 89 ++++++++++++++++++++++++++++++++
debian/changelog | 6 +++
debian/compat | 1 +
debian/control | 36 +++++++++++++
debian/copyright | 22 ++++++++
debian/libmaven-plugin-testing-java.poms | 4 ++
debian/maven-settings.xml | 9 ++++
debian/maven.rules | 3 ++
debian/orig-tar.sh | 16 ++++++
debian/patches/maven2.1.0.patch | 13 +++++
debian/patches/series | 1 +
debian/rules | 31 +++++++++++
debian/watch | 4 ++
14 files changed, 261 insertions(+)
diff --git a/debian/build.properties b/debian/build.properties
new file mode 100644
index 0000000..0b38730
--- /dev/null
+++ b/debian/build.properties
@@ -0,0 +1,26 @@
+javadoc.dir=target/api
+build.directory=target
+maven.test.skip=true
+classpath.compile = \
+ /usr/share/java/junit.jar:\
+ /usr/share/java/easymock.jar:\
+ /usr/share/java/maven-artifact.jar:\
+ /usr/share/java/maven-artifact-manager.jar:\
+ /usr/share/java/maven-core.jar:\
+ /usr/share/java/maven-model.jar:\
+ /usr/share/java/maven-project.jar:\
+ /usr/share/java/maven-plugin-api.jar:\
+ /usr/share/java/maven-plugin-descriptor.jar:\
+ /usr/share/java/maven-plugin-registry.jar:\
+ /usr/share/java/maven-settings.jar:\
+ /usr/share/java/maven-invoker.jar:\
+ /usr/share/java/maven-toolchain.jar:\
+ /usr/share/java/wagon-provider-api.jar:\
+ /usr/share/java/plexus-archiver.jar:\
+ /usr/share/java/plexus-classworlds.jar:\
+ /usr/share/java/plexus-utils.jar:\
+ /usr/share/java/plexus-container-default-alpha.jar:\
+ ${basedir}/maven-plugin-testing-harness/target/maven-plugin-testing-harness-${version}.jar:\
+ ${basedir}/maven-plugin-testing-tools/target/maven-plugin-testing-tools-${version}.jar:\
+ ${basedir}/maven-test-tools/target/maven-test-tools-${version}.jar
+
diff --git a/debian/build.xml b/debian/build.xml
new file mode 100644
index 0000000..6514389
--- /dev/null
+++ b/debian/build.xml
@@ -0,0 +1,89 @@
+<?xml version="1.0"?>
+
+<project name="pkg-java" default="package" basedir="..">
+
+ <property file="debian/build.properties"/>
+ <property name="maven.build" value="/usr/share/maven-ant-helper/maven-build.xml"/>
+ <property file="/usr/share/maven-ant-helper/maven-defaults.properties"/>
+
+ <macrodef name="cleanmodule">
+ <attribute name="dir"/>
+ <sequential>
+ <ant target="clean" antfile="${maven.build}" dir="@{dir}">
+ <property name="debian.dir" location="debian" />
+ <property name="project.dir" value="@{dir}" />
+ </ant>
+ </sequential>
+ </macrodef>
+
+ <macrodef name="packagemodule">
+ <attribute name="dir"/>
+ <sequential>
+ <ant target="package" antfile="${maven.build}" dir="@{dir}">
+ <property name="debian.dir" location="debian" />
+ <property name="project.dir" value="@{dir}" />
+ <property name="keep-cleaned-pom" value="true" />
+ <property name="use-local-repo" value="true" />
+ </ant>
+ </sequential>
+ </macrodef>
+
+ <macrodef name="package-plexus-module">
+ <attribute name="dir"/>
+ <sequential>
+ <ant target="package" antfile="${maven.build}" dir="@{dir}">
+ <property name="debian.dir" location="debian" />
+ <property name="project.dir" value="@{dir}" />
+ <property name="maven.generate.target" value="org.codehaus.plexus:plexus-component-metadata:${plexus-component-metadata.version}:generate-metadata" />
+ <property name="keep-cleaned-pom" value="true" />
+ <property name="use-local-repo" value="true" />
+ </ant>
+ </sequential>
+ </macrodef>
+
+ <macrodef name="restore-pom">
+ <attribute name="dir"/>
+ <sequential>
+ <ant target="restore-pom" antfile="${maven.build}" dir="@{dir}">
+ <property name="debian.dir" location="debian" />
+ <property name="project.dir" value="@{dir}" />
+ </ant>
+ </sequential>
+ </macrodef>
+
+ <target name="clean">
+ <cleanmodule dir=""/>
+ <cleanmodule dir="maven-plugin-testing-harness"/>
+ <cleanmodule dir="maven-test-tools"/>
+ <cleanmodule dir="maven-plugin-testing-tools"/>
+ </target>
+
+ <target name="package">
+ <packagemodule dir=""/>
+ <packagemodule dir="maven-plugin-testing-harness"/>
+ <packagemodule dir="maven-test-tools"/>
+ <!--mkdir dir="debian/tmp/maven-repo/org/apache/maven/surefire/surefire-api/debian" />
+ <copy file="surefire-api/target/surefire-api-${version}.jar"
+ tofile="debian/tmp/maven-repo/org/apache/maven/surefire/surefire-api/debian/surefire-api-debian.jar" />
+ <copy file="debian/tmp/pom.xml"
+ tofile="debian/tmp/maven-repo/org/apache/maven/surefire/surefire-api/debian/surefire-api-debian.pom" />
+ <copy file="surefire-booter/target/surefire-booter-${version}.jar"
+ tofile="debian/tmp/maven-repo/org/apache/maven/surefire/surefire-booter/debian/surefire-booter-debian.jar" />
+ <copy file="debian/tmp/pom.xml"
+ tofile="debian/tmp/maven-repo/org/apache/maven/surefire/surefire-booter/debian/surefire-booter-debian.pom" /-->
+ <package-plexus-module dir="maven-plugin-testing-tools"/>
+ <restore-pom dir=""/>
+ <restore-pom dir="maven-plugin-testing-harness"/>
+ <restore-pom dir="maven-plugin-testing-tools"/>
+ <restore-pom dir="maven-test-tools"/>
+ </target>
+
+ <target name="javadoc">
+ <javadoc destdir="${javadoc.dir}">
+ <packageset dir="maven-plugin-testing-harness/src/main/java/"/>
+ <packageset dir="maven-plugin-testing-tools/src/main/java/"/>
+ <packageset dir="maven-test-tools/src/main/java/"/>
+ </javadoc>
+ </target>
+
+</project>
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..fba8001
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
+maven-plugin-testing (1.2-0ubuntu1~ppa2) jaunty; urgency=low
+
+ * Initial release. (Closes: #XXXXX)
+
+ -- Ludovic Claude <ludovic.claude at laposte.net> Sun, 07 Jun 2009 00:04:41 +0100
+
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..1e8b314
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+6
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..642e546
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,36 @@
+Source: maven-plugin-testing
+Section: java
+Priority: optional
+Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
+Uploaders: Ludovic Claude <ludovic.claude at laposte.net>
+Build-Depends: ant, debhelper (>= 6), cdbs, default-jdk, quilt
+Build-Depends-Indep: maven-repo-helper, maven-ant-helper (>> 4), ant, ant-optional,
+ junit, libmaven-plugin-tools-java, libplexus-component-metadata-java (>= 1.0~beta3.0.7),
+ libmaven2-core-java, libmaven-invoker-java, libplexus-archiver-java,
+ libplexus-utils-java, libplexus-container-default-java, libeasymock-java
+Standards-Version: 3.8.1
+Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/maven-plugin-tools
+Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/trunk/maven-plugin-tools/
+Homepage: http://maven.apache.org
+
+Package: libmaven-plugin-testing-java
+Architecture: all
+Depends: ${misc:Depends}, libmaven2-core-java, libmaven-invoker-java, libplexus-archiver-java,
+ libplexus-utils-java, libplexus-container-default-java, libeasymock-java
+Description: Maven Plugin Testing
+ 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 necessary modules to be able to test Maven Plugins.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..9ad7732
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,22 @@
+Format-Specification: http://dep.debian.net/deps/dep5/
+Name: Maven Plugin Testing
+Maintainer: Apache Maven team
+Source: http://maven.apache.org/
+
+Files: *
+Copyright: 2001-2009, The Apache Software Foundation.
+License: Apache-2.0
+
+Files: debian/*
+Copyright: 2009, Ludovic Claude <ludovic.claude at laposte.net>
+License: GPL-3+
+
+License: Apache-2.0
+ On Debian GNU/Linux system you can find the complete text of the
+ Apache 2.0 license in '/usr/share/common-licenses/Apache-2.0'.
+
+License: GPL-3
+ On Debian GNU/Linux system you can find the complete text of the
+ GNU General Public License version 3 license in
+ '/usr/share/common-licenses/GPL-3'.
+
diff --git a/debian/libmaven-plugin-testing-java.poms b/debian/libmaven-plugin-testing-java.poms
new file mode 100644
index 0000000..6f2cfb3
--- /dev/null
+++ b/debian/libmaven-plugin-testing-java.poms
@@ -0,0 +1,4 @@
+pom.xml --no-parent
+maven-plugin-testing-harness/pom.xml
+maven-plugin-testing-tools/pom.xml
+maven-test-tools/pom.xml
diff --git a/debian/maven-settings.xml b/debian/maven-settings.xml
new file mode 100644
index 0000000..01f8769
--- /dev/null
+++ b/debian/maven-settings.xml
@@ -0,0 +1,9 @@
+<!--
+ This is a minimal settings.xml that switches maven to offline mode
+ and uses the Debian repo as the local repo.
+-->
+
+<settings>
+ <localRepository>/usr/share/maven-repo</localRepository>
+ <offline>true</offline>
+</settings>
diff --git a/debian/maven.rules b/debian/maven.rules
new file mode 100644
index 0000000..b9d859c
--- /dev/null
+++ b/debian/maven.rules
@@ -0,0 +1,3 @@
+org.codehaus.plexus plexus-container-default jar s/1\.0-alpha.*/1.0-alpha/
+junit junit jar s/3\..*/3.x/
+asm asm jar s/3\..*/3.x/
diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh
new file mode 100644
index 0000000..75a2e2b
--- /dev/null
+++ b/debian/orig-tar.sh
@@ -0,0 +1,16 @@
+#!/bin/sh -e
+
+TAR=../maven-plugin-testing_$2.orig.tar.gz
+DIR=maven-plugin-testing-$2
+TAG=$(echo maven-plugin-testing-$2 | sed 's/~\(alpha\|beta\)/-\1-/')
+
+svn export http://svn.apache.org/repos/asf/maven/plugin-testing/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
diff --git a/debian/patches/maven2.1.0.patch b/debian/patches/maven2.1.0.patch
new file mode 100644
index 0000000..2e8c597
--- /dev/null
+++ b/debian/patches/maven2.1.0.patch
@@ -0,0 +1,13 @@
+--- a/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/stubs/ArtifactStub.java
++++ b/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/stubs/ArtifactStub.java
+@@ -461,6 +461,10 @@
+ return false;
+ }
+
++ public ArtifactMetadata getMetadata( Class metadataClass ) {
++ return null;
++ }
++
+ /**
+ * @see java.lang.Object#toString()
+ */
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..32b7d2c
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+maven2.1.0.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..3b17bae
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,31 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/ant.mk
+include /usr/share/cdbs/1/rules/patchsys-quilt.mk
+
+PACKAGE := $(DEB_SOURCE_PACKAGE)
+VERSION := $(DEB_UPSTREAM_VERSION)
+JAVA_HOME := /usr/lib/jvm/default-java
+# Need to specify the exact version of the Plexus plugin (from plexus-component-metadata package) used here
+PLEXUS_PLUGIN_VERSION:= 1.0-beta-3.0.7
+DEB_JARS := ant-nodeps maven-core maven-model maven-plugin-api maven-plugin-descriptor maven-plugin-registry \
+ maven-project maven-artifact maven-artifact-manager maven-settings maven-invoker \
+ plexus-utils plexus-archiver plexus-container-default-alpha easymock
+DEB_ANT_BUILD_TARGET := package #javadoc
+DEB_ANT_BUILDFILE := debian/build.xml
+DEB_ANT_ARGS := -Dpackage=$(PACKAGE) -Dversion=$(VERSION) -Dplexus-component-metadata.version=$(PLEXUS_PLUGIN_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 maven-plugin-testing-harness/pom.xml maven-plugin-testing-harness/target/maven-plugin-testing-harness-$(VERSION).jar
+ mh_installjar -plib$(PACKAGE)-java -l maven-plugin-testing-tools/pom.xml maven-plugin-testing-tools/target/maven-plugin-testing-tools-$(VERSION).jar
+ mh_installjar -plib$(PACKAGE)-java -l maven-test-tools/pom.xml maven-test-tools/target/maven-test-tools-$(VERSION).jar
+
+clean::
+ -rm -rf debian/tmp
+
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..9165fd9
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+version=3
+opts=uversionmangle=s/-(alpha|beta)-/~$1/ \
+ http://svn.apache.org/repos/asf/maven/plugin-testing/tags/ \
+ maven-plugin-testing-(.*)/ debian debian/orig-tar.sh
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/maven-plugin-testing.git
More information about the pkg-java-commits
mailing list