Reputation: 347
I have created a launch group configuration for launching a project in my current workspace.
Can i some how save the configuration along with the project so that it can be imported into another workspace ?
If no how can i create a launch-group configuration using a custom eclipse plugin ?
Upvotes: 5
Views: 11670
Reputation: 3187
I simply export all my "run/debug configurations"
from the original project by:
copying the content of folder:
$My-Workspace\.metadata\.plugins\org.eclipse.debug.core\.launches
into a folder in the destination project (folder location or name doesn't matter, just as long as it is in the imported project)
and when I open eclipse to my workspace and the project - it will show up automatically in "run/debug configurations"
dialog (eclipse scan the projects for .launch files)
also after copying a .launch file into my project, i right click the root folder and choose refresh, wait for a minute and the configurations appear in the "run/debug configurations"
Upvotes: 0
Reputation: 3938
File -> Export... -> Run/Debug -> "Launch Configurations"
Then select the configurations you need to export.
File -> Import... -> Run/Debug -> "Launch Configurations"
Then select the configurations into "From Directory".
Example images are available here along with a sample .launch file.
Upvotes: 10