This is an automated email from the git hooks/post-receive script. nomadium pushed a commit to annotated tag debian/0.0.337.1-2 in repository bnd.
commit 41cc0a3ff92438698afd1edb76db1b3daa794d70 Author: Ludovic Claude <[email protected]> Date: Sat Aug 1 23:05:56 2009 +0000 [svn-inject] Applying Debian modifications to trunk --- debian/TODO | 3 + debian/bnd.poms | 1 + debian/build.properties | 12 + debian/build.xml | 109 +++++++ debian/changelog | 5 + debian/compat | 1 + debian/control | 32 ++ debian/copyright | 22 ++ debian/orig-tar.sh | 25 ++ debian/rules | 22 ++ debian/svn-transform.sh | 816 ++++++++++++++++++++++++++++++++++++++++++++++++ 11 files changed, 1048 insertions(+) diff --git a/debian/TODO b/debian/TODO new file mode 100644 index 0000000..9c93be8 --- /dev/null +++ b/debian/TODO @@ -0,0 +1,3 @@ +* Command-line script for the bnd command +* Man page +* Build the full jar with the OSGi and Eclipse dependencies (runtime and eclipse sub-packages) diff --git a/debian/bnd.poms b/debian/bnd.poms new file mode 100644 index 0000000..d47c6d3 --- /dev/null +++ b/debian/bnd.poms @@ -0,0 +1 @@ +src/main/resources/pom.xml diff --git a/debian/build.properties b/debian/build.properties new file mode 100644 index 0000000..b4f70ed --- /dev/null +++ b/debian/build.properties @@ -0,0 +1,12 @@ +javadoc.dir=target/api +build.directory=target +maven.test.skip=true +build.javaVersion=1.5 +classpath.compile = \ + /usr/share/java/ant.jar:\ + /usr/share/java/junit.jar:\ + ${basedir}/libg/target/libg-${version}.jar:\ + ${basedir}/runtime/target/runtime-${version}.jar:\ + ${basedir}/core/target/core-${version}.jar:\ + ${basedir}/service/target/service-${version}.jar + diff --git a/debian/build.xml b/debian/build.xml new file mode 100644 index 0000000..5e2588d --- /dev/null +++ b/debian/build.xml @@ -0,0 +1,109 @@ +<?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}" /> + </ant> + </sequential> + </macrodef> + + <target name="clean"> + <cleanmodule dir=""/> + <cleanmodule dir="libg"/> + <cleanmodule dir="service"/> + <!--cleanmodule dir="runtime"/--> + <cleanmodule dir="core"/> + <!--cleanmodule dir="eclipse"/--> + </target> + + <target name="package"> + <packagemodule dir=""/> + <packagemodule dir="libg"/> + <packagemodule dir="service"/> + <!--packagemodule dir="runtime"/--> + <packagemodule dir="core"/> + <!--packagemodule dir="eclipse"/--> + <mkdir dir="target/bnd-jar/OSGI-OPT/src" /> + <unjar src="libg/target/libg-${version}.jar" dest="target/bnd-jar"> + <patternset> + <exclude name="aQute/libg/asn1/**" /> + <exclude name="aQute/libg/classdump/**" /> + <exclude name="aQute/libg/clauses/**" /> + <exclude name="aQute/libg/log/**" /> + <exclude name="META-INF/**" /> + </patternset> + </unjar> + <unjar src="service/target/service-${version}.jar" dest="target/bnd-jar"> + </unjar> + <unjar src="core/target/core-${version}.jar" dest="target/bnd-jar"> + <patternset> + <exclude name="DefaultPackage.class" /> + <exclude name="aQute/lib/signing/**" /> + <exclude name="aQute/lib/spring/**" /> + <exclude name="META-INF/**" /> + </patternset> + </unjar> + <copy todir="target/bnd-jar/OSGI-OPT/src"> + <fileset dir="libg/src/main/java"> + <patternset> + <exclude name="aQute/libg/asn1/**" /> + <exclude name="aQute/libg/classdump/**" /> + <exclude name="aQute/libg/clauses/**" /> + <exclude name="aQute/libg/log/**" /> + <exclude name="META-INF/**" /> + </patternset> + </fileset> + <fileset dir="service/src/main/java"> + </fileset> + <fileset dir="core/src/main/java"> + <patternset> + <exclude name="DefaultPackage.java" /> + <exclude name="aQute/lib/signing/**" /> + <exclude name="aQute/lib/spring/**" /> + <exclude name="META-INF/**" /> + </patternset> + </fileset> + </copy> + <copy todir="target/bnd-jar/OSGI-OPT" file="core/src/main/bnd/bnd.bnd" /> + <copy todir="target/bnd-jar" file="LICENSE" /> + <copy todir="target/bnd-jar"> + <fileset dir="src/main/resources"> + <include name="*.xml" /> + </fileset> + </copy> + <jar destfile="target/bnd.jar" + manifest="core/src/main/resources/META-INF/MANIFEST.MF" > + <fileset dir="target/bnd-jar" /> + </jar> + </target> + + <target name="javadoc"> + <javadoc destdir="${javadoc.dir}"> + <packageset dir="libg/src/main/java/"/> + <packageset dir="service/src/main/java/"/> + <packageset dir="runtime/src/main/java/"/> + <packageset dir="core/src/main/java/"/> + <packageset dir="eclipse/src/main/java/"/> + </javadoc> + </target> + +</project> diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..72b97c7 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +bnd (0.0.337.1-0ubuntu1~ppa10) karmic; urgency=low + + * Initial release. (Closes: #539558) + + -- Ludovic Claude <[email protected]> Sun, 19 Jul 2009 19:48:06 +0100 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +7 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..286db4b --- /dev/null +++ b/debian/control @@ -0,0 +1,32 @@ +Source: bnd +Section: java +Priority: optional +Maintainer: Debian Java Maintainers <[email protected]> +Uploaders: Ludovic Claude <[email protected]> +Build-Depends: debhelper (>= 7), cdbs, default-jdk, ant-optional, maven-ant-helper +Build-Depends-Indep: maven-repo-helper, junit +Standards-Version: 3.8.2 +Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/bnd +Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/trunk/bnd +Homepage: http://www.aqute.biz/Code/Bnd + +Package: bnd +Section: java +Architecture: all +Depends: ${misc:Depends}, default-jre-headless | java5-runtime-headless | openjdk-6-jdk +Description: A tool to create and diagnose OSGi R4 bundles + The bnd tool helps you create and diagnose OSGi R4 bundles. + The key functions are: + . + * Show the manifest and JAR contents of a bundle + * Wrap a JAR so that it becomes a bundle + * Create a Bundle from a specification and a class path + * Verify the validity of the manifest entries + . + The tool is capable of acting as: + . + * Command line tool + * Eclipse Plugin + * Maven Plugin + * Ant Plugin + diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..955ddad --- /dev/null +++ b/debian/copyright @@ -0,0 +1,22 @@ +Format-Specification: http://dep.debian.net/deps/dep5/ +Name: BND +Maintainer: Peter Kriens, aQute SARL +Source: http://www.aqute.biz/Code/Bnd + +Files: * +Copyright: 2006-2009, aQute SARL +License: Apache-2.0 + +Files: debian/* +Copyright: 2009, Ludovic Claude <[email protected]>. +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/orig-tar.sh b/debian/orig-tar.sh new file mode 100644 index 0000000..a65170e --- /dev/null +++ b/debian/orig-tar.sh @@ -0,0 +1,25 @@ +#!/bin/sh -e + +VERSION=$2 +TAR=../bnd_$VERSION.orig.tar.gz +DIR=bnd-$VERSION + +DATE=20090701 +cvs -z3 -d:pserver:[email protected]:/cvsroot/bnd co -D $DATE -d bnd-cvs . + +# Use a script to transform the current codebase. +# Hopefully the next release of BND will adopt this layout +chmod +x svn-transform.sh +svn-transform.sh bnd-cvs $DIR +rm -r bnd-cvs + +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/rules b/debian/rules new file mode 100755 index 0000000..0962b10 --- /dev/null +++ b/debian/rules @@ -0,0 +1,22 @@ +#!/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 ant junit +DEB_ANT_BUILD_TARGET := package #javadoc +DEB_ANT_BUILDFILE := debian/build.xml +DEB_ANT_ARGS := -Dpackage=$(PACKAGE) -Dbin.package=$(PACKAGE) -Dversion=$(VERSION) + +binary-post-install/$(PACKAGE):: + mh_installpoms -p$(PACKAGE) + mh_installjar -p$(PACKAGE) -l src/main/resources/pom.xml target/bnd.jar + +clean:: + -rm -rf debian/tmp + +get-orig-source: + -uscan --download-version $(DEB_UPSTREAM_VERSION) --force-download --rename diff --git a/debian/svn-transform.sh b/debian/svn-transform.sh new file mode 100644 index 0000000..d47141f --- /dev/null +++ b/debian/svn-transform.sh @@ -0,0 +1,816 @@ +#!/bin/bash +# Usage: svn-transform src dest + +set -e + +SRC=$1 +DEST=$2 +SRC=$(pwd)/"${SRC:-bnd}" +DEST=$(pwd)/"${DEST:-bnd-svn}" + +rm -rf $DEST + +echo "Copy files..." +mkdir -p $DEST/libg/src/main/java +rsync --cvs-exclude -r --exclude '**/*.class' --exclude '**/*.jar' $SRC/aQute.libg/src/ $DEST/libg/src/main/java/ + +mkdir -p $DEST/runtime/src/main/java +rsync --cvs-exclude -r --exclude '**/*.class' --exclude '**/*.jar' $SRC/aQute.runtime/src/ $DEST/runtime/src/main/java/ + +mkdir -p $DEST/service/src/main/java +rsync --cvs-exclude -r --exclude '**/*.class' --exclude '**/*.jar' $SRC/aQute.service/src/ $DEST/service/src/main/java/ + +mkdir -p $DEST/core/src/main/bnd +mkdir -p $DEST/core/src/main/java +mkdir -p $DEST/core/src/main/resources +mkdir -p $DEST/core/src/test/java +mkdir -p $DEST/core/src/test/resources + +rsync --cvs-exclude -r $SRC/aQute.bnd/*.bnd $SRC/aQute.bnd/bnd.version $SRC/aQute.bnd/plugin.xml $DEST/core/src/main/bnd +rsync --cvs-exclude -r --exclude 'test' --exclude 'biz' --exclude 'swing2swt' --exclude '**/*.class' --exclude '**/*.jar' --exclude '**/*.properties' --exclude '**/*Test.java' --exclude 'aQute/bnd/plugin' --exclude 'aQute/bnd/launch' --exclude 'aQute/bnd/junit' --exclude 'aQute/bnd/jareditor' --exclude 'aQute/bnd/classpath' $SRC/aQute.bnd/src/ $DEST/core/src/main/java/ +rsync --cvs-exclude -r --exclude '**/*.jar' $SRC/aQute.bnd/src/aQute/bnd/test $DEST/core/src/main/java/aQute/bnd/ +rsync --cvs-exclude -r $SRC/aQute.bnd/META-INF $SRC/aQute.bnd/icons $DEST/core/src/main/resources/ +rsync -avmr --filter='+ */' --filter='+ *.properties' --filter='- *' $SRC/aQute.bnd/src $DEST/core/src/main/resources/ + +rsync --cvs-exclude -r --exclude 'com.acme' --exclude 'iht' --exclude 'include.bnd' --exclude 'repo' --exclude 'resourcesonly' --exclude 'signing' --exclude 'split' --exclude '*.jar' --exclude '*.class' --exclude '*.jclass' --exclude '*.clazz' --exclude '*.bnd' --exclude '*.mf' --exclude '*.prop' --exclude '*.info' --exclude '*.spring' $SRC/aQute.bnd/src/test $DEST/core/src/test/java/ +cd $SRC/aQute.bnd/src/test +rsync --cvs-exclude -r com.acme iht include.bnd repo resourcesonly signing split *.jar *.class *.jclass *.clazz *.bnd *.mf *.prop *.info *.spring $DEST/core/src/test/resources/test +cd - +rsync --cvs-exclude -r $SRC/aQute.bnd/test/ $DEST/core/src/test/resources/ +rsync --cvs-exclude -r $SRC/aQute.bnd/bnd $DEST/core/src/test/resources/ + +mkdir -p $DEST/compilerversions/src/main/java +mkdir -p $DEST/compilerversions/src/main/bnd + +echo 'mkdir -p target/classes' > .cp.sh +cat .cp.sh $SRC/aQute.bnd/compilerversions/compile.sh | sed 's|-cp src|-d target/classes -cp target/classes|' | sed 's|src/|src/main/java/|' > $DEST/compilerversions/compile.sh +chmod +x $DEST/compilerversions/compile.sh +rm .cp.sh +cp $SRC/aQute.bnd/compilerversions/*.gif $DEST/compilerversions/ +cp $SRC/aQute.bnd/compilerversions/compilerversions.bnd $DEST/compilerversions/src/main/bnd +rsync --cvs-exclude -r --exclude '**/*.class' $SRC/aQute.bnd/compilerversions/src/ $DEST/compilerversions/src/main/java + +mkdir -p $DEST/eclipse/src/main/java/aQute/bnd + +rsync --cvs-exclude -r --exclude 'test' --exclude 'aQute' --exclude '**/*.class' --exclude '**/*.jar' $SRC/aQute.bnd/src/ $DEST/eclipse/src/main/java/ +rsync --cvs-exclude -r $SRC/aQute.bnd/src/aQute/bnd/plugin $SRC/aQute.bnd/src/aQute/bnd/launch $SRC/aQute.bnd/src/aQute/bnd/junit $SRC/aQute.bnd/src/aQute/bnd/jareditor $SRC/aQute.bnd/src/aQute/bnd/classpath $DEST/eclipse/src/main/java/aQute/bnd + +rsync --cvs-exclude -r $SRC/aQute.bnd/jar $DEST/core/src/test/resources +mkdir -p $DEST/src/main/assembly +mkdir -p $DEST/src/main/resources +cp $SRC/aQute.bnd/plugin.xml $DEST/src/main/resources +cp $SRC/aQute.bnd/FEATURE* $DEST +cp $SRC/aQute.bnd/LICENSE $DEST +cp $SRC/aQute.bnd/TODO $DEST +cp $SRC/aQute.bnd/testreqs $DEST + +echo "Perl back magic..." +#perl -p -i -e 's|src/test|src/test/java/test|g' $DEST/core/src/test/java/test/*.java +#perl -p -i -e 's|"bin"|"target/test-classes"|g' $DEST/core/src/test/java/test/*.java +perl -p -i -e 's|"aQute\.bnd"|"core"|g' $DEST/core/src/test/java/test/*.java +perl -p -i -e 's|TargetFolder=test|TargetFolder=src/test/resources|g' $DEST/core/src/test/java/test/*.java +perl -p -i -e 's|\"/=src/test|"/=src/test/java/test|g' $DEST/core/src/test/java/test/*.java +perl -p -i -e 's|extends TestCase|extends BaseTestCase|g' $DEST/core/src/test/java/test/*.java +perl -p -i -e 's|new File\("bin"\)|binDir|g' $DEST/core/src/test/java/test/*.java +perl -p -i -e 's|new File\("src"\)|srcDir|g' $DEST/core/src/test/java/test/*.java +perl -p -i -e 's|new File\("(.*)"\)|locateFile("\1")|g' $DEST/core/src/test/java/test/*.java +perl -p -i -e 's|locateFile\("src/|locateFile("|g' $DEST/core/src/test/java/test/*.java +perl -p -i -e 's|locateFile\("test"\)|testSrcDir|g' $DEST/core/src/test/java/test/*.java +perl -p -i -e 's|contains\("src/test|contains("test|g' $DEST/core/src/test/java/test/*.java +perl -p -i -e 's|\"src\"|srcDir.getAbsolutePath()|g' $DEST/core/src/test/java/test/*.java + +echo "Create Maven and Eclipse files..." +cat > $DEST/pom.xml <<EOF +<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/maven-v4_0_0.xsd'> + <modelVersion>4.0.0</modelVersion> + <groupId>biz.aQute</groupId> + <artifactId>bnd-parent</artifactId> + <version>0.0.337</version> + <packaging>pom</packaging> + <description> + A utility and plugin to wrap, build, or print bundles + </description> + <name>aQute Bundle Tool parent</name> + <url>http://www.aQute.biz/Code/Bnd</url> + <organization> + <name>aQute SARL</name> + <url>http://www.aQute.biz</url> + </organization> + <licenses> + <license> + <name>This material is licensed under the Apache Software License, Version 2.0</name> + <url>http://www.apache.org/licenses/LICENSE-2.0</url> + <distribution>repo</distribution> + </license> + </licenses> + <modules> + <module>libg</module> + <module>core</module> + <module>service</module> + <module>runtime</module> + <!--module>eclipse</module--> + </modules> + <build> + <plugins> + <plugin> + <artifactId>maven-assembly-plugin</artifactId> + <configuration> + <descriptors> + <descriptor>src/main/assembly/dist.xml</descriptor> + </descriptors> + </configuration> + <executions> + <execution> + <id>make-assembly</id> <!-- this is used for inheritance merges --> + <phase>package</phase> <!-- append to the packaging phase. --> + <goals> + <goal>single</goal> <!-- goals == mojos --> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> +</project> +EOF + +cat > $DEST/core/pom.xml <<EOF +<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/maven-v4_0_0.xsd'> + <modelVersion>4.0.0</modelVersion> + <groupId>biz.aQute</groupId> + <artifactId>core</artifactId> + <version>0.0.337</version> + <description> + A utility and plugin to wrap, build, or print bundles + </description> + <name>aQute Bundle Tool - core</name> + <url>http://www.aQute.biz/Code/Bnd</url> + <organization> + <name>aQute SARL</name> + <url>http://www.aQute.biz</url> + </organization> + <licenses> + <license> + <name>This material is licensed under the Apache Software License, Version 2.0</name> + <url>http://www.apache.org/licenses/LICENSE-2.0</url> + <distribution>repo</distribution> + </license> + </licenses> + <build> + <testResources> + <testResource> + <filtering>false</filtering> + <directory>src/test/resources</directory> + <includes> + <include>**/*</include> + </includes> + </testResource> + </testResources> + <plugins> + <plugin> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <source>1.5</source> + <target>1.5</target> + </configuration> + </plugin> + </plugins> + </build> + <repositories> + <repository> + <releases> + <enabled>true</enabled> + </releases> + <snapshots> + <enabled>false</enabled> + </snapshots> + <id>eclipse</id> + <name>Eclipse repository</name> + <url>http://repository.sonatype.org/content/repositories/eclipse</url> + </repository> + </repositories> + <dependencies> + <dependency> + <groupId>org.apache.ant</groupId> + <artifactId>ant</artifactId> + <version>1.7.0</version> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>biz.aQute</groupId> + <artifactId>libg</artifactId> + <version>\${project.version}</version> + </dependency> + <dependency> + <groupId>biz.aQute</groupId> + <artifactId>service</artifactId> + <version>\${project.version}</version> + </dependency> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>3.8.2</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.eclipse</groupId> + <artifactId>org.eclipse.osgi.services</artifactId> + <version>3.1.200.v20070605</version> + <scope>test</scope> + </dependency> + </dependencies> +</project> +EOF + +cat > $DEST/libg/pom.xml <<EOF +<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/maven-v4_0_0.xsd'> + <modelVersion>4.0.0</modelVersion> + <groupId>biz.aQute</groupId> + <artifactId>libg</artifactId> + <version>0.0.337</version> + <description> + A utility and plugin to wrap, build, or print bundles + </description> + <name>aQute Bundle Tool - libg</name> + <url>http://www.aQute.biz/Code/Bnd</url> + <organization> + <name>aQute SARL</name> + <url>http://www.aQute.biz</url> + </organization> + <licenses> + <license> + <name>This material is licensed under the Apache Software License, Version 2.0</name> + <url>http://www.apache.org/licenses/LICENSE-2.0</url> + <distribution>repo</distribution> + </license> + </licenses> + <build> + <plugins> + <plugin> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <source>1.5</source> + <target>1.5</target> + </configuration> + </plugin> + </plugins> + </build> +</project> +EOF + +cat > $DEST/service/pom.xml <<EOF +<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/maven-v4_0_0.xsd'> + <modelVersion>4.0.0</modelVersion> + <groupId>biz.aQute</groupId> + <artifactId>service</artifactId> + <version>0.0.337</version> + <description> + A utility and plugin to wrap, build, or print bundles + </description> + <name>aQute Bundle Tool - service</name> + <url>http://www.aQute.biz/Code/Bnd</url> + <organization> + <name>aQute SARL</name> + <url>http://www.aQute.biz</url> + </organization> + <licenses> + <license> + <name>This material is licensed under the Apache Software License, Version 2.0</name> + <url>http://www.apache.org/licenses/LICENSE-2.0</url> + <distribution>repo</distribution> + </license> + </licenses> + <build> + <plugins> + <plugin> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <source>1.5</source> + <target>1.5</target> + </configuration> + </plugin> + </plugins> + </build> +</project> +EOF + +cat > $DEST/runtime/pom.xml <<EOF +<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/maven-v4_0_0.xsd'> + <modelVersion>4.0.0</modelVersion> + <groupId>biz.aQute</groupId> + <artifactId>runtime</artifactId> + <version>0.0.337</version> + <description> + A utility and plugin to wrap, build, or print bundles + </description> + <name>aQute Bundle Tool - runtime</name> + <url>http://www.aQute.biz/Code/Bnd</url> + <organization> + <name>aQute SARL</name> + <url>http://www.aQute.biz</url> + </organization> + <licenses> + <license> + <name>This material is licensed under the Apache Software License, Version 2.0</name> + <url>http://www.apache.org/licenses/LICENSE-2.0</url> + <distribution>repo</distribution> + </license> + </licenses> + <build> + <plugins> + <plugin> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <source>1.5</source> + <target>1.5</target> + </configuration> + </plugin> + </plugins> + </build> + <repositories> + <repository> + <releases> + <enabled>true</enabled> + </releases> + <snapshots> + <enabled>false</enabled> + </snapshots> + <id>eclipse</id> + <name>Eclipse repository</name> + <url>http://repository.sonatype.org/content/repositories/eclipse</url> + </repository> + </repositories> + <dependencies> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>3.8.2</version> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>org.eclipse</groupId> + <artifactId>org.eclipse.osgi</artifactId> + <version>3.5.0.v20090520</version> + <scope>compile</scope> + </dependency> + </dependencies> +</project> +EOF + +cat > $DEST/eclipse/pom.xml <<EOF +<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/maven-v4_0_0.xsd'> + <modelVersion>4.0.0</modelVersion> + <groupId>biz.aQute</groupId> + <artifactId>eclipse</artifactId> + <version>0.0.337</version> + <description> + A utility and plugin to wrap, build, or print bundles + </description> + <name>aQute Bundle Tool - eclipse support</name> + <url>http://www.aQute.biz/Code/Bnd</url> + <organization> + <name>aQute SARL</name> + <url>http://www.aQute.biz</url> + </organization> + <licenses> + <license> + <name>This material is licensed under the Apache Software License, Version 2.0</name> + <url>http://www.apache.org/licenses/LICENSE-2.0</url> + <distribution>repo</distribution> + </license> + </licenses> + <build> + <plugins> + <plugin> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <source>1.5</source> + <target>1.5</target> + </configuration> + </plugin> + </plugins> + </build> + <repositories> + <repository> + <releases> + <enabled>true</enabled> + </releases> + <snapshots> + <enabled>false</enabled> + </snapshots> + <id>eclipse</id> + <name>Eclipse repository</name> + <url>http://repository.sonatype.org/content/repositories/eclipse</url> + </repository> + </repositories> + <!-- All org.eclipse.* dependencies require that you get the Eclipse 3.2 distribution (NOT 3.2.x) + and manually deploy the various plugins to your repository, e.g. using mvn deploy:deploy-file. + Which plugin files to deploy should be fairly straight forward to figure out given the + artifactId and version below --> + <dependencies> + <dependency> + <groupId>org.eclipse</groupId> + <artifactId>org.eclipse.osgi</artifactId> + <!--version>3.2.0-v20060601</version--> + <version>3.2.1.R32x_v20060919</version> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>org.eclipse</groupId> + <artifactId>org.eclipse.equinox.common</artifactId> + <version>3.2.0.v20060603</version> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>org.eclipse</groupId> + <artifactId>org.eclipse.core.resources</artifactId> + <!--version>3.2.0.v20060603</version--> + <version>3.2.1.R32x_v20060914</version> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>org.eclipse</groupId> + <artifactId>org.eclipse.core.runtime</artifactId> + <version>3.2.0.v20060603</version> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>org.eclipse</groupId> + <artifactId>org.eclipse.core.jobs</artifactId> + <version>3.2.0.v20060603</version> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>org.eclipse</groupId> + <artifactId>org.eclipse.equinox.registry</artifactId> + <!--version>3.2.0.v20060603</version--> + <version>3.2.1.R32x_v20060814</version> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>org.eclipse</groupId> + <artifactId>org.eclipse.jface</artifactId> + <!-- version>3.2.0-I20060605-1400</version--> + <version>3.2.1.M20060908-1000</version> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>org.eclipse</groupId> + <artifactId>org.eclipse.ui.workbench</artifactId> + <!--version>3.2.0-I20060605-1400</version--> + <version>3.2.1.M20060906-0800</version> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>org.eclipse</groupId> + <artifactId>org.eclipse.swt.win32.win32.x86</artifactId> + <!--version>3.2.0.v3232</version--> + <version>3.2.1.v3235</version> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>org.eclipse</groupId> + <artifactId>org.eclipse.jdt.core</artifactId> + <!--version>3.2.0.v_671</version--> + <version>3.2.1.v_677_R32x</version> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>org.apache.ant</groupId> + <artifactId>ant</artifactId> + <version>1.7.0</version> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>biz.aQute</groupId> + <artifactId>core</artifactId> + <version>\${project.version}</version> + </dependency> + </dependencies> +</project> +EOF + +cat > $DEST/core/.classpath <<EOF +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry including="**/*.java" kind="src" path="src/main/java"/> + <classpathentry including="**/*.java" kind="src" output="target/test-classes" path="src/test/java"/> + <classpathentry kind="con" path="org.eclipse.iam.jdt.core.mavenClasspathContainer"/> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> + <classpathentry kind="output" path="target/classes"/> +</classpath> +EOF + +cat > $DEST/core/.project <<EOF +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>core</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.iam.jdt.core.mavenIncrementalBuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.iam.jdt.core.mavenNature</nature> + <nature>org.eclipse.jdt.core.javanature</nature> + </natures> +</projectDescription> +EOF + +cat > $DEST/core/src/test/java/test/BaseTestCase.java <<EOF +package test; + +import java.io.File; + +import junit.framework.TestCase; + +public class BaseTestCase extends TestCase { + + protected File binDir; + protected File srcDir; + protected File testSrcDir; + + protected void setUp() throws Exception { + super.setUp(); + binDir = new File("target/test-classes"); + if (!binDir.exists()) { + binDir = new File("bin"); + } + srcDir = new File("src/test/java"); + testSrcDir = new File(srcDir, "test"); + } + + protected File locateFile(String relPath) { + File found = null; + if (getClass().getResource("/" + relPath) != null) { + String path = getClass().getResource("/" + relPath).getPath(); + path = path.replace("file:", ""); + System.out.println(path); + found = new File(path); + if (!found.exists()) { + found = null; + } + } + if (found == null) { + found = new File("src/test/resources/" + relPath); + if (!found.exists()) { + found = new File("src/test/java/" + relPath); + } + } + return found; + } +} +EOF + +cat > $DEST/eclipse/.classpath <<EOF +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry including="**/*.java" kind="src" path="src/main/java"/> + <classpathentry kind="con" path="org.eclipse.iam.jdt.core.mavenClasspathContainer"/> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> + <classpathentry kind="output" path="target/classes"/> +</classpath> +EOF + +cat > $DEST/eclipse/.project <<EOF +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>eclipse</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.iam.jdt.core.mavenIncrementalBuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.iam.jdt.core.mavenNature</nature> + <nature>org.eclipse.jdt.core.javanature</nature> + </natures> +</projectDescription> +EOF + +cat > $DEST/libg/.classpath <<EOF +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry including="**/*.java" kind="src" path="src/main/java"/> + <classpathentry kind="con" path="org.eclipse.iam.jdt.core.mavenClasspathContainer"/> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> + <classpathentry kind="output" path="target/classes"/> +</classpath> +EOF + +cat > $DEST/libg/.project <<EOF +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>libg</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.iam.jdt.core.mavenIncrementalBuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.iam.jdt.core.mavenNature</nature> + <nature>org.eclipse.jdt.core.javanature</nature> + </natures> +</projectDescription> +EOF + +cat > $DEST/runtime/.classpath <<EOF +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry including="**/*.java" kind="src" path="src/main/java"/> + <classpathentry kind="con" path="org.eclipse.iam.jdt.core.mavenClasspathContainer"/> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> + <classpathentry kind="output" path="target/classes"/> +</classpath> +EOF + +cat > $DEST/runtime/.project <<EOF +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>runtime</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.iam.jdt.core.mavenIncrementalBuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.iam.jdt.core.mavenNature</nature> + <nature>org.eclipse.jdt.core.javanature</nature> + </natures> +</projectDescription> +EOF + +cat > $DEST/service/.classpath <<EOF +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry including="**/*.java" kind="src" path="src/main/java"/> + <classpathentry kind="con" path="org.eclipse.iam.jdt.core.mavenClasspathContainer"/> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> + <classpathentry kind="output" path="target/classes"/> +</classpath> +EOF + +cat > $DEST/service/.project <<EOF +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>service</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.iam.jdt.core.mavenIncrementalBuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.iam.jdt.core.mavenNature</nature> + <nature>org.eclipse.jdt.core.javanature</nature> + </natures> +</projectDescription> +EOF + +cat > $DEST/src/main/assembly/dist.xml <<EOF +<assembly> + <id>dist</id> + <formats> + <format>jar</format> + </formats> + <includeBaseDirectory>false</includeBaseDirectory> + <moduleSets> + <moduleSet> + <excludes> + <exclude>biz.aQute:runtime:*</exclude> + </excludes> + <sources> + <includeModuleDirectory>false</includeModuleDirectory> + <fileSets> + <fileSet> + <outputDirectory>OSGI-OPT/src</outputDirectory> + <directory>src/main/java</directory> + <excludes> + <exclude>DefaultPackage.java</exclude> + <exclude>aQute/lib/signing/**</exclude> + <exclude>aQute/lib/spring/**</exclude> + <exclude>aQute/libg/asn1/**</exclude> + <exclude>aQute/libg/classdump/**</exclude> + <exclude>aQute/libg/clauses/**</exclude> + <exclude>aQute/libg/log/**</exclude> + </excludes> + </fileSet> + </fileSets> + </sources> + <binaries> + <includeDependencies>false</includeDependencies> + <unpack>true</unpack> + <unpackOptions> + <includes> + <include>aQute/**</include> + <include>icons/**</include> + </includes> + <!-- Doesn't seem to work, TODO: report bug --> + <excludes> + <exclude>*.classes</exclude> + <exclude>DefaultPackage.class</exclude> + <exclude>aQute/lib/signing/**</exclude> + <exclude>aQute/lib/spring/**</exclude> + <exclude>aQute/libg/asn1/**</exclude> + <exclude>aQute/libg/classdump/**</exclude> + <exclude>aQute/libg/clauses/**</exclude> + <exclude>aQute/libg/log/**</exclude> + </excludes> + </unpackOptions> + <outputDirectory></outputDirectory> + </binaries> + </moduleSet> + </moduleSets> + <fileSets> + <fileSet> + <includes> + <include>\${project.basedir}/LICENSE</include> + <include>\${project.basedir}/src/main/resources/*.xml</include> + </includes> + <useDefaultExcludes>true</useDefaultExcludes> + </fileSet> + </fileSets> +</assembly> +EOF + +cat > $DEST/src/main/resources/pom.xml <<EOF +<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/maven-v4_0_0.xsd'> + <modelVersion>4.0.0</modelVersion> + <groupId>biz.aQute</groupId> + <artifactId>bnd</artifactId> + <version>0.0.337</version> + <packaging>jar</packaging> + <description> + A utility and plugin to wrap, build, or print bundles + </description> + <name>aQute Bundle Tool</name> + <url>http://www.aQute.biz/Code/Bnd</url> + <organization> + <name>aQute SARL</name> + <url>http://www.aQute.biz</url> + </organization> + <licenses> + <license> + <name>This material is licensed under the Apache Software License, Version 2.0</name> + <url>http://www.apache.org/licenses/LICENSE-2.0</url> + <distribution>repo</distribution> + </license> + </licenses> +</project> +EOF + +cat > $DEST/build <<EOF +#!/bin/sh +mvn -Dmaven.test.skip=true install +EOF + +echo "Done." -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/bnd.git _______________________________________________ pkg-java-commits mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-commits

