debian/0000755000000000000000000000000012230140716007162 5ustar debian/git-transform.sh0000644000000000000000000000167011670331622012323 0ustar #!/bin/bash # Usage: git-transform src dest set -e SRC=$1 DEST=$2 SRC=${SRC:-bnd-git} DEST=${DEST:-bnd-clean} VERSION=$(dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' '| cut -d: -f2- | cut -d'-' -f 1) rm -rf $DEST echo "Copy files..." rsync --cvs-exclude -r --exclude '**/*.class' --exclude '**/*.jar' --exclude '.git*' $SRC/ $DEST/ echo "Cleanup..." # Remove all JARs find $DEST/cnf/repo/ -name "*.jar" -delete rm -rf $DEST/biz.aQute.bndlib/maven/org/apache rm -rf $DEST/biz.aQute.bndlib/jar/ # Remove Eclipse compiler, not needed and under EPL-v1 rm -rf $DEST/biz.aQute.eclipse.compiler # Remove bld (to many dependencies) rm -rf $DEST/biz.aQute.bld # Cleanup of binary blobs rm -rf $DEST/biz.aQute.bndlib/test/maven-repo/ rm -rf $DEST/biz.aQute.bndlib/src/test/*.jclass rm -rf $DEST/biz.aQute.bndlib/src/test/*.clazz rm -rf $DEST/biz.aQute.bndlib/test/beasymock.bar rm -rf $DEST/biz.aQute.bndlib/test/eclipse/plugins/beasymock.bar debian/bnd.sh0000644000000000000000000000035511670331622010271 0ustar #!/bin/sh # Include the wrappers utility script . /usr/lib/java-wrappers/java-wrappers.sh # We need a java5 runtime find_java_runtime java5 # Define our classpath find_jars bnd # Run bnd run_java aQute.bnd.main.bnd $extra_args "$@" debian/bnd.pod0000644000000000000000000000670011670331622010441 0ustar =head1 NAME bnd - Create and diagnose OSGi R4 bundles. =head1 SYNOPSIS B [S>] [S>] [S>] B [S>] EfileE.jar B [S>] EfileE.bnd =head1 DESCRIPTION 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 =head1 GENERAL OPTIONS =over =item -failok Same as the property -failok. The current run will create a JAR file even if there were errors. =item -exceptions Will print the exception when the software has ran into a bad exception and bails out. Normally only a message is printed. For debugging or diagnostic reasons, the exception stack trace can be very helpful. =back =head1 COMMANDS =over =item print ( -verify | -manifest | -list | - all ) * EfileE.jar + The print function will take a list of JAR file and print one or more aspect of the JAF riles. The following aspects can be added. * -verify - Verify the JAR for consistency with the specification The print will exit with an error if the verify fails. * -manifest - Show the manifest * -list - List the entries in the JAR file * -all - Do all (this is the default. C =item buildx ( -classpath LIST | -eclipse fileE | -noeclipse | -output EfileE ) * EfileE.bnd + The build function will assemble a bundle from the bnd specification. The default name of the output bundle is the name of the bnd file with a .jar extension. * -classpath - A list of JAR files and/or directories that should be placed on the class path before the calculation starts. * -eclipse - Parse the file as an Eclipse .classpath file, use the information to create an Eclipse's project class path. If this option is used, the default .classpath file is not read * -noeclipse - Do not parse the .classpath file of an Eclipse project. * -output - Override the default output name of the bundle or the directory. If the output is a directory, the name will be derived from the bnd file name. C =item wrap ( -classpath (fileE(','fileE)*)-output fileE|dir | -properties fileE ) * -ignoremanifest? fileE.jar * The wrap command takes an existing JAR file and guesses the manifest headers that will make this JAR useful for an OSGi Service Platform. If the output file is not overridden, the name of the input file is used with a .bar extension. The default bnd file for the header calculation is: Export-Package: * Import-Package: If the target bundle has a manifest, the headers are merged with the properties. The defaults can be overridden with a specific properties file. * -output - Set the output file or directory * -classpath - Sets the classpath as a comma separated list * -properties - Use a special property file for the manifest calculation. * -ignoremanifest - Do not include the manifest headers from the target bundle C =back =head1 SEE ALSO L =head1 AUTHOR Ludovic Claude Damien Raude-Morvan debian/watch0000644000000000000000000000015212230135717010216 0ustar version=3 https://github.com/bndtools/bnd/releases .*/([\d\.]+)(?:.REL)?.tar.gz debian debian/orig-tar.sh debian/rules0000755000000000000000000001577512230135717010266 0ustar #!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/ant.mk MAVEN_REPO := http://repo1.maven.org/maven2/biz/aQute/ MAVEN_VERSION := 1.50.0 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 := build ### Bootstrap build pre-build:: debian/stamp-bootstrap bootstrap: debian/stamp-bootstrap debian/stamp-bootstrap: DEB_BUILDDIR=$(CURDIR) debian/stamp-bootstrap: DEB_ANT_BUILDFILE=$(CURDIR)/debian/bootstrap.xml debian/stamp-bootstrap: $(DEB_ANT_INVOKE) mkdir -p cnf/repo/biz.aQute.bnd/ \ cnf/repo/com.springsource.junit/ \ cnf/repo/org.eclipse.osgi \ cnf/repo/osgi.core \ cnf/repo/osgi.cmpn \ cnf/repo/ee.minimum \ cnf/repo/junit.osgi \ cnf/repo/org.apache.tools.ant \ cnf/repo/org.eclipse.core.runtime \ cnf/repo/org.eclipse.core.resources \ cnf/repo/org.eclipse.core.commands \ cnf/repo/org.eclipse.jdt.core \ cnf/repo/org.eclipse.jdt.ui \ cnf/repo/org.eclipse.jdt.debug.ui \ cnf/repo/org.eclipse.jdt.junit \ cnf/repo/org.eclipse.jdt.launching \ cnf/repo/org.eclipse.jface \ cnf/repo/org.eclipse.jface.text \ cnf/repo/org.eclipse.swt \ cnf/repo/org.eclipse.debug.ui \ cnf/repo/org.eclipse.debug.core \ cnf/repo/org.eclipse.equinox.common \ cnf/repo/org.eclipse.equinox.registry \ cnf/repo/org.eclipse.ui \ cnf/repo/org.eclipse.ui.editors \ cnf/repo/org.eclipse.ui.workbench \ cnf/repo/org.eclipse.ui.workbench.texteditor \ cnf/repo/org.eclipse.ui.ide \ cnf/repo/org.eclipse.core.jobs \ cnf/repo/org.eclipse.text \ cnf/repo/org.osgi.impl.bundle.bindex ln -s $(CURDIR)/bootstrap/bnd.jar cnf/repo/biz.aQute.bnd/biz.aQute.bnd-latest.jar ln -s /usr/share/java/junit.jar cnf/repo/com.springsource.junit/com.springsource.junit-3.8.2.jar ln -s /usr/share/java/junit.jar cnf/repo/junit.osgi/junit.osgi-3.8.2.jar ln -s /usr/share/java/osgi.core.jar cnf/repo/org.eclipse.osgi/org.eclipse.osgi-3.5.0.jar ln -s /usr/share/java/osgi.core.jar cnf/repo/osgi.core/osgi.core-4.2.1.jar ln -s /usr/share/java/osgi.compendium.jar cnf/repo/osgi.cmpn/osgi.cmpn-4.3.0.jar # ln -s /usr/share/java/ee.foundation.jar cnf/repo/ee.minimum/ee.minimum-1.2.1.jar ln -s /usr/share/java/ant.jar cnf/repo/org.apache.tools.ant/org.apache.tools.ant-1.7.1.jar ln -s /usr/lib/eclipse/plugins/org.eclipse.core.runtime_*.jar cnf/repo/org.eclipse.core.runtime/org.eclipse.core.runtime-3.3.100.jar ln -s /usr/lib/eclipse/plugins/org.eclipse.core.resources_*.jar cnf/repo/org.eclipse.core.resources/org.eclipse.core.resources-3.3.1.jar ln -s /usr/lib/eclipse/plugins/org.eclipse.core.commands_*.jar cnf/repo/org.eclipse.core.commands/org.eclipse.core.commands-3.3.3.jar ln -s /usr/lib/eclipse/plugins/org.eclipse.jdt.core_*.jar cnf/repo/org.eclipse.jdt.core/org.eclipse.jdt.core-3.3.3.jar ln -s /usr/share/eclipse/dropins/jdt/plugins/org.eclipse.jdt.ui_*.jar cnf/repo/org.eclipse.jdt.ui/org.eclipse.jdt.ui-3.3.3.jar ln -s /usr/share/eclipse/dropins/jdt/plugins/org.eclipse.jdt.debug.ui_*.jar cnf/repo/org.eclipse.jdt.debug.ui/org.eclipse.jdt.debug.ui-3.2.102.jar ln -s /usr/share/eclipse/dropins/jdt/plugins/org.eclipse.jdt.junit_*.jar cnf/repo/org.eclipse.jdt.junit/org.eclipse.jdt.junit-3.3.3.jar ln -s /usr/share/eclipse/dropins/jdt/plugins/org.eclipse.jdt.launching_*.jar cnf/repo/org.eclipse.jdt.launching/org.eclipse.jdt.launching-3.3.3.jar ln -s /usr/lib/eclipse/plugins/org.eclipse.jface_*.jar cnf/repo/org.eclipse.jface/org.eclipse.jface-3.3.2.jar ln -s /usr/lib/eclipse/plugins/org.eclipse.jface.text_*.jar cnf/repo/org.eclipse.jface.text/org.eclipse.jface.text-3.3.2.jar ln -s /usr/lib/java/swt-gtk-*.jar cnf/repo/org.eclipse.swt/org.eclipse.swt-3.3.2.jar ln -s /usr/lib/eclipse/plugins/org.eclipse.debug.ui_*.jar cnf/repo/org.eclipse.debug.ui/org.eclipse.debug.ui-3.3.2.jar ln -s /usr/lib/eclipse/plugins/org.eclipse.debug.core_*.jar cnf/repo/org.eclipse.debug.core/org.eclipse.debug.core-3.3.2.jar ln -s /usr/lib/eclipse/plugins/org.eclipse.equinox.common_*.jar cnf/repo/org.eclipse.equinox.common/org.eclipse.equinox.common-3.3.0.jar ln -s /usr/lib/eclipse/plugins/org.eclipse.equinox.registry_*.jar cnf/repo/org.eclipse.equinox.registry/org.eclipse.equinox.registry-3.3.0.jar ln -s /usr/lib/eclipse/plugins/org.eclipse.ui_*.jar cnf/repo/org.eclipse.ui/org.eclipse.ui-3.3.2.jar ln -s /usr/lib/eclipse/plugins/org.eclipse.ui.editors_*.jar cnf/repo/org.eclipse.ui.editors/org.eclipse.ui.editors-3.3.2.jar ln -s /usr/lib/eclipse/plugins/org.eclipse.ui.workbench_*.jar cnf/repo/org.eclipse.ui.workbench/org.eclipse.ui.workbench-3.3.2.jar ln -s /usr/lib/eclipse/plugins/org.eclipse.ui.workbench.texteditor_*.jar cnf/repo/org.eclipse.ui.workbench.texteditor/org.eclipse.ui.workbench.texteditor-3.3.2.jar ln -s /usr/lib/eclipse/plugins/org.eclipse.ui.ide_*.jar cnf/repo/org.eclipse.ui.ide/org.eclipse.ui.ide-3.3.2.jar ln -s /usr/lib/eclipse/plugins/org.eclipse.core.jobs_*.jar cnf/repo/org.eclipse.core.jobs/org.eclipse.core.jobs-3.3.1.jar ln -s /usr/lib/eclipse/plugins/org.eclipse.text_*.jar cnf/repo/org.eclipse.text/org.eclipse.text-3.5.100.jar ln -s /usr/share/java/bindex.jar cnf/repo/org.osgi.impl.bundle.bindex/org.osgi.impl.bundle.bindex-2.2.0.jar touch $@ clean-bootstrap: DEB_BUILDDIR=$(CURDIR) clean-bootstrap: DEB_ANT_BUILDFILE=$(CURDIR)/debian/bootstrap.xml clean-bootstrap: $(DEB_ANT_INVOKE) clean rm -rf cnf/repo/biz.aQute.bnd/ rm -f debian/stamp-bootstrap ### Standard build install/$(PACKAGE):: pod2man -c 'BND for Debian GNU/Linux' \ -r $(PACKAGE)-$(VERSION) \ debian/bnd.pod > debian/bnd.1 binary-post-install/$(PACKAGE):: mkdir install/ cp biz.aQute.launcher/tmp/biz.aQute.launcher.jar install/bnd.launcher.jar cp biz.aQute.junit/tmp/biz.aQute.junit.jar install/bnd.junit.jar mh_installpoms -p$(PACKAGE) -e$(VERSION) mh_installjar -p$(PACKAGE) -e$(VERSION) -l debian/pom-bndlib.xml --usj-name=bndlib biz.aQute.bndlib/tmp/biz.aQute.bndlib.jar mh_installjar -p$(PACKAGE) -e$(VERSION) -l debian/pom-bnd.xml --usj-name=bnd biz.aQute.bnd/tmp/biz.aQute.bnd.jar mh_installjar -p$(PACKAGE) -e$(VERSION) -l debian/pom-annotation.xml --usj-name=bnd.annotation biz.aQute.bnd/tmp/biz.aQute.bnd.annotation.jar jh_installlibs -p$(PACKAGE) install/bnd.launcher.jar jh_installlibs -p$(PACKAGE) install/bnd.junit.jar dh_install -p$(PACKAGE) debian/bnd.sh /usr/bin/ mv $(DEB_DESTDIR)/usr/bin/bnd.sh $(DEB_DESTDIR)/usr/bin/bnd clean:: -rm -f debian/stamp-bootstrap -find -type l -name '*.jar' | xargs rm jh_clean mh_clean -rm -rf install/ -rm -f debian/bnd.1 -rm -Rf bootstrap get-orig-source: debian/orig-tar.sh "" $(VERSION) get-orig-pom: wget --user-agent="" -O debian/pom-bnd.xml $(MAVEN_REPO)/bnd/$(MAVEN_VERSION)/bnd-$(MAVEN_VERSION).pom wget --user-agent="" -O debian/pom-bndlib.xml $(MAVEN_REPO)/bndlib/$(MAVEN_VERSION)/bndlib-$(MAVEN_VERSION).pom wget --user-agent="" -O debian/pom-annotation.xml $(MAVEN_REPO)/annotation/$(MAVEN_VERSION)/annotation-$(MAVEN_VERSION).pom .PHONY: bootstrap clean-bootstrap debian/changelog0000644000000000000000000001211612230135710011033 0ustar bnd (1.50.0-7) unstable; urgency=low * Install the Maven artifacts biz.aQute:annotation and biz.aQute:bnd -- Emmanuel Bourg Thu, 17 Oct 2013 22:15:13 +0200 bnd (1.50.0-6) unstable; urgency=low [ Emmanuel Bourg ] * Added a patch to compile with Ant 1.9 (Closes: #712343) * Fixed the unmappable character errors during the compilation * debian/watch: Updated to catch the recent releases on Github * debian/control: - Updated Standards-Version to 3.9.4 (no changes) - Use canonical URLs for the Vcs-* fields * debian/rules: Improved the clean target * Updated the Maven pom [ Damien Raude-Morvan ] * d/rules: Don't fail clean target if there is no things to delete. * Upload to unstable. -- Emmanuel Bourg Fri, 26 Jul 2013 11:28:27 +0200 bnd (1.50.0-5) unstable; urgency=low * d/rules: Fix FTBFS after update to eclipse 3.8.0~rc4-1 (Closes: #682647). * d/copyright: Update to copyright format 1.0. -- Damien Raude-Morvan Wed, 25 Jul 2012 00:34:41 +0200 bnd (1.50.0-4) unstable; urgency=low * Fix FTBFS after update to eclipse 3.7.2-1 (Closes: #669533). * Add Jakub Adam to Uploaders. * Bump Standards-Version to 3.9.3: no changes needed. -- Jakub Adam Mon, 30 Apr 2012 22:44:59 +0200 bnd (1.50.0-3) unstable; urgency=low * d/rules: Fix broken link with Eclipse JDT during build. (Closes: #655548). * d/patches/display_bsn_on_missing_bundle.diff: Improve error message when some bundle is missing. -- Damien Raude-Morvan Tue, 17 Jan 2012 23:16:19 +0100 bnd (1.50.0-2) unstable; urgency=low [ Miguel Landaeta ] * Team upload. [ James Page ] * Fix FTBFS with OpenJDK 7 (LP: #888926) (Closes: #651389): - d/ant.properties: Set default source/target to 1.5 to ensure backwards compatibility and avoid Java 7 encoding errors. -- Miguel Landaeta Thu, 08 Dec 2011 21:41:18 -0430 bnd (1.50.0-1) unstable; urgency=low * New upstream release. * d/control: Add Build-Depends on libbindex-java. * d/{bootstrap,rules}: Add bindex.jar to classpath. * d/patches/no_git_during_build.diff: Don't try to use GIT during build. * d/patches/osgi43_fixes.diff: Some fixes for libosgi-core-java >= 4.3. * d/patches/no_felix.diff: Drop dependency on felix-framework (to remove dependency cycle). -- Damien Raude-Morvan Wed, 09 Nov 2011 22:39:08 +0100 bnd (1.44.0-1) unstable; urgency=low * New upstream version. * Bump Standards-Version to 3.9.2: no changes needed. * d/copyright: Upgrade to latest DEP-5 version. * Use upstream build system: - d/orig-tar.sh: Rework to use github (Closes: #640839). - d/build.xml, d/build.properties: Drop. - d/bootstrap.xml: Build a small bnd.jar just for its own bootstrap. - Rename d/svn-transform.sh to d/git-transform.sh and remove unneeded bits. * Enable full OSGi and Eclipse modules (Closes: #565749) : - d/control: Add Build-Depends on libswt-gtk-3-java, eclipse-rcp, eclipse-jdt and libosgi-core-java - d/control: Only Suggests: eclipse-rcp, eclipse-jdt -- Damien Raude-Morvan Wed, 26 Oct 2011 00:59:39 +0200 bnd (0.0.384-2) unstable; urgency=low * Team upload. * Switch to source format 3.0. * Update Standards-Version: 3.9.1. -- Torsten Werner Tue, 30 Aug 2011 19:28:43 +0200 bnd (0.0.384-1) unstable; urgency=low * New upstream release * Exclude the Filter class from the distribution as it has some copyright issues and it is not used anymore in this new version of BND * Update copyright according to upstream changes, all contentious issues have been cleared. * Bump up Standards-Version to 3.8.3, no change -- Ludovic Claude Wed, 02 Sep 2009 12:14:20 +0100 bnd (0.0.337.2-3) unstable; urgency=low * Force name of bnd library installed in /usr/share/java to be bnd.jar instead of bndlib.jar -- Ludovic Claude Fri, 14 Aug 2009 14:38:12 +0100 bnd (0.0.337.2-2) unstable; urgency=low [Ludovic Claude] * Add man page for bnd script [Damien Raude-Morvan] * Add myself as Uploaders * Install a "bnd" shell script to execute BND command line interface - Add debian/bnd.sh script - Add Depends on java-wrapper, used as helper for launch script * Add debian/watch * Remove duplicate Section declaration on first binary package -- Ludovic Claude Fri, 07 Aug 2009 14:12:23 +0100 bnd (0.0.337.2-1) experimental; urgency=low * Create a pseudo new upstream version to reflect the changes in the source tarball. -- Ludovic Claude Tue, 04 Aug 2009 20:30:17 +0100 bnd (0.0.337.1-2) experimental; urgency=low * Fix copyright issues * Don't include the test jars in the source tarball -- Ludovic Claude Sun, 02 Aug 2009 22:48:47 +0100 bnd (0.0.337.1-1) experimental; urgency=low * Initial release. (Closes: #539558) -- Ludovic Claude Sun, 19 Jul 2009 19:48:06 +0100 debian/bootstrap.xml0000644000000000000000000000241012230135717011723 0ustar debian/pom-bndlib.xml0000644000000000000000000000260212230135717011734 0ustar 4.0.0 biz.aQute bndlib 1.50.0 A Swiss Army Knife for OSGi bnd - Bundle Tool http://www.aQute.biz/Code/Bnd git://github.com/bndtools/bnd.git git://github.com/bndtools/bnd.git git://github.com/bndtools/bnd.git aQute SARL http://www.aQute.biz Peter.Kriens@aQute.biz Peter.Kriens Peter.Kriens@aQute.biz aQute Apache Software License 2.0 http://www.opensource.org/licenses/apache2.0.php repo debian/patches/0000755000000000000000000000000012230140716010611 5ustar debian/patches/ant-1.9-compatibility.diff0000644000000000000000000000250212230135717015405 0ustar Description: Ensures the source compatibility with Ant 1.9. This patch can be removed when upgrading to bnd 2.x. Author: Emmanuel Bourg Forwarded: not-needed --- a/biz.aQute.bnd/src/aQute/bnd/main/bnd.java +++ b/biz.aQute.bnd/src/aQute/bnd/main/bnd.java @@ -1373,7 +1373,7 @@ } public boolean doWrap(File properties, File bundle, File output, File classpath[], int options, - Map additional) throws Exception { + Map additional) throws Exception { if (!bundle.exists()) { error("No such file: " + bundle.getAbsolutePath()); return false; --- a/biz.aQute.bndlib/src/aQute/lib/osgi/Analyzer.java +++ b/biz.aQute.bndlib/src/aQute/lib/osgi/Analyzer.java @@ -1527,9 +1527,9 @@ return sb.toString(); } - public void putAll(Map additional, boolean force) { - for (Iterator> i = additional.entrySet().iterator(); i.hasNext();) { - Map.Entry entry = i.next(); + public void putAll(Map additional, boolean force) { + for (Iterator> i = additional.entrySet().iterator(); i.hasNext();) { + Map.Entry entry = i.next(); if (force || getProperties().get(entry.getKey()) == null) setProperty((String) entry.getKey(), (String) entry.getValue()); } debian/patches/fix-encoding.diff0000644000000000000000000000226212230135717014024 0ustar Description: Set the encoding of the source file to avoid compilation warnings/errors Author: Emmanuel Bourg --- a/cnf/build.xml +++ b/cnf/build.xml @@ -49,7 +49,7 @@ --> - + - +