Package: eclipse
Followup-For: Bug #491334
Hello,
I found that these vmargs can be set in the configuration file
~/.eclipse/eclipserc, that is sourced by eclipse launcher, the
/usr/bin/eclipse shell script.
This file cannot fully replace eclipse.ini, however, as it is only
user-specific. So I think a good solution would be to provide the
ability to use a system-wide configuration file, let us say
/etc/eclipse/eclipserc.
Here is a tiny patch to do that: one more sourcing in the
/usr/bin/eclipse shell script, and some information about it in
eclipse(1) manpage.
Regards,
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.26-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages eclipse depends on:
ii eclipse-jdt 3.2.2-5 Java Development Tools plug-ins fo
ii eclipse-pde 3.2.2-5 Plug-in Development Environment to
ii eclipse-source 3.2.2-5 Eclipse source code plug-ins
ii libc6 2.7-13 GNU C Library: Shared libraries
ii libglib2.0-0 2.16.5-1 The GLib library of C routines
ii libgtk2.0-0 2.12.11-3 The GTK+ graphical user interface
ii zenity 2.22.1-1 Display graphical dialog boxes fro
Versions of packages eclipse recommends:
pn eclipse-gcj <none> (no description available)
eclipse suggests no packages.
-- no debconf information
diff -ur eclipse-3.2.2/debian/extra/eclipse.1 eclipse-3.2.2.new/debian/extra/eclipse.1
--- eclipse-3.2.2/debian/extra/eclipse.1 2008-10-09 15:00:45.000000000 -0400
+++ eclipse-3.2.2.new/debian/extra/eclipse.1 2008-10-09 14:59:55.000000000 -0400
@@ -17,8 +17,9 @@
.SH PLATFORM OPTIONS
A summary of platform options are included below. Some of this options can
-be set by editing ~/.eclipse/eclipserc (but options given on the commandline
-will overwrite them). This is usefull, when you start eclipse via menu entry.
+be set by editing /etc/eclipse/eclipserc or ~/.eclipse/eclipserc (but options
+given on the commandline will overwrite them). This is usefull, when you start
+eclipse via menu entry.
.TP
.B \-arch <architecture>
Defines the processor architecture on which the Eclipse platform is running.
@@ -211,12 +212,14 @@
names known to Eclipse (e.g., win32, motif, ...).
.SH NOTES
Eclipse will search for a java virtual machine in this order: VM given with
-the "\-vm <JVM>" argument, $JAVA_HOME/bin/java from $HOME/.eclipse/eclipserc
-and then in the environment and at last use /usr/bin/java.
+the "\-vm <JVM>" argument, $JAVA_HOME/bin/java from /etc/eclipse/eclipserc or
+$HOME/.eclipse/eclipserc and then in the environment and at last use
+/usr/bin/java.
.SH SEE ALSO
java(1)
.SH FILES
-Configuration file is $HOME/.eclipse/eclipserc, error log in
+Configuration files are /etc/eclipse/eclipserc (system wide) and
+$HOME/.eclipse/eclipserc (user defined), error log in
<workspace>/.metadata/.log, where <workspace> is the path to your workspace.
.SH BUGS
Eclipse has a bugzilla, which can be found at bugs.eclipse.org.
diff -ur eclipse-3.2.2/debian/extra/eclipse.sh eclipse-3.2.2.new/debian/extra/eclipse.sh
--- eclipse-3.2.2/debian/extra/eclipse.sh 2008-10-09 15:00:45.000000000 -0400
+++ eclipse-3.2.2.new/debian/extra/eclipse.sh 2008-10-09 14:57:24.000000000 -0400
@@ -40,7 +40,12 @@
# Just in case Eclipse tries to put something in the home directory.
cd ~
-# Load default settings from the user's configuration file.
+# Load default settings from the system's configuration file.
+if [ -f /etc/eclipse/eclipserc ]; then
+ . /etc/eclipse/eclipserc
+fi
+# Load default settings from the user's configuration file (override the
+# system's one).
if [ -f ~/.eclipse/eclipserc ]; then
. ~/.eclipse/eclipserc
fi