Community
Participate
Working Groups
// if location is null, project already exists in this location or
// some error condition occured.
if (locationURI != null) {
// validate the location of the project being copied
IStatus result = ResourcesPlugin.getWorkspace().validateProjectLocationURI(project,
locationURI);
if(!result.isOK())
throw new InvocationTargetException(new CoreException(result));
importSource = new File(locationURI);
IProjectDescription desc = workspace
.newProjectDescription(projectName);