Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsProduct runnable on several platforms
https://www.eclipse.org/forums/index.php/mv/msg/155146/488805/#msg_488805
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,
Rudolf]]>Rudolf Hornig2009-09-30T09:50:11-00:00Re: Product runnable on several platforms
https://www.eclipse.org/forums/index.php/mv/msg/155146/488843/#msg_488843
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:
eclipse/
config_linux_x86
config_linux_x86_64
config_win32_win32
config_macosx
features
plugins
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 bundles.info file is in the configuration directory.