/usr/lib/eclipse/eclipse.ini is not used when launching eclipse

Bug #210319 reported by Joachim R.
4
Affects Status Importance Assigned to Milestone
eclipse (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: eclipse-platform

/usr/lib/eclipse/eclipse.ini is useless since when modifying vmargs inside this file, eclipse is launched with jvm defaults.

I know how to fix this, but I don't know what is the proper way to do so.
1) It is possible to complete the VMARGS variable in /usr/bin/eclipse launching script, @line 10.
2) It is possible to complete the /usr/bin/eclipse launching script to read /usr/lib/eclipse/eclipse.ini, but take car to avoid copying the 1st line of eclipse.ini, because it contains "-vmargs":
in /usr/lib/eclipse/eclipse.ini @line 14 I inserted :
#insertion start
for argLine in `cat "${INSTALL}/eclipse.ini"`
do
    if [ ${argLine} != "-vmargs" ]; then
        VMARGS=${VMARGS}" "${argLine}
    fi
done
#insertion end

This loop add all vmargs found in eclipse.ini to the VMARGS variable that will be used by the script to launch eclipse.

Revision history for this message
Joachim R. (jro) wrote :

Reported against Feisty and Gutsy. Not tested with other distros.

Revision history for this message
Joachim R. (jro) wrote :
Changed in eclipse:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.