Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cross-project-issues-dev] Equinox Launchers in 3.3 M5.

Nick Boldt wrote:
Well, it's not as bad as you'd think.

If you're launching Eclipse from a shell script, you can just find the
equinox jar and use that instead of startup.jar.

cp=$(find $eclipseinstallDir -name "org.eclipse.equinox_*.jar" | sort
| tail -1);
/opt/java50/bin/java -cp $cp org.eclipse.equinox.launcher.Main ...

If you're launching Eclipse from an ant script, you can use a mapper
or simple copy/move to find the equinox jar and rename it so it's more
accessible.

<copy tofile="${install}/eclipse/plugins/org.eclipse.equinox.launcher.jar">
<fileset dir="${install}/eclipse/plugins"
includes="**/org.eclipse.equinox.launcher_*.jar"/>
</copy>
<java classpath="${install}/eclipse/plugins/org.eclipse.equinox.launcher.jar"
.../>

If you're launching Eclipse from a cmd or bat script on Windows...
well, you're on your own there. ;-)

Right, and a vast majority of the Eclipse users are on Windows...

So what you have is two solutions and one problem. Then multiply that with the number of headless products. I'm surprised that a decision was made to remove the only unified way to start this Java framework using Java and I would like to express a strong desire to have it reinstated. Please Equinox team, can you do that?

Personally, I agree with you - a simple startup.jar that is nothing
more than an org.eclipse.core.launcher.Main that calls into the right
equinox jar and starts up org.eclipse.equinox.launcher.Main would make
the transition much easier for existing users and embedded clients.
Actually, if you look in /cvsroot/eclipse/equinox-incubator/ you'll
see that there's already a core.launcher.Main that does that, but it
seems it hasn't escaped incubation and made it into production code.
Yet?

If migrating to the new method is too onerous, I'd suggest opening a
bug and asking the Equinox team to comment on the feasibility of what
you and I've outlined.
I'll do that. This is important to me. Thanks for your input.

Kind Regards,
Thomas Hallgren



Back to the top