Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » custom configuration on OS X
custom configuration on OS X [message #460894] Mon, 01 January 2007 19:40 Go to next message
Eclipse UserFriend
I have two RCP apps that I want to deploy together and have them share
the same plugins/features. On Windows I can create custom "MyApp.ini"
files matching my .EXE's but this doesn't appear to work on the Mac
version of Eclipse (3.3M4).

Anyone know how to create these custom ini files or share a single set
of plugins/features for two separate RCP apps?
Re: custom configuration on OS X [message #460896 is a reply to message #460894] Tue, 02 January 2007 03:58 Go to previous messageGo to next message
Eclipse UserFriend
What are you renaming? If you're just renaming the 'MyApp.app' then I wouldn't expect it to work. However, if you are to open the MyApp.app folder, navigate to Contents/MacOSX/ and rename the eclipse executable, then it probably would. You'll need to change the entry in the Contents/Info.plist as well to point to the new file.

Does this not work? If so, it would be worth filing a bug under https://bugs.eclipse.org. Note however that the features and plugins really don't belong outside the Mac application;

See also

https://bugs.eclipse.org/bugs/show_bug.cgi?id=57349

http://www.rcpquickstart.com/packaging_an_rcp_application_fo r_mac_os_x

Alex.
Re: custom configuration on OS X [message #460962 is a reply to message #460896] Tue, 02 January 2007 19:33 Go to previous messageGo to next message
Eclipse UserFriend
I'm not trying to rename anything specifically I'm just having trouble
getting an ini file attached to my rcp app.

On Windows I can have an app.ini file like this:

-data
<my workspace path>
-configuration
<my configuration folder path>
-product
com.mycompany.myproduct
-application
com.mycompany.myapplication

Then I can create another of these for my second app which defines its
configuration folder. This way I can have a directory structure like this

/myapps
app1.exe
app1.ini
app2.exe
app2.ini
/plugins
/features
/appcfg1
/appcfg2

This allows both applications to use the same set of plugins and features.

On the Mac I poke the ini file into the app1.app/Contents/MacOS folder
where the executable is but when I run the program it creates a
/configuration folder and puts an error log in it, while completely
ignoring my custom configuration folder.

I'm not sure if this is a bug or if I'm trying to abuse Eclipse. All I
really want to do is figure out how I can have two RCP apps share the
same set of plugins and features. If there is a better way to do this
I'll do it.



Alex Blewitt wrote:
> What are you renaming? If you're just renaming the 'MyApp.app' then I wouldn't expect it to work. However, if you are to open the MyApp.app folder, navigate to Contents/MacOSX/ and rename the eclipse executable, then it probably would. You'll need to change the entry in the Contents/Info.plist as well to point to the new file.
>
> Does this not work? If so, it would be worth filing a bug under https://bugs.eclipse.org. Note however that the features and plugins really don't belong outside the Mac application;
>
> See also
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=57349
>
> http://www.rcpquickstart.com/packaging_an_rcp_application_fo r_mac_os_x
>
> Alex.
Re: custom configuration on OS X [message #460964 is a reply to message #460962] Tue, 02 January 2007 20:01 Go to previous messageGo to next message
Eclipse UserFriend
You might find that eclipse is looking elsewhere e.g. the same top-level directory that the Eclipse.app is located. The layout is a bit crap on Mac OS X apps with Eclipse at the moment.

You could also try overriding it in the Info.plist in Eclipse.app/Contents/Info.plist. That allows you to specify pretty much what you'd specify in the eclipse.ini file anyway, and if you put entries in there, they override what the eclipse.ini says.

Alex.
Re: custom configuration on OS X [message #460978 is a reply to message #460964] Wed, 03 January 2007 05:38 Go to previous message
Eclipse UserFriend
Excellent - works like a charm. Thanks!


Alex Blewitt wrote:
> You might find that eclipse is looking elsewhere e.g. the same top-level directory that the Eclipse.app is located. The layout is a bit crap on Mac OS X apps with Eclipse at the moment.
>
> You could also try overriding it in the Info.plist in Eclipse.app/Contents/Info.plist. That allows you to specify pretty much what you'd specify in the eclipse.ini file anyway, and if you put entries in there, they override what the eclipse.ini says.
>
> Alex.
Previous Topic:ISelectionProvider bug?
Next Topic:MessageConsole.clearConsole() and appending text are executed in wrong order
Goto Forum:
  


Current Time: Wed Mar 19 23:08:25 EDT 2025

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

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

Back to the top