Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How can I make configurable my RCP App?
How can I make configurable my RCP App? [message #636922] Wed, 03 November 2010 07:39 Go to next message
moley harey is currently offline moley harey
Messages: 23
Registered: July 2009
Junior Member
Hello folks,

I have and RCP application that I would like to make configurable on start-up.

For example when my App is launched, it has to connect to a given url to get some information, so I would like to have a local configuration file that once I generate the executable of my App I can make the url manually configurable.

The problem I had found is that once I generate my executable with the corresponding .product file, all files get "bundled" and I have no access to my config file, i.e., I cannot manually edit the file to put the url I need depending on the environment.

Any on how can I do this? How are you implementing configurable Apps using RCP?
Re: How can I make configurable my RCP App? [message #638607 is a reply to message #636922] Thu, 11 November 2010 13:50 Go to previous message
Heiko Ahlig is currently offline Heiko Ahlig
Messages: 62
Registered: July 2009
Member
Hi,
inside your productfile you can use the launching arguments
for defining your url or configfile location
use the program argument which you can check inside your app with
Platform.getApplicationArgs();

org set a vm argument

Both will be written to your client.ini , so that you can change it quick.

But you should have a backup conf inside your jars, that comes up if
your argument dosent work ( missing file or so on).


Hope it helps you


Am 03.11.2010 12:39, schrieb moley harey:
> Hello folks,
>
> I have and RCP application that I would like to make configurable on
> start-up.
>
> For example when my App is launched, it has to connect to a given url to
> get some information, so I would like to have a local configuration file
> that once I generate the executable of my App I can make the url
> manually configurable.
>
> The problem I had found is that once I generate my executable with the
> corresponding .product file, all files get "bundled" and I have no
> access to my config file, i.e., I cannot manually edit the file to put
> the url I need depending on the environment.
>
> Any on how can I do this? How are you implementing configurable Apps
> using RCP?
Previous Topic:Adding button to RCP application
Next Topic:Enable print command
Goto Forum:
  


Current Time: Fri Aug 29 06:22:41 EDT 2014

Powered by FUDForum. Page generated in 0.02285 seconds