Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Product runnable on several platforms
Product runnable on several platforms [message #488805] Wed, 30 September 2009 09:50 Go to next message
Rudolf Hornig is currently offline Rudolf HornigFriend
Messages: 12
Registered: July 2009
Junior Member
Anyone has created (or knows the recommended way) an eclipse based product
which is capable of running on several platforms. The issue is that we want
to create a single archive file which can be extracted on several platforms
(win32, Linux32/64, macosx). Post of the code is platform independent, but
the launchers, the config files, p2 profiles are platform dependent. What is
the recommended layout to do this?

Before p2, I've just copied everything (fragments, and all platform specific
stuff) into a single directory. The only problem was that the names of the
linux 32 and 64 bit executables collided (but I'm fine to rename the 64 bit
to eclipse64 or whatever).

Now we have to use p2 and the above method does not work anymore...

Currently I'm creating 4 platform specific directories each containing the
launcher, the configuration directory and the p2 directory. The plugins and
features are common to each platform are stored in a separate directory and
I specify the install (in the ini file) area to point there... This method
is working but I'm wondering whether there is a better method to create such
a configurations? (I don't like the current solution, because I have to
specify the install area as an absolute path in the ini file... this means
that if the user moves the directory, it will break down mysteriously...)

Thanks for the hints,
Re: Product runnable on several platforms [message #488843 is a reply to message #488805] Wed, 30 September 2009 13:32 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

You might want to ask your question over in the Equinox forum, as they would know better.

2 things come to mind.

1) You're right they linux executable will collide, since they're both called "eclipse". At least there isn't a collision between 32-bit and 64-bit fragments, as 32-bit fragments have x86 in their filename and 64-bit fragments have x86_64 in their filename (swt, core.filesystem, etc).

2) I don't think p2 has a clear pattern for setting this up. The most likely winner seems to me to be:

except there's that shared p2 directory that contains the profiles. Maybe that's OK, and you just need to create multiple profiles, one per platform, since the actual file is in the configuration directory.


Previous Topic:how do i Edit "Code window" menu (right click)
Next Topic:How to install a plugin in the dropins folder?
Goto Forum:

Current Time: Thu May 24 18:05:31 GMT 2018

Powered by FUDForum. Page generated in 0.01407 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top