Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 152685 Details for
Bug 280688
[eclipse-build] Ease usage of system-installed dependencies (JARs)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
system-jars.patch
system-jars.patch (text/plain), 7.32 KB, created by
Benjamin Drung
on 2009-11-20 04:30:29 EST
(
hide
)
Description:
system-jars.patch
Filename:
MIME Type:
Creator:
Benjamin Drung
Created:
2009-11-20 04:30:29 EST
Size:
7.32 KB
patch
obsolete
>--- eclipse-3.5.1+repack.orig/build.xml >+++ eclipse-3.5.1+repack/build.xml >@@ -30,6 +30,7 @@ > <uptodate property="testsunpack.complete" srcfile="${basedir}/eclipse-sdktests-${buildTag}-fetched-src.tar.bz2" targetfile="testsunpack-stamp" /> > <uptodate property="buildId.complete" srcfile="unpack-stamp" targetfile="buildId-stamp" /> > <uptodate property="patch.complete" srcfile="unpack-stamp" targetfile="patch-stamp" /> >+ <uptodate property="symlinkSystemJARs.complete" srcfile="patch-stamp" targetfile="symlink-stamp" /> > <uptodate property="testspatch.complete" srcfile="testsunpack-stamp" targetfile="testspatch-stamp" /> > <uptodate property="compilelibs.complete" srcfile="unpack-stamp" targetfile="compilelibs-stamp" /> > <uptodate property="build.complete" srcfile="patch-stamp" targetfile="build-stamp" /> >@@ -265,13 +266,22 @@ > <echo file="patch-stamp" /> > </target> > >+ <target name="symlinkSystemJARs" depends="applyPatches" unless="symlinkSystemJARs.complete"> >+ <!-- symlink system jars --> >+ <chmod perm="+x" file="symlink-system-jars" /> >+ <exec executable="./symlink-system-jars" failonerror="true"> >+ <arg line="${buildDirectory}" /> >+ </exec> >+ <echo file="symlink-stamp" /> >+ </target> >+ > <target name="applyTestPatches" depends="unpackTests" unless="testspatch.complete"> > <patch patchfile="${basedir}/patches/tests-noapttests.patch" dir="${testsBuildDirectory}/features/org.eclipse.sdk.tests" strip="0" /> > <patch patchfile="${basedir}/patches/tests-nostyletask.patch" dir="${testsBuildDirectory}" strip="0" /> > <echo file="testspatch-stamp" /> > </target> > >- <target name="build" depends="applyPatches,bootstrap,compilelibs" unless="build.complete"> >+ <target name="build" depends="symlinkSystemJARs,bootstrap,compilelibs" unless="build.complete"> > <echo message="build.xml: eclipse.pdebuild.scripts = ${eclipse.pdebuild.scripts}" /> > <java classname="org.eclipse.equinox.launcher.Main" fork="true" dir="${basedir}" failonerror="true"> > <classpath> >@@ -573,6 +583,9 @@ > <filename name="org.eclipse.*.jar" /> > </fileset> > </copy> >+ <exec executable="./symlink-system-jars" failonerror="true"> >+ <arg line="${buildDirectory}/installation" /> >+ </exec> > <echo file="provision.sdk-stamp" /> > </target> > >--- /dev/null >+++ eclipse-3.5.1+repack/symlink-system-jars >@@ -0,0 +1,70 @@ >+#!/bin/sh >+set -e >+ >+# File format for system-jars.csv: >+# The column are separated with semicolons. Here is a description of each column: >+# 1. The to-be-replaced jar file in the eclipse source directory >+# 2. Comma separated list of locations, where the system jar files can be found >+ >+CVS_FILE=$(dirname $0)/system-jars.csv >+if test -n "$2"; then >+ CVS_FILE="$2" >+fi >+CVS_FILE_CONTENT=$(cat $CVS_FILE) >+ >+if test -n "$1"; then >+ cd "$1" >+fi >+ >+# Remove signatures for JARs >+find \( -iname '*.sf' -o -iname '*.rsa' \) -delete >+ >+for line in $CVS_FILE_CONTENT; do >+ if test "$(echo $line | cut -c 1)" != "#"; then >+ COLUMN1=$(echo $line | sed "s/;/\n/g" | sed -n "1p") >+ COLUMN2=$(echo $line | sed "s/;/\n/g" | sed -n "2p") >+ >+ if test -n "$VERBOSE"; then >+ echo "I: line: $line" >+ echo "I: column1: $COLUMN1" >+ echo "I: column2: $COLUMN2" >+ fi >+ >+ # sanity check if the to-be-replaced jar exits >+ if ls $COLUMN1 > /dev/null 2>&1; then >+ ECLIPSE_JAR=$(ls -1 $COLUMN1) >+ if test ! -f "$ECLIPSE_JAR"; then >+ echo "E: $COLUMN1 is ambiguous. Found following jar files:" > /dev/stdout >+ echo "$ECLIPSE_JAR" > /dev/stdout >+ exit 1 >+ fi >+ else >+ echo "E: No matching jar file for $COLUMN1 found." > /dev/stdout >+ exit 2 >+ fi >+ >+ # search for system jars >+ SYSTEM_JAR=$(ls -1 $(echo "$COLUMN2" | sed "s/,/ /g") 2> /dev/null || true) >+ if test -z "$SYSTEM_JAR"; then >+ echo "W: No system jar file found for $ECLIPSE_JAR." >+ else >+ if test ! -f "$SYSTEM_JAR"; then >+ echo "E: $COLUMN2 is ambiguous. Found following system jar files:" > /dev/stdout >+ echo "$SYSTEM_JAR" > /dev/stdout >+ exit 3 >+ fi >+ >+ if test -n "$VERBOSE"; then >+ echo "I: ln -sf $SYSTEM_JAR $ECLIPSE_JAR" >+ fi >+ # link to system jar file >+ ln -sf $SYSTEM_JAR $ECLIPSE_JAR >+ fi >+ fi >+done >+ >+# Make sure there are no jars left >+JARS=$(find * -iname '*.jar' -type f | sort) >+if test ! -z "$JARS"; then >+ echo "W: These jars should be deleted and symlinked to system jars:\n$JARS" >+fi >--- /dev/null >+++ eclipse-3.5.1+repack/system-jars.csv >@@ -0,0 +1,41 @@ >+plugins/org.apache.ant_*/lib/ant-antlr.jar;/usr/share/java/ant-antlr.jar,uieiuo,uiao >+plugins/org.apache.ant_*/lib/ant-apache-bcel.jar;/usr/share/java/ant-apache-bcel.jar >+plugins/org.apache.ant_*/lib/ant-apache-bsf.jar;/usr/share/java/ant-apache-bsf.jar >+plugins/org.apache.ant_*/lib/ant-apache-log4j.jar;/usr/share/java/ant-apache-log4j.jar >+plugins/org.apache.ant_*/lib/ant-apache-oro.jar;/usr/share/java/ant-apache-oro.jar >+plugins/org.apache.ant_*/lib/ant-apache-regexp.jar;/usr/share/java/ant-apache-regexp.jar >+plugins/org.apache.ant_*/lib/ant-apache-resolver.jar;/usr/share/java/ant-apache-resolver.jar >+plugins/org.apache.ant_*/lib/ant-commons-logging.jar;/usr/share/java/ant-commons-logging.jar >+plugins/org.apache.ant_*/lib/ant-commons-net.jar;/usr/share/java/ant-commons-net.jar >+plugins/org.apache.ant_*/lib/ant-jai.jar;/usr/share/java/ant-jai.jar >+plugins/org.apache.ant_*/lib/ant-javamail.jar;/usr/share/java/ant-javamail.jar >+plugins/org.apache.ant_*/lib/ant-jdepend.jar;/usr/share/java/ant-jdepend.jar >+plugins/org.apache.ant_*/lib/ant-jmf.jar;/usr/share/java/ant-jmf.jar >+plugins/org.apache.ant_*/lib/ant-jsch.jar;/usr/share/java/ant-jsch.jar >+plugins/org.apache.ant_*/lib/ant-junit.jar;/usr/share/java/ant-junit.jar >+plugins/org.apache.ant_*/lib/ant-launcher.jar;/usr/share/java/ant-launcher.jar >+plugins/org.apache.ant_*/lib/ant-netrexx.jar;/usr/share/java/ant-netrexx.jar >+plugins/org.apache.ant_*/lib/ant-nodeps.jar;/usr/share/java/ant-nodeps.jar >+plugins/org.apache.ant_*/lib/ant-starteam.jar;/usr/share/java/ant-starteam.jar >+plugins/org.apache.ant_*/lib/ant-stylebook.jar;/usr/share/java/ant-stylebook.jar >+plugins/org.apache.ant_*/lib/ant-swing.jar;/usr/share/java/ant-swing.jar >+plugins/org.apache.ant_*/lib/ant-trax.jar;/usr/share/java/ant-trax.jar >+plugins/org.apache.ant_*/lib/ant-weblogic.jar;/usr/share/java/ant-weblogic.jar >+plugins/org.apache.ant_*/lib/ant.jar;/usr/share/java/ant.jar >+plugins/org.junit_3.*/junit.jar;/usr/share/java/junit-3.*.jar >+plugins/com.jcraft.jsch_*.jar;/usr/share/java/jsch.jar >+plugins/javax.servlet.jsp_*.jar;/usr/share/java/jsp-api-2.1.jar >+plugins/javax.servlet_2.4*.jar;/usr/share/java/servlet-api-2.4.jar >+plugins/javax.servlet_2.5*.jar;/usr/share/java/servlet-api-2.5.jar >+plugins/org.apache.commons.codec_*.jar;/usr/share/java/commons-codec.jar >+plugins/org.apache.commons.el_*.jar;/usr/share/java/commons-el.jar >+plugins/org.apache.commons.httpclient_*.jar;/usr/share/java/commons-httpclient.jar >+plugins/org.apache.commons.logging_*.jar;/usr/share/java/commons-logging.jar >+plugins/org.apache.lucene.analysis_*.jar;/usr/share/java/lucene-analyzers.jar >+plugins/org.apache.lucene_*.jar;/usr/share/java/lucene-core.jar >+plugins/org.hamcrest.core_*.jar;/usr/share/java/hamcrest-core.jar >+plugins/org.junit4/junit.jar;/usr/share/java/junit4.jar >+plugins/org.mortbay.jetty.server_*.jar;/usr/share/java/jetty6.jar >+plugins/org.mortbay.jetty.util_*.jar;/usr/share/java/jetty6-util.jar >+plugins/org.sat4j.core_*.jar;/usr/share/sat4j/org.sat4j.core.jar >+plugins/org.sat4j.pb_*.jar;/usr/share/sat4j/org.sat4j.pb.jar
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 280688
:
152685
|
152893
|
152902
|
153108
|
160255
|
160308