Hi,
I'm using an ANT task to create and open a project, but it hangs when building on a Mac - it works fine on Windows and Linux.
IWorkspace workspace = ResourcesPlugin.getWorkspace();
if (workspace.isAutoBuilding())
throw new BuildException("Auto building is enabled");
IProjectDescription description = workspace.loadProjectDescription(projectPath);
IProject project = workspace.getRoot().getProject(description.getName());
IProgressMonitor monitor = AntUtils.getMonitor(this);
if (enableClean && project.exists()) {
project.delete(false, true, monitor);
if (monitor.isCanceled())
throw new BuildException("Project delete canceled");
}
if (!project.exists()) {
project.create(description, monitor);
if (monitor.isCanceled())
throw new BuildException("Project create canceled");
}
project.open(monitor);//IT HANGS ON THIS LINE
if (monitor.isCanceled())
throw new BuildException("Project open canceled");
Any pointers/help will be greatly appreciated.
[Updated on: Fri, 20 November 2009 11:06] by Moderator