summaryrefslogtreecommitdiffstats
path: root/sandbox/rfeng/eclipse-workspace/src
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/rfeng/eclipse-workspace/src')
-rw-r--r--sandbox/rfeng/eclipse-workspace/src/main/java/org/apache/tuscany/eclipse/workspace/WorkspaceConfigurator.java12
1 files changed, 8 insertions, 4 deletions
diff --git a/sandbox/rfeng/eclipse-workspace/src/main/java/org/apache/tuscany/eclipse/workspace/WorkspaceConfigurator.java b/sandbox/rfeng/eclipse-workspace/src/main/java/org/apache/tuscany/eclipse/workspace/WorkspaceConfigurator.java
index 54f2ae9cbe..dd77fb14e5 100644
--- a/sandbox/rfeng/eclipse-workspace/src/main/java/org/apache/tuscany/eclipse/workspace/WorkspaceConfigurator.java
+++ b/sandbox/rfeng/eclipse-workspace/src/main/java/org/apache/tuscany/eclipse/workspace/WorkspaceConfigurator.java
@@ -78,6 +78,7 @@ public class WorkspaceConfigurator implements IApplication {
private void configure(final String[] args) throws JavaModelException, InterruptedException, Exception,
CoreException, FileNotFoundException, ParserConfigurationException, SAXException, IOException {
+ print("Starting to configure the workspace...");
IProgressMonitor monitor = createMonitor();
// Configure JDT
@@ -223,7 +224,10 @@ public class WorkspaceConfigurator implements IApplication {
private void configureProjects(File sourceRoot, final IProgressMonitor monitor) throws Exception {
IWorkspaceRoot workspaceRoot = workspace.getRoot();
- loadProjects(sourceRoot, monitor);
+ if (sourceRoot != null) {
+ print("Scanning " + sourceRoot);
+ loadProjects(sourceRoot, monitor);
+ }
for (IProject p : workspaceRoot.getProjects()) {
print("Refreshing project: " + p.getName());
@@ -295,9 +299,9 @@ public class WorkspaceConfigurator implements IApplication {
return;
}
- for (int i = 0; i < dirs.length; i++) {
- if (dirs[i].isDirectory()) {
- loadProjects(dirs[i], monitor);
+ for (File dir : dirs) {
+ if (dir.isDirectory() && !dir.getName().startsWith(".")) {
+ loadProjects(dir, monitor);
}
}
}