~ubuntu-branches/ubuntu/precise/eclipse/precise

« back to all changes in this revision

Viewing changes to debian/patches/symlink.patch

  • Committer: Bazaar Package Importer
  • Author(s): Benjamin Drung
  • Date: 2009-10-15 02:24:07 UTC
  • Revision ID: james.westby@ubuntu.com-20091015022407-eilbvcb641lorcvb
Tags: 3.5.1-0ubuntu3
* Configure eclipse properly for Software Updates (LP: #438414).
* Split osgi jars in its own package (LP: #102717).
* Add source jar files to packages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Description: Patch to generate the "startup.jar" symlink using the upstream code. Sent upstream!
 
2
Author: Niels Thykier <niels@thykier.net>
 
3
 
 
4
Index: build.xml
 
5
===================================================================
 
6
--- a/build.xml (revision 23414)
 
7
+++ b/build.xml (working copy)
 
8
@@ -683,6 +683,14 @@
 
9
                <!-- eclipse binary -->
 
10
                <mkdir dir="${destDir}${prefix}/bin" />
 
11
                <symlink link="${destDir}${prefix}/bin/eclipse" resource="../${libDir}/eclipse/eclipse" />
 
12
+               <!-- Create the "startup.jar" symlink -->
 
13
+               <exec executable="/bin/sh" dir="${destDir}${prefix}/${libDir}/eclipse" outputproperty="eclipse.launcher.jar.path"
 
14
+                     failonerror="true" >
 
15
+                 <arg value="-c" />
 
16
+                 <arg value="echo plugins/org.eclipse.equinox.launcher_*" />
 
17
+               </exec>
 
18
+               <symlink link="${destDir}${prefix}/${libDir}/eclipse/startup.jar" resource="${eclipse.launcher.jar.path}" />
 
19
+
 
20
                <echo append="true" file="${destDir}${prefix}/${libDir}/eclipse/eclipse.ini" message="-Dorg.eclipse.equinox.p2.reconciler.dropins.directory=${destDir}${prefix}/share/eclipse/dropins"/>
 
21
        </target>
 
22