I have a run configuration defined for my Eclipse RCP application which is saved to a .launch file. Is there a way to use this launch configuration outside the Eclipse IDE? i.e, it would be nice to be able to launch the application from the command line for continuous integration purposes.
You can get the command line Eclipse uses:
- Run your program in Eclipse
- Go to the "Debug" view
- Right-click on the process (probably the second item in the tree) and select "Properties"
- Copy shell command and delete the agentlib flag to run in bash. Unfortunately, you need to do this whenever you change the configuration.
Yes, you could create and export a product configuration based on your launch-configuration:
- Create new Product Configuration (File -> New -> Other)
- Name the file (e.g. myrcp.product)
- Select "Use a launch configuration" on the first page of the wizard
The product editor should open automatically. In the Exporting section you should be able to export your product using the "Eclipse Product export wizard".
Resource: Eclipse FAQ - How can I deploy my RCP app
Have a look at this PDE Build tutorial. It explains how to build and test (or run) your product using Ant.
It is possible to do that with a little workaround. You can find your configuration at workspace\.metadata\.plugins\org.eclipse.debug.core\.launches
.
So, open it in text editor and find an attribute containing goals, e.g. clean install -DskipTests=true
.
Then, go to the root of your project and execute that by the CMD
:
mvn clean install -DskipTests=true
This should be similar for other goals.
© 2022 - 2024 — McMap. All rights reserved.