[SCM] eclipse - Powerful IDE written in java - Debian package. branch, master, updated. bd81d9531b649245d66dc013afc9b066b088648f
Benjamin Drung
bdrung-guest at alioth.debian.org
Fri Feb 26 19:41:02 UTC 2010
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "eclipse - Powerful IDE written in java - Debian package.".
The branch, master has been updated
via bd81d9531b649245d66dc013afc9b066b088648f (commit)
via 1c187d3631978f544e60bd42f0b3bc065738ef1e (commit)
via 5f855421b7aa582abbc6ca61914d2574b0d3af15 (commit)
via 44bc3267d36d994a38fa3c2b80f2d0c5e1181406 (commit)
via 4ff391c64d84c9afefbfaeb9df03265ac48e5dde (commit)
from 40b28f3f544363b58b492f52bc9893cf876ac45f (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit bd81d9531b649245d66dc013afc9b066b088648f
Author: Benjamin Drung <bdrung at ubuntu.com>
Date: Fri Feb 26 20:40:28 2010 +0100
Remove unrequired scripts for source repack and source jar files.
commit 1c187d3631978f544e60bd42f0b3bc065738ef1e
Merge: 4ff391c64d84c9afefbfaeb9df03265ac48e5dde 5f855421b7aa582abbc6ca61914d2574b0d3af15
Author: Benjamin Drung <bdrung at ubuntu.com>
Date: Fri Feb 26 20:39:25 2010 +0100
Merge branch 'upstream'
commit 4ff391c64d84c9afefbfaeb9df03265ac48e5dde
Author: Benjamin Drung <bdrung at ubuntu.com>
Date: Fri Feb 26 18:37:42 2010 +0100
Remove not installed system jar source files.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 10 +++
build.xml | 40 ++++++++++++-
buildSDKSource.sh | 5 +-
debian/eclipse-jdt.install | 2 -
debian/eclipse-pde.install | 1 -
debian/eclipse-platform.install | 12 ----
debian/eclipse-rcp.install | 1 -
debian/extra/create-source-tarballs | 21 -------
debian/extra/repack-eclipse | 21 -------
debian/extra/unjar-jar | 62 --------------------
.../com.ibm.icu.base.source_4.0.1.v20090822.jar | Bin 490 -> 0 bytes
.../plugins/com.ibm.icu.source_4.0.1.v20090822.jar | Bin 483 -> 0 bytes
...com.jcraft.jsch.source_0.1.41.v200903070017.jar | Bin 486 -> 0 bytes
...avax.servlet.jsp.source_2.0.0.v200806031607.jar | Bin 485 -> 0 bytes
.../javax.servlet.source_2.5.0.v200806031605.jar | Bin 481 -> 0 bytes
.../org.apache.ant.source_1.7.1.v20090120-1145.jar | Bin 635 -> 0 bytes
...e.commons.codec.source_1.3.0.v20080530-1600.jar | Bin 493 -> 0 bytes
...pache.commons.el.source_1.0.0.v200806031608.jar | Bin 490 -> 0 bytes
...mons.httpclient.source_3.1.0.v20080605-1935.jar | Bin 497 -> 0 bytes
....commons.logging.source_1.0.4.v200904062259.jar | Bin 494 -> 0 bytes
...g.apache.jasper.source_5.5.17.v200903231320.jar | Bin 486 -> 0 bytes
...lucene.analysis.source_1.9.1.v20080530-1600.jar | Bin 495 -> 0 bytes
....hamcrest.core.source_1.1.0.v20090501071000.jar | Bin 502 -> 0 bytes
.../org.junit.source_3.8.2.v20090203-1005.jar | Bin 492 -> 0 bytes
...ay.jetty.server.source_6.1.15.v200905151201.jar | Bin 492 -> 0 bytes
...tbay.jetty.util.source_6.1.15.v200905182336.jar | Bin 493 -> 0 bytes
...rg.objectweb.asm.source_3.1.0.v200803061910.jar | Bin 486 -> 0 bytes
.../linuxtools/eclipsebuild/SymlinkOSGiJars.java | 33 +++++++++--
28 files changed, 78 insertions(+), 130 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 53a461e..cb57379 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,15 @@
2010-02-26 Andrew Overholt <overholt at redhat.com>
+ * task-src/org/eclipse/linuxtools/eclipsebuild/SymlinkOSGiJars.java
+ (execute): Don't assume location of dependency manifests. Create symlink
+ filenames based on Bundle-SymbolicName_Bundle-Version when keepOrigNames
+ is false (used at installation time).
+ * build.xml: Remove old system JAR files before re-symlinking in
+ installation.
+ * buildSDKSource.sh: Remove more binaries (Benjamin Drung, bug #303447).
+
+2010-02-26 Andrew Overholt <overholt at redhat.com>
+
Bug #280688
* dependencies.properties: Update Debian/Ubuntu locations (Benjamin Drung).
diff --git a/build.xml b/build.xml
index 643d8db..462c885 100644
--- a/build.xml
+++ b/build.xml
@@ -291,7 +291,8 @@
<target name="symlinkDeps" depends="applyPatches,defineTasks" unless="symlinks.complete">
<symlinkOSGiJars dependencies="${basedir}/dependencies.properties"
- topLevelDir="${buildDirectory}/plugins"/>
+ topLevelDir="${buildDirectory}/plugins"
+ manifests="${basedir}/dependencyManifests"/>
<symlinkNonOSGiJars dependencies="${basedir}/nonosgidependencies.properties"
topLevelDir="${buildDirectory}/plugins"/>
<!-- If we leave these and symlink the JARs only, we get "you tampered
@@ -608,11 +609,44 @@
</fileset>
</copy>
+ <!-- Delete system JARs that have been copied over as their symlink target names -->
+ <delete>
+ <fileset dir="${buildDirectory}/installation/plugins" includes="com.ibm.icu*" />
+ <fileset dir="${buildDirectory}/installation/plugins" includes="com.jcraft.jsch*" />
+ <fileset dir="${buildDirectory}/installation/plugins" includes="javax.servlet*" />
+ <fileset dir="${buildDirectory}/installation/plugins" includes="javax.servlet.jsp*" />
+ <fileset dir="${buildDirectory}/installation/plugins" includes="org.apache.commons.codec*" />
+ <fileset dir="${buildDirectory}/installation/plugins" includes="org.apache.commons.el*" />
+ <fileset dir="${buildDirectory}/installation/plugins" includes="org.apache.commons.httpclient*" />
+ <fileset dir="${buildDirectory}/installation/plugins" includes="org.apache.commons.logging*" />
+ <fileset dir="${buildDirectory}/installation/plugins" includes="org.apache.jasper*" />
+ <fileset dir="${buildDirectory}/installation/plugins" includes="org.apache.lucene*" />
+ <fileset dir="${buildDirectory}/installation/plugins" includes="org.apache.lucene.analysis*" />
+ <fileset dir="${buildDirectory}/installation/plugins" includes="org.hamcrest.core*" />
+ <fileset dir="${buildDirectory}/installation/plugins" includes="org.mortbay.jetty.server*" />
+ <fileset dir="${buildDirectory}/installation/plugins" includes="org.mortbay.jetty.util*" />
+ <fileset dir="${buildDirectory}/installation/plugins" includes="org.objectweb.asm*" />
+ <fileset dir="${buildDirectory}/installation/plugins" includes="org.sat4j.core*" />
+ <fileset dir="${buildDirectory}/installation/plugins" includes="org.sat4j.pb*" />
+ </delete>
+
<symlinkOSGiJars dependencies="${basedir}/dependencies.properties"
- topLevelDir="${buildDirectory}/installation/plugins"/>
+ topLevelDir="${buildDirectory}/installation/plugins"
+ manifests="${basedir}/dependencyManifests"
+ keepOrigNames="false"/>
<symlinkNonOSGiJars dependencies="${basedir}/nonosgidependencies.properties"
topLevelDir="${buildDirectory}/installation/plugins"/>
-
+
+ <!-- FIXME the junit4 bundle has no qualifier at build time but does
+ at install time. Watch out for other distros with different
+ locations of junit4's system JAR.
+ -->
+ <delete dir="${buildDirectory}/installation/plugins/org.junit4" />
+ <delete file="${buildDirectory}/installation/plugins/org.junit4_4.5.0.v20090824/junit.jar" />
+
+ <symlink link="${buildDirectory}/installation/plugins/org.junit4_4.5.0.v20090824/junit.jar"
+ resource="/usr/share/java/junit4.jar" />
+
<echo file="provision.sdk-stamp" />
</target>
diff --git a/buildSDKSource.sh b/buildSDKSource.sh
index 8fa0445..2367c2d 100755
--- a/buildSDKSource.sh
+++ b/buildSDKSource.sh
@@ -6,8 +6,8 @@ set -e
baseDir=$(pwd)
workDirectory=
-buildID="vM20100210-0800"
-mapsTag="M20100210-0800"
+buildID="vM20100211-1343"
+mapsTag="M20100211-1343"
equinoxTag=R3_5_1
baseBuilder=
eclipseBuilder=
@@ -197,6 +197,7 @@ find -depth -name CVS -exec rm -rf {} \;
# Remove prebuilt binaries
find \( -name '*.exe' -o -name '*.dll' \) -delete
+find \( -name '*.jnilib' -o -name '*.sl' \) -delete
find \( -name '*.a' -o -name '*.so' -o -name '*.so.2' \) -delete
find features/org.eclipse.equinox.executable -name eclipse -delete
diff --git a/debian/eclipse-jdt.install b/debian/eclipse-jdt.install
index 5990d8f..1de7eeb 100644
--- a/debian/eclipse-jdt.install
+++ b/debian/eclipse-jdt.install
@@ -32,9 +32,7 @@ usr/lib/eclipse/plugins/org.eclipse.jdt.source_*.jar
usr/lib/eclipse/plugins/org.eclipse.jdt.ui.source_*.jar
usr/lib/eclipse/plugins/org.eclipse.jdt.ui_*.jar
usr/lib/eclipse/plugins/org.eclipse.jdt_*.jar
-usr/lib/eclipse/plugins/org.hamcrest.core.source_*.jar
usr/lib/eclipse/plugins/org.hamcrest.core_*.jar
-usr/lib/eclipse/plugins/org.junit.source_*.jar
usr/lib/eclipse/plugins/org.junit4.source_*.jar
usr/lib/eclipse/plugins/org.junit4/junit.jar
usr/lib/eclipse/plugins/org.junit4_*
diff --git a/debian/eclipse-pde.install b/debian/eclipse-pde.install
index cf0fb22..a9e16e1 100644
--- a/debian/eclipse-pde.install
+++ b/debian/eclipse-pde.install
@@ -30,5 +30,4 @@ usr/lib/eclipse/plugins/org.eclipse.pde.ui_*.jar
usr/lib/eclipse/plugins/org.eclipse.pde_*.jar
usr/lib/eclipse/plugins/org.eclipse.ui.views.log.source_*.jar
usr/lib/eclipse/plugins/org.eclipse.ui.views.log_*.jar
-usr/lib/eclipse/plugins/org.objectweb.asm.source_*.jar
usr/lib/eclipse/plugins/org.objectweb.asm_*.jar
diff --git a/debian/eclipse-platform.install b/debian/eclipse-platform.install
index 39ddf09..1372fb6 100644
--- a/debian/eclipse-platform.install
+++ b/debian/eclipse-platform.install
@@ -17,25 +17,15 @@ usr/lib/eclipse/features/org.eclipse.platform_*
usr/lib/eclipse/features/org.eclipse.sdk_*
usr/lib/eclipse/metadata/*.xml
usr/lib/eclipse/p2/
-usr/lib/eclipse/plugins/com.jcraft.jsch.source_*.jar
usr/lib/eclipse/plugins/com.jcraft.jsch_*.jar
-usr/lib/eclipse/plugins/javax.servlet.jsp.source_*.jar
usr/lib/eclipse/plugins/javax.servlet.jsp_*.jar
-usr/lib/eclipse/plugins/javax.servlet.source_*.jar
usr/lib/eclipse/plugins/javax.servlet_*.jar
-usr/lib/eclipse/plugins/org.apache.ant.source_*.jar
usr/lib/eclipse/plugins/org.apache.ant_*
-usr/lib/eclipse/plugins/org.apache.commons.codec.source_*.jar
usr/lib/eclipse/plugins/org.apache.commons.codec_*.jar
-usr/lib/eclipse/plugins/org.apache.commons.el.source_*.jar
usr/lib/eclipse/plugins/org.apache.commons.el_*.jar
-usr/lib/eclipse/plugins/org.apache.commons.httpclient.source_*.jar
usr/lib/eclipse/plugins/org.apache.commons.httpclient_*.jar
-usr/lib/eclipse/plugins/org.apache.commons.logging.source_*.jar
usr/lib/eclipse/plugins/org.apache.commons.logging_*.jar
-usr/lib/eclipse/plugins/org.apache.jasper.source_*.jar
usr/lib/eclipse/plugins/org.apache.jasper_*.jar
-usr/lib/eclipse/plugins/org.apache.lucene.analysis.source_*.jar
usr/lib/eclipse/plugins/org.apache.lucene.analysis_*.jar
usr/lib/eclipse/plugins/org.apache.lucene_*.jar
usr/lib/eclipse/plugins/org.eclipse.ant.core.source_*.jar
@@ -230,9 +220,7 @@ usr/lib/eclipse/plugins/org.eclipse.update.scheduler.source_*.jar
usr/lib/eclipse/plugins/org.eclipse.update.scheduler_*.jar
usr/lib/eclipse/plugins/org.eclipse.update.ui.source_*.jar
usr/lib/eclipse/plugins/org.eclipse.update.ui_*.jar
-usr/lib/eclipse/plugins/org.mortbay.jetty.server.source_*.jar
usr/lib/eclipse/plugins/org.mortbay.jetty.server_*.jar
-usr/lib/eclipse/plugins/org.mortbay.jetty.util.source_*.jar
usr/lib/eclipse/plugins/org.mortbay.jetty.util_*.jar
usr/lib/eclipse/plugins/org.sat4j.core_*.jar
usr/lib/eclipse/plugins/org.sat4j.pb_*.jar
diff --git a/debian/eclipse-rcp.install b/debian/eclipse-rcp.install
index 91c4245..d170f74 100644
--- a/debian/eclipse-rcp.install
+++ b/debian/eclipse-rcp.install
@@ -1,7 +1,6 @@
usr/*/eclipse/features/org.eclipse.rcp.source_*
usr/*/eclipse/features/org.eclipse.rcp_*
usr/lib/eclipse/configuration/org.eclipse.osgi/
-usr/lib/eclipse/plugins/com.ibm.icu.source_*.jar
usr/lib/eclipse/plugins/com.ibm.icu_*.jar
usr/lib/eclipse/plugins/org.eclipse.core.commands.source_*.jar
usr/lib/eclipse/plugins/org.eclipse.core.commands_*.jar
diff --git a/debian/extra/create-source-tarballs b/debian/extra/create-source-tarballs
deleted file mode 100755
index ccd9382..0000000
--- a/debian/extra/create-source-tarballs
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/sh
-set -e
-
-CURRENT_BRANCH=$(git branch -a | grep "^*" | sed "s/\* //")
-
-if test "$CURRENT_BRANCH" != master; then
- git checkout master
-fi
-VERSION=$(dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ' | sed 's/-[^-]*$//')
-
-git checkout upstream
-
-if test ! -f ../eclipse_${VERSION}.orig.tar.gz; then
- tar -c . --exclude-vcs --exclude ./eclipse --transform="s@^. at eclipse-build@" | gzip -cn9 > ../eclipse_${VERSION}.orig.tar.gz
-fi
-
-if test ! -f ../eclipse_${VERSION}.orig-eclipse.tar.bz2; then
- tar -ca -f ../eclipse_${VERSION}.orig-eclipse.tar.bz2 eclipse --transform="s/^eclipse/eclipse-${VERSION}/"
-fi
-
-git checkout $CURRENT_BRANCH
diff --git a/debian/extra/repack-eclipse b/debian/extra/repack-eclipse
deleted file mode 100755
index c7299d6..0000000
--- a/debian/extra/repack-eclipse
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/sh
-set -e
-
-if test ! -d plugins; then
- echo "E: You have to run this script in the eclipse source directory!" > /dev/stderr
- exit 1
-fi
-
-# Store a list of removed files
-find plugins -name '*.jar' | grep -v '.source_' >> removed-jars || true
-
-# Remove .jar files
-for jar_file in $(cat removed-jars); do
- if test -f "$jar_file"; then
- echo "I: Removed $jar_file"
- fi
- rm -f $jar_file
-done
-
-# Replace source .jar files
-$(dirname $0)/unjar-jar plugins/*.source_*.jar
diff --git a/debian/extra/unjar-jar b/debian/extra/unjar-jar
deleted file mode 100755
index e89ee26..0000000
--- a/debian/extra/unjar-jar
+++ /dev/null
@@ -1,62 +0,0 @@
-#!/usr/bin/perl
-
-use strict;
-use warnings;
-use Debian::Debhelper::Dh_Lib;
-
-my $tmp = undef;
-my $wdir = undef;
-$SIG{'INT'} = \&cleanup;
-$SIG{'TERM'} = \&cleanup;
-
-## we do not need the argument parsing...
-#init();
-inhibit_log();
-
-chomp($tmp = `mktemp -d`);
-chomp($wdir = `pwd`);
-
-map { map { repack($_); } glob($_); } @ARGV;
-
-cleanup();
-
-exit 0;
-
-sub repack {
- my $file = shift;
- my $mtime;
- choke("$file does not exist") if( ! -e $file);
- complex_doit("cd \"$tmp\" && jar xf \"$wdir/$file\"");
- unlink($file) or choke("Unlinking $file: $!");
- $mtime = (stat("$tmp/META-INF/MANIFEST.MF"))[9];
- open(MANIFEST_ORIG, "<", "$tmp/META-INF/MANIFEST.MF") or choke("Opening $tmp/META-INF/MANIFEST.MF");
- open(MANIFEST, ">", "$tmp/manifest") or choke("Opening $tmp/manifest: $!");
- while( my $line = <MANIFEST_ORIG> ) {
- chomp($line);
- last if($line =~ m/^\s*$/o);
- print MANIFEST "$line\n";
- }
- close(MANIFEST) or choke("Writing $tmp/manifest: $!");
- close(MANIFEST_ORIG);
- # Set both atime and mtime to mtime of original manifest.
- utime($mtime, $mtime, "$tmp/manifest") or print STDERR "W: Could not set modification time of $tmp/manifest: $!";
- complex_doit("cd \"$tmp\" && jar cmf \"$tmp/manifest\" \"$wdir/$file\" && rm -fr \"$tmp/\"*");
- info("Replaced $file");
- return 1;
-}
-sub choke{
- my $msg = shift;
- cleanup();
- error($msg);
- exit 1;
-}
-sub info{
- my $msg = shift;
- print "I: $msg\n";
-}
-sub cleanup{
- if(defined($tmp) && -d $tmp){
- info("Removing $tmp");
- system("rm -fr \"$tmp\"");
- }
-}
diff --git a/eclipse/plugins/com.ibm.icu.base.source_4.0.1.v20090822.jar b/eclipse/plugins/com.ibm.icu.base.source_4.0.1.v20090822.jar
deleted file mode 100644
index 2805d4e..0000000
Binary files a/eclipse/plugins/com.ibm.icu.base.source_4.0.1.v20090822.jar and /dev/null differ
diff --git a/eclipse/plugins/com.ibm.icu.source_4.0.1.v20090822.jar b/eclipse/plugins/com.ibm.icu.source_4.0.1.v20090822.jar
deleted file mode 100644
index 469e939..0000000
Binary files a/eclipse/plugins/com.ibm.icu.source_4.0.1.v20090822.jar and /dev/null differ
diff --git a/eclipse/plugins/com.jcraft.jsch.source_0.1.41.v200903070017.jar b/eclipse/plugins/com.jcraft.jsch.source_0.1.41.v200903070017.jar
deleted file mode 100644
index 31d9127..0000000
Binary files a/eclipse/plugins/com.jcraft.jsch.source_0.1.41.v200903070017.jar and /dev/null differ
diff --git a/eclipse/plugins/javax.servlet.jsp.source_2.0.0.v200806031607.jar b/eclipse/plugins/javax.servlet.jsp.source_2.0.0.v200806031607.jar
deleted file mode 100644
index 3d1033d..0000000
Binary files a/eclipse/plugins/javax.servlet.jsp.source_2.0.0.v200806031607.jar and /dev/null differ
diff --git a/eclipse/plugins/javax.servlet.source_2.5.0.v200806031605.jar b/eclipse/plugins/javax.servlet.source_2.5.0.v200806031605.jar
deleted file mode 100644
index 597d8f2..0000000
Binary files a/eclipse/plugins/javax.servlet.source_2.5.0.v200806031605.jar and /dev/null differ
diff --git a/eclipse/plugins/org.apache.ant.source_1.7.1.v20090120-1145.jar b/eclipse/plugins/org.apache.ant.source_1.7.1.v20090120-1145.jar
deleted file mode 100644
index 95ab00a..0000000
Binary files a/eclipse/plugins/org.apache.ant.source_1.7.1.v20090120-1145.jar and /dev/null differ
diff --git a/eclipse/plugins/org.apache.commons.codec.source_1.3.0.v20080530-1600.jar b/eclipse/plugins/org.apache.commons.codec.source_1.3.0.v20080530-1600.jar
deleted file mode 100644
index 18e736a..0000000
Binary files a/eclipse/plugins/org.apache.commons.codec.source_1.3.0.v20080530-1600.jar and /dev/null differ
diff --git a/eclipse/plugins/org.apache.commons.el.source_1.0.0.v200806031608.jar b/eclipse/plugins/org.apache.commons.el.source_1.0.0.v200806031608.jar
deleted file mode 100644
index c308b22..0000000
Binary files a/eclipse/plugins/org.apache.commons.el.source_1.0.0.v200806031608.jar and /dev/null differ
diff --git a/eclipse/plugins/org.apache.commons.httpclient.source_3.1.0.v20080605-1935.jar b/eclipse/plugins/org.apache.commons.httpclient.source_3.1.0.v20080605-1935.jar
deleted file mode 100644
index 8896958..0000000
Binary files a/eclipse/plugins/org.apache.commons.httpclient.source_3.1.0.v20080605-1935.jar and /dev/null differ
diff --git a/eclipse/plugins/org.apache.commons.logging.source_1.0.4.v200904062259.jar b/eclipse/plugins/org.apache.commons.logging.source_1.0.4.v200904062259.jar
deleted file mode 100644
index 5834a1c..0000000
Binary files a/eclipse/plugins/org.apache.commons.logging.source_1.0.4.v200904062259.jar and /dev/null differ
diff --git a/eclipse/plugins/org.apache.jasper.source_5.5.17.v200903231320.jar b/eclipse/plugins/org.apache.jasper.source_5.5.17.v200903231320.jar
deleted file mode 100644
index 1cf3966..0000000
Binary files a/eclipse/plugins/org.apache.jasper.source_5.5.17.v200903231320.jar and /dev/null differ
diff --git a/eclipse/plugins/org.apache.lucene.analysis.source_1.9.1.v20080530-1600.jar b/eclipse/plugins/org.apache.lucene.analysis.source_1.9.1.v20080530-1600.jar
deleted file mode 100644
index 04a7403..0000000
Binary files a/eclipse/plugins/org.apache.lucene.analysis.source_1.9.1.v20080530-1600.jar and /dev/null differ
diff --git a/eclipse/plugins/org.hamcrest.core.source_1.1.0.v20090501071000.jar b/eclipse/plugins/org.hamcrest.core.source_1.1.0.v20090501071000.jar
deleted file mode 100644
index 787526a..0000000
Binary files a/eclipse/plugins/org.hamcrest.core.source_1.1.0.v20090501071000.jar and /dev/null differ
diff --git a/eclipse/plugins/org.junit.source_3.8.2.v20090203-1005.jar b/eclipse/plugins/org.junit.source_3.8.2.v20090203-1005.jar
deleted file mode 100644
index 68e05ac..0000000
Binary files a/eclipse/plugins/org.junit.source_3.8.2.v20090203-1005.jar and /dev/null differ
diff --git a/eclipse/plugins/org.mortbay.jetty.server.source_6.1.15.v200905151201.jar b/eclipse/plugins/org.mortbay.jetty.server.source_6.1.15.v200905151201.jar
deleted file mode 100644
index f5c04c0..0000000
Binary files a/eclipse/plugins/org.mortbay.jetty.server.source_6.1.15.v200905151201.jar and /dev/null differ
diff --git a/eclipse/plugins/org.mortbay.jetty.util.source_6.1.15.v200905182336.jar b/eclipse/plugins/org.mortbay.jetty.util.source_6.1.15.v200905182336.jar
deleted file mode 100644
index 28940fc..0000000
Binary files a/eclipse/plugins/org.mortbay.jetty.util.source_6.1.15.v200905182336.jar and /dev/null differ
diff --git a/eclipse/plugins/org.objectweb.asm.source_3.1.0.v200803061910.jar b/eclipse/plugins/org.objectweb.asm.source_3.1.0.v200803061910.jar
deleted file mode 100644
index ce16d96..0000000
Binary files a/eclipse/plugins/org.objectweb.asm.source_3.1.0.v200803061910.jar and /dev/null differ
diff --git a/task-src/org/eclipse/linuxtools/eclipsebuild/SymlinkOSGiJars.java b/task-src/org/eclipse/linuxtools/eclipsebuild/SymlinkOSGiJars.java
index 4c6fb0b..b96db9e 100644
--- a/task-src/org/eclipse/linuxtools/eclipsebuild/SymlinkOSGiJars.java
+++ b/task-src/org/eclipse/linuxtools/eclipsebuild/SymlinkOSGiJars.java
@@ -29,11 +29,12 @@ import org.apache.tools.ant.taskdefs.optional.unix.Symlink;
public class SymlinkOSGiJars extends Task {
- private String origManifestsDir = "dependencyManifests/";
private String[] importantManifestEntries = { "Bundle-SymbolicName", "Bundle-Version", "Export-Package" };
private Properties dependencies;
private String topLevelDir;
+ private String manifestsDir;
+ private boolean keepOrigNames = true;
// Main method for ant task
public void execute() throws BuildException {
@@ -42,13 +43,15 @@ public class SymlinkOSGiJars extends Task {
// Binary MANIFEST.MF
String origLocation = (String) jarIter.next();
- String origManifestFile = origManifestsDir + origLocation + "/META-INF/MANIFEST.MF";
+ String origManifestFile = manifestsDir + "/" + origLocation + "/META-INF/MANIFEST.MF";
Attributes origAttributes = getAttributesFromManifest(origManifestFile);
// System MANIFEST.MF
String systemLocations = (String) dependencies.get(origLocation);
String[] systemLocationList = systemLocations.split(":");
File matchedJar = null;
+ String matchedJarBundleNameVersion = "";
+ Attributes systemAttributes = null;
for (int i = 0; i < systemLocationList.length; i++) {
boolean isAMatch = true;
File systemFile = new File(systemLocationList[i]);
@@ -59,7 +62,7 @@ public class SymlinkOSGiJars extends Task {
try {
systemJarFile = new JarFile(systemFile);
Manifest systemManifest = systemJarFile.getManifest();
- Attributes systemAttributes = systemManifest.getMainAttributes();
+ systemAttributes = systemManifest.getMainAttributes();
for (int j = 0; j < importantManifestEntries.length; j++) {
String attributeToCheck = importantManifestEntries[j];
String origAttribute = (String) origAttributes.getValue(attributeToCheck);
@@ -119,6 +122,13 @@ public class SymlinkOSGiJars extends Task {
}
if (isAMatch) {
matchedJar = systemFile;
+ String matchedJarBundleName =
+ systemAttributes.getValue("Bundle-SymbolicName");
+ matchedJarBundleName =
+ matchedJarBundleName.replace("; singleton:=true", "");
+ matchedJarBundleNameVersion =
+ matchedJarBundleName
+ + "_" + systemAttributes.getValue("Bundle-Version");
break;
}
}
@@ -137,7 +147,6 @@ public class SymlinkOSGiJars extends Task {
+ attemptedLocations);
}
- log("Going to symlink " + origLocation + " to " + matchedJar.getAbsolutePath(), Project.MSG_DEBUG);
// First, delete any existing symlink
Delete d = new Delete();
@@ -148,7 +157,13 @@ public class SymlinkOSGiJars extends Task {
// Then make the actual symlink
Symlink s = new Symlink();
s.init();
- s.setLink(topLevelDir + "/" + origLocation);
+ if (keepOrigNames) {
+ log("Going to symlink " + origLocation + " to " + matchedJar.getAbsolutePath(), Project.MSG_DEBUG);
+ s.setLink(topLevelDir + "/" + origLocation);
+ } else {
+ log("Going to symlink " + matchedJarBundleNameVersion + ".jar" + " to " + matchedJar.getAbsolutePath(), Project.MSG_DEBUG);
+ s.setLink(topLevelDir + "/" + matchedJarBundleNameVersion + ".jar");
+ }
s.setResource(matchedJar.getAbsolutePath());
s.execute();
}
@@ -187,4 +202,12 @@ public class SymlinkOSGiJars extends Task {
public void setTopleveldir(String topLevelDir) {
this.topLevelDir = topLevelDir;
}
+
+ public void setManifests(String manifests) {
+ this.manifestsDir = manifests;
+ }
+
+ public void setKeeporignames(boolean keeporignames) {
+ this.keepOrigNames = keeporignames;
+ }
}
hooks/post-receive
--
eclipse - Powerful IDE written in java - Debian package.
More information about the pkg-java-commits
mailing list