Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Command line RCP
Command line RCP [message #638306] Wed, 10 November 2010 18:56 Go to next message
Frank Benoit is currently offline Frank BenoitFriend
Messages: 179
Registered: July 2009
Senior Member
Hi,

i hope i am at the right place with this question...

I want to run my RCP application from the command line.

1.) Is it possible to use a stored .launch file to reuse the options I configured in Eclipse already?

2.) Can I do this without exporting the project? (continue working on the program and without export step, start from the command line)

3.) Can I make the RCP application "block" the console until quit? (like java.exe vs javaw.exe in non GUI/Eclipse apps). So it can be used from a batch file, having more commands after the rcp application has ended.

Frank
Re: Command line RCP [message #638339 is a reply to message #638306] Wed, 10 November 2010 20:55 Go to previous messageGo to next message
Heiko Ahlig is currently offline Heiko AhligFriend
Messages: 62
Registered: July 2009
Member
Hi Frank,
comments below to the point I know something. ;)

Hope it helps you.



Am 10.11.2010 19:57, schrieb Frank:
> Hi,
>
> i hope i am at the right place with this question...
>
> I want to run my RCP application from the command line.
>
> 1.) Is it possible to use a stored .launch file to reuse the options I
> configured in Eclipse already?
Personally I use a product file to start my application from inside the
IDE. All, there, defined options will be exported inside the rcp client
ini-file and will be used at starting the clinet from the commandline or
with doubleclick.
>
> 2.) Can I do this without exporting the project? (continue working on
> the program and without export step, start from the command line)
>
> 3.) Can I make the RCP application "block" the console until quit? (like
> java.exe vs javaw.exe in non GUI/Eclipse apps). So it can be used from a
> batch file, having more commands after the rcp application has ended.
You can also start your exported rcp clinet without using the client
executable file and using a batch file with the command like:

java -jar plugins/org.eclipse.equinox.launcher_1.0.0.v20070606.jar

But than you have to give this command some more options, inside the
batch file.

Form more see:
http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse. platform.doc.isv/reference/misc/launcher.html

and

http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse. platform.doc.isv/reference/misc/launcher.html

>
> Frank
Re: Command line RCP [message #638817 is a reply to message #638339] Fri, 12 November 2010 16:32 Go to previous message
Frank Benoit is currently offline Frank BenoitFriend
Messages: 179
Registered: July 2009
Senior Member
Thanks Heiko,

starting the application from inside eclipse is fine, but i have the need to integrate it into a batch run.

The solution with "java -jar launcher" works fine if the application is exported. Thanks for this.

But my need is kind of special, because this is a testing environment, the "user" will modify the java code, press Ctrl-S and wants to run a batch file that has also the pre and post processing instructions in it.

If it would be possible to use the "java -jar launcher" approach on the eclipse project working directory ?

Frank

Previous Topic:Eclipse RCP with AspectJ - how to export?
Next Topic:How can I show all of String in Console View
Goto Forum:
  


Current Time: Sat Apr 20 02:24:54 GMT 2024

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

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

Back to the top