Plugin: Add CVS via Script [message #916655] |
Wed, 19 September 2012 09:30 |
Joe Volmer Messages: 1 Registered: September 2012 |
Junior Member |
|
|
Hi there,
I'm writing an eclipse plugin to auto-import projects and preferences into a new workspace.
So you have a folder that contains some projects and a preference.epf data somewhere and as you open this folder as a new workspace with my plugin, the fresh workspace should automatically have the preferences of the .epf applied and the projects imported.
The whole thing does what it should beside the fact that projects added in CVS are not correctly imported, so you have the project but not the CVS-informations.
When importing it manually with eclipse Import...-Tab it works, so I think there must be a way to get it done.
I managed the import with IProjectDescription and IProject classes out of org.eclipse.core.resourcesPlugin
The concerning code is (String projectPath is given as parameter)
IProjectDescription description = ResourcesPlugin.getWorkspace().loadProjectDescription(new Path(projectPath).append(".project"));
dirName=getDirName(projectPath); //Just gets the name of the project's folder
IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(dirName);
project.create(description, null);
project.open(null);
Is there any method or class for handling with the CVS information?
Thanks
[Updated on: Wed, 19 September 2012 09:34] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.02523 seconds