Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How do i get a custom command line argument in my rcp application?
How do i get a custom command line argument in my rcp application? [message #437045] Wed, 21 September 2005 07:27 Go to next message
Ramon Grunder is currently offline Ramon GrunderFriend
Messages: 5
Registered: July 2009
Junior Member
hi there

when launching my custom rcp application, i want to provide a custom
command line argument to it, such as:

myrcp.exe -mycustomkey mycustomvalue

now: how can i read out this startup option in my application?
what i found so far is:

String[] args = EclipseEnvironmentInfo.getDefault().getNonFrameworkArgs();

however, the usage of this class is discouraged (its an internal one...).

of course i can get all params from System.getProperties() and then try
to parse out my parameter, but thats annoying. i guess there must be a
simpler way to get my param...

any hints appreciated, thanx and live long.

ramon
Re: How do i get a custom command line argument in my rcp application? [message #437046 is a reply to message #437045] Wed, 21 September 2005 08:47 Go to previous message
Ramon Grunder is currently offline Ramon GrunderFriend
Messages: 5
Registered: July 2009
Junior Member
ok, i found something:

String[] Platform.getCommandLineArgs();

does the trick...
Previous Topic:Customizable wizard page structure
Next Topic:KeysPreferencePage storing key bindings problem "IllegalArgumentException: All triggers in a tr
Goto Forum:
  


Current Time: Sat Dec 07 17:03:52 GMT 2024

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

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

Back to the top