Reputation: 293
I want to work on an existing project which is stored in workspace say wrkspc1. The plug-in by default creates a new empty workspace say wrkspc2. In order to work on existing project I moved my project into wrkspc2 as the root path of workspace cannot be modified. Now each time I am executing the plug-in, it is creating a workspace on system (wrkspc2). Due to this the project that I had placed in the workspace gets deleted.
Is there any way by which I can work on existing project by any means?
Aim:
My project is located at suppose path : C:/User/XYX/wrkspc2
Step 1: I want to open this workspace
Step 2: An existing project within the workspace - say project2
Step 3: Build the project
Code:
IWorkspace workspace = ResourcesPlugin.getWorkspace();
//The statement when executed creates en empty workspace for each execution
Upvotes: 0
Views: 74
Reputation: 293
After changing the path in Run Configuration menu, it worked. Now it does not create workspace but instead point to one which is given in Run Configuration
Upvotes: 1