How can I add a Classpath Variable in code [message #1468302] |
Mon, 10 November 2014 18:47 |
Mike Ciccarone Messages: 4 Registered: November 2014 |
Junior Member |
|
|
Hi All,
I am trying to create a quick tool that will automatically generate a 'new workspace' from a list of project files that are contained within Version control. So far I have the tool to a point where it can find all project files and add them to a workspace, however I cannot figure out how to change the location of the new workspace.
The tool itself is setup as an Eclipse Plugin and it parses the command line arguments for various items. The argument I want to use is '-workspace <variable>' , however I do not know how to pass that into the project creation as '-data'
I'm using the following lines to add the projects to the workspace:
IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(description.getName());
project.create(description, null);
The way it works now is that it creates a new workspace in the ..\Plugin-name directory of the last Workspace i have used.
Does anyone know how this can be done? (Without using the IDE switch/change workspace)
[Updated on: Mon, 10 November 2014 22:44] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02139 seconds