Configure JDT early
Set .svn as private members git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@926740 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5e791284a3
commit
777ecc0a23
1 changed files with 16 additions and 2 deletions
|
@ -35,6 +35,7 @@ import org.eclipse.core.resources.IMarker;
|
|||
import org.eclipse.core.resources.IProject;
|
||||
import org.eclipse.core.resources.IProjectDescription;
|
||||
import org.eclipse.core.resources.IResource;
|
||||
import org.eclipse.core.resources.IResourceVisitor;
|
||||
import org.eclipse.core.resources.IWorkspace;
|
||||
import org.eclipse.core.resources.IWorkspaceRoot;
|
||||
import org.eclipse.core.resources.IncrementalProjectBuilder;
|
||||
|
@ -69,6 +70,8 @@ public class WorkspaceConfigurator implements IApplication {
|
|||
public Object start(final IApplicationContext appcontext) throws Exception {
|
||||
IProgressMonitor monitor = createMonitor();
|
||||
final String[] args = (String[])appcontext.getArguments().get(IApplicationContext.APPLICATION_ARGS);
|
||||
|
||||
configureJDT();
|
||||
setM2REPOClassPathVariable(args, monitor);
|
||||
setTargetPlatform(args, monitor);
|
||||
configureWorkspace(args, monitor);
|
||||
|
@ -140,8 +143,6 @@ public class WorkspaceConfigurator implements IApplication {
|
|||
sourceRoot = new File(sourceRootArg);
|
||||
}
|
||||
|
||||
configureJDT();
|
||||
|
||||
if (sourceRoot != null) {
|
||||
importProjects(sourceRoot, monitor);
|
||||
}
|
||||
|
@ -186,6 +187,19 @@ public class WorkspaceConfigurator implements IApplication {
|
|||
p.delete(false, true, monitor);
|
||||
}
|
||||
}
|
||||
|
||||
workspaceRoot.accept(new IResourceVisitor() {
|
||||
|
||||
public boolean visit(IResource res) throws CoreException {
|
||||
if (res.getName().equals(".svn")) {
|
||||
if (!res.isTeamPrivateMember()) {
|
||||
res.setTeamPrivateMember(true);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue