[pkg-java] r8840 - trunk/plexus-containers/debian

Ludovic Claude ludovicc-guest at alioth.debian.org
Sat Jul 4 15:04:45 UTC 2009


Author: ludovicc-guest
Date: 2009-07-04 15:04:43 +0000 (Sat, 04 Jul 2009)
New Revision: 8840

Added:
   trunk/plexus-containers/debian/build.properties
   trunk/plexus-containers/debian/libplexus-containers-java.poms
   trunk/plexus-containers/debian/maven.rules
Removed:
   trunk/plexus-containers/debian/ant.properties
   trunk/plexus-containers/debian/maven-build.xml
Modified:
   trunk/plexus-containers/debian/build.xml
   trunk/plexus-containers/debian/changelog
   trunk/plexus-containers/debian/control
   trunk/plexus-containers/debian/orig-tar.sh
   trunk/plexus-containers/debian/rules
   trunk/plexus-containers/debian/watch
Log:
* New version

Deleted: trunk/plexus-containers/debian/ant.properties
===================================================================
--- trunk/plexus-containers/debian/ant.properties	2009-07-04 15:04:30 UTC (rev 8839)
+++ trunk/plexus-containers/debian/ant.properties	2009-07-04 15:04:43 UTC (rev 8840)
@@ -1,2 +0,0 @@
-javadoc.dir=build/api
-maven.test.skip=true

Added: trunk/plexus-containers/debian/build.properties
===================================================================
--- trunk/plexus-containers/debian/build.properties	                        (rev 0)
+++ trunk/plexus-containers/debian/build.properties	2009-07-04 15:04:43 UTC (rev 8840)
@@ -0,0 +1,3 @@
+javadoc.dir=build/api
+maven.test.skip=true
+build.javaVersion=1.5

Modified: trunk/plexus-containers/debian/build.xml
===================================================================
--- trunk/plexus-containers/debian/build.xml	2009-07-04 15:04:30 UTC (rev 8839)
+++ trunk/plexus-containers/debian/build.xml	2009-07-04 15:04:43 UTC (rev 8840)
@@ -2,22 +2,26 @@
  
 <project name="plexus-containers" 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="${basedir}/debian/maven-build.xml" dir="@{dir}"/>
+      <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"/>
-    <attribute name="artifactId"/>
     <sequential>
-      <ant target="package" antfile="${basedir}/debian/maven-build.xml" dir="@{dir}">
-	<property name="artifactId" value="@{artifactId}"/>
+      <ant target="package" antfile="${maven.build}" dir="@{dir}">
+        <property name="debian.dir" location="debian" />
+        <property name="project.dir" value="@{dir}" />
       </ant>
     </sequential>
   </macrodef>
@@ -27,23 +31,13 @@
     <cleanmodule dir="plexus-container-default"/>
     <cleanmodule dir="plexus-component-annotations"/>
     <cleanmodule dir="plexus-component-javadoc"/>
-    <cleanmodule dir="plexus-component-metadata"/>
   </target>
 
   <target name="package">
-    <packagemodule dir="plexus-container-default"
-      artifactId="plexus-container-default"/>
-    <packagemodule dir="plexus-component-annotations"
-      artifactId="plexus-component-annotations"/>
-    <packagemodule dir="plexus-component-javadoc"
-      artifactId="plexus-component-javadoc"/>
-    <!--
-    does not build yet because
-    http://svn.codehaus.org/plexus/plexus-components/trunk/plexus-cli/
-    is not packaged yet
-    <packagemodule dir="plexus-component-metadata"
-      artifactId="plexus-component-metadata"/>
-    -->
+    <packagemodule dir=""/>
+    <packagemodule dir="plexus-container-default"/>
+    <packagemodule dir="plexus-component-annotations"/>
+    <packagemodule dir="plexus-component-javadoc"/>
   </target>
 
   <target name="javadoc">
@@ -51,9 +45,6 @@
       <packageset dir="plexus-container-default/src/main/java/"/>
       <packageset dir="plexus-component-annotations/src/main/java/"/>
       <packageset dir="plexus-component-javadoc/src/main/java/"/>
-      <!--
-      <packageset dir="plexus-component-metadata/src/main/java/"/>
-      -->
     </javadoc>
   </target>
 

Modified: trunk/plexus-containers/debian/changelog
===================================================================
--- trunk/plexus-containers/debian/changelog	2009-07-04 15:04:30 UTC (rev 8839)
+++ trunk/plexus-containers/debian/changelog	2009-07-04 15:04:43 UTC (rev 8840)
@@ -1,3 +1,16 @@
+plexus-containers (1.0~beta3.0.7-1) unstable; urgency=low
+
+  * New upstream version, add myself to Uploaders.
+  * Change section to java, bump Standards-Version to 3.8.1
+  * Add the Maven POM to the package,
+  * 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
+  * Fix Lintian warning: Add ${misc:Depend} to libplexus-containers-java-doc
+  * Remove Depends on Java runtimes as it is a library
+
+ -- Ludovic Claude <ludovic.claude at laposte.net>  Tue, 24 Mar 2009 00:33:14 +0000
+
 plexus-containers (1.0~beta2-2) unstable; urgency=low
 
   * Add missing Depends.

Modified: trunk/plexus-containers/debian/control
===================================================================
--- trunk/plexus-containers/debian/control	2009-07-04 15:04:30 UTC (rev 8839)
+++ trunk/plexus-containers/debian/control	2009-07-04 15:04:43 UTC (rev 8840)
@@ -1,19 +1,20 @@
 Source: plexus-containers
-Section: libs
+Section: java
 Priority: optional
 Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
-Uploaders: Torsten Werner <twerner at debian.org>
-Build-Depends: ant, debhelper (>= 5), cdbs (>= 0.4.5.3), ant-optional, default-jdk,
- maven-ant-helper, libgoogle-collections-java, libplexus-classworlds-java,
- libplexus-utils-java, libxbean-java, junit
-Standards-Version: 3.8.0
+Uploaders: Torsten Werner <twerner at debian.org>, Ludovic Claude <ludovic.claude at laposte.net>
+Build-Depends: debhelper (>= 5), cdbs (>= 0.4.5.3), default-jdk-builddep
+Build-Depends-Indep: maven-repo-helper, maven-ant-helper (>> 4), ant, ant-optional, 
+ libgoogle-collections-java, libplexus-classworlds-java, libplexus-utils-java, 
+ libxbean-java, junit
+Standards-Version: 3.8.1
 Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/plexus-containers
 Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/trunk/plexus-containers/
 Homepage: http://plexus.codehaus.org
 
 Package: libplexus-containers-java
 Architecture: all
-Depends: ${misc:Depends}, default-jre | java2-runtime, libgoogle-collections-java,
+Depends: ${misc:Depends}, libgoogle-collections-java,
  libplexus-classworlds-java, libplexus-utils-java, libxbean-java
 Description: utilities for the Plexus framework
  The Plexus project provides a full software stack for creating and executing
@@ -39,6 +40,7 @@
 Package: libplexus-containers-java-doc
 Architecture: all
 Section: doc
+Depends: ${misc:Depends}
 Suggests: libplexus-containers-java
 Description: API Documentation for plexus-container-default
  The Plexus project provides a full software stack for creating and executing

Added: trunk/plexus-containers/debian/libplexus-containers-java.poms
===================================================================
--- trunk/plexus-containers/debian/libplexus-containers-java.poms	                        (rev 0)
+++ trunk/plexus-containers/debian/libplexus-containers-java.poms	2009-07-04 15:04:43 UTC (rev 8840)
@@ -0,0 +1,5 @@
+pom.xml --no-parent
+plexus-container-default/pom.xml
+plexus-component-javadoc/pom.xml
+plexus-component-annotations/pom.xml
+

Deleted: trunk/plexus-containers/debian/maven-build.xml
===================================================================
--- trunk/plexus-containers/debian/maven-build.xml	2009-07-04 15:04:30 UTC (rev 8839)
+++ trunk/plexus-containers/debian/maven-build.xml	2009-07-04 15:04:43 UTC (rev 8840)
@@ -1,117 +0,0 @@
-<?xml version="1.0"?>
-
-<project name="pkg-java" default="package" basedir="..">
-
-    <target name="init">
-        <available property="available.resources" file="src/main/resources"/>
-
-        <fail unless="artifactId" message="Missing required property: artifactId"/>
-        <fail unless="version" message="Missing required property: version"/>
-        <fail unless="basedir" message="Missing required property: basedir"/>
-
-        <echo message="Compile classpath: ${classpath.full.compile}"/>
-        <echo message="Test classpath: ${classpath.full.test}"/>
-    </target>
-
-    <!--
-     | LIFECYCLE: Clean
-     |-->
-
-    <target name="clean">
-        <delete dir="${build.directory}"/>
-    </target>
-
-    <!--
-     | LIFECYCLE: jar
-     |
-     | This mimics the default Maven build life-cycle: http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
-     |-->
-
-     <target name="process-resources" depends="init" if="available.resources">
-        <mkdir dir="${build.outputDirectory}"/>
-        <copy todir="${build.outputDirectory}">
-            <fileset dir="src/main/resources"/>
-        </copy>
-     </target>
-
-    <target name="compile" depends="process-resources">
-        <mkdir dir="${build.outputDirectory}"/>
-        <mkdir dir="${build.directory}/generated-sources"/>
-        <javac
-            destdir="${build.outputDirectory}"
-            classpath="${classpath.compile}"
-            nowarn="true"
-            source="1.5" target="1.5"
-            debug="on">
-            <src path="${build.sourceDirectory}"/>
-            <src path="${build.directory}/generated-sources"/>
-        </javac>
-    </target>
-
-    <target name="process-test-resources" depends="compile" unless="maven.test.skip">
-        <mkdir dir="${build.testOutputDirectory}"/>
-        <copy todir="${build.testOutputDirectory}">
-            <fileset dir="src/test/resources"/>
-        </copy>
-     </target>
-
-    <target name="test-compile" depends="process-test-resources" unless="maven.test.skip">
-        <mkdir dir="${build.testOutputDirectory}"/>
-        <javac
-            destdir="${build.testOutputDirectory}"
-            classpath="${classpath.full.test}"
-            nowarn="true"
-            source="1.5" target="1.5"
-            debug="on">
-            <src path="${build.testSourceDirectory}"/>
-        </javac>
-    </target>
-
-    <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" -->
-            <sysproperty key="basedir" value="${basedir}"/>
-            <classpath>
-                <pathelement path="${classpath.full.test}"/>
-            </classpath>
-
-            <formatter type="plain"/>
-            <batchtest todir="${build.directory}/test-output">
-                <fileset dir="${build.testSourceDirectory}">
-                    <include name="**/*Test.java"/>
-                    <exclude name="**/Abstract*"/>
-                    <exclude name="${maven.test.exclude}"/>
-                </fileset>
-            </batchtest>
-        </junit>
-    </target>
-
-    <target name="package" depends="test">
-<!--
-        <delete file="${jar}"/>
-
-        <mkdir dir="${build.directory}/META-INF/maven/org.codehaus.modello/modello-core" />
-        <copy file="./modello-core/pom.xml" todir="${build.directory}/META-INF/maven/org.codehaus.modello/modello-core" />
--->
-        <jar jarfile="${build.directory}/${artifactId}-${version}.jar"
-            basedir="${build.outputDirectory}"/>
-    </target>
-
-    <!--
-     | Javadoc
-     |-->
-
-    <target name="javadoc">
-        <mkdir dir="${javadoc.dir}"/>
-        <javadoc 
-            packagenames="org.codehaus.*"
-            sourcepath="${build.sourceDirectory}"
-            destdir="${javadoc.dir}"
-            author="true"
-            version="true"
-            windowtitle="${package} API"
-            doctitle="${package} - ${version}"
-            classpath="${classpath.full.compile}" >
-        </javadoc>
-    </target>
-</project>

Added: trunk/plexus-containers/debian/maven.rules
===================================================================
--- trunk/plexus-containers/debian/maven.rules	                        (rev 0)
+++ trunk/plexus-containers/debian/maven.rules	2009-07-04 15:04:43 UTC (rev 8840)
@@ -0,0 +1,4 @@
+s/com.google.code.google-collections/com.google.collections/ s/google-collect/google-collections/ jar s/.*/debian/
+s/jdom/org.jdom/ jdom jar s/1\..*/debian/
+junit junit jar s/3\..*/3.x/
+

Modified: trunk/plexus-containers/debian/orig-tar.sh
===================================================================
--- trunk/plexus-containers/debian/orig-tar.sh	2009-07-04 15:04:30 UTC (rev 8839)
+++ trunk/plexus-containers/debian/orig-tar.sh	2009-07-04 15:04:43 UTC (rev 8840)
@@ -2,9 +2,11 @@
 
 TAR=../plexus-containers_$2.orig.tar.gz
 DIR=plexus-containers-$2
-TAG=$(echo plexus-containers-$2 | sed 's,~\(alpha\|beta\),-\1-,')
+TAG=$(echo plexus-containers-$2 | sed 's/~\(alpha\|beta\)/-\1-/')
 
 svn export http://svn.codehaus.org/plexus/plexus-containers/tags/$TAG $DIR
+# remove as it's packaged elsewhere
+rm -r $DIR/plexus-component-metadata
 tar -c -z -f $TAR $DIR
 rm -rf $DIR ../$TAG
 


Property changes on: trunk/plexus-containers/debian/orig-tar.sh
___________________________________________________________________
Modified: svn:executable
   - 
   + *

Modified: trunk/plexus-containers/debian/rules
===================================================================
--- trunk/plexus-containers/debian/rules	2009-07-04 15:04:30 UTC (rev 8839)
+++ trunk/plexus-containers/debian/rules	2009-07-04 15:04:43 UTC (rev 8840)
@@ -3,25 +3,28 @@
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/class/ant.mk
 
-PACKAGE              := $(shell dpkg-parsechangelog | egrep '^Source:' | cut -f2 -d' ')
-VERSION              := $(shell dpkg-parsechangelog | egrep '^Version:' | sed "s,Version: \(.*\)-.*,\1,g")
+PACKAGE              := $(DEB_SOURCE_PACKAGE)
+VERSION              := $(DEB_UPSTREAM_VERSION)
 JAVA_HOME            := /usr/lib/jvm/default-java
-DEB_JARS             := commons-cli google-collect maven2 plexus-classworlds junit \
+DEB_JARS             := ant-nodeps commons-cli google-collections maven2 plexus-classworlds junit \
   plexus-utils xbean-reflect
 DEB_ANT_BUILD_TARGET := package javadoc
 DEB_ANT_BUILDFILE    := debian/build.xml
-DEB_ANT_ARGS         := -Dversion=$(VERSION)
+DEB_ANT_ARGS         := -Dpackage=$(PACKAGE) -Dversion=$(VERSION)
 API_DOCS             := build/api
 MODULES              := container-default component-annotations component-javadoc
 
 get-orig-source:
-	uscan --force-download --rename
+	uscan --download-version $(VERSION) --force-download --rename
 
 binary-post-install/lib$(PACKAGE)-java::
+	mh_installpoms -plib$(PACKAGE)-java
 	set -e; for MODULE in $(MODULES); do \
-	  dh_install -plib$(PACKAGE)-java plexus-$$MODULE/build/plexus-$$MODULE-$(VERSION).jar usr/share/java; \
-	  dh_link -plib$(PACKAGE)-java usr/share/java/plexus-$$MODULE-$(VERSION).jar usr/share/java/plexus-$$MODULE-1.0.jar; \
+	  mh_installjar -plib$(PACKAGE)-java -l --usj-name=plexus-$$MODULE plexus-$$MODULE/pom.xml plexus-$$MODULE/build/plexus-$$MODULE-$(VERSION).jar; \
 	done
 
 binary-post-install/lib$(PACKAGE)-java-doc::
 	dh_install -plib$(PACKAGE)-java-doc $(API_DOCS) usr/share/doc/lib$(PACKAGE)-java
+
+clean::
+	-rm -rf debian/tmp


Property changes on: trunk/plexus-containers/debian/rules
___________________________________________________________________
Modified: svn:executable
   - 
   + *

Modified: trunk/plexus-containers/debian/watch
===================================================================
--- trunk/plexus-containers/debian/watch	2009-07-04 15:04:30 UTC (rev 8839)
+++ trunk/plexus-containers/debian/watch	2009-07-04 15:04:43 UTC (rev 8840)
@@ -1,4 +1,4 @@
 version=3
-opts=uversionmangle=s{-(alpha|beta)-}{~$1} \
+opts=uversionmangle=s/-(alpha|beta)-/~$1/ \
   http://svn.codehaus.org/plexus/plexus-containers/tags/ \
   plexus-containers-(1\.0-.*)/ debian debian/orig-tar.sh




More information about the pkg-java-commits mailing list