diff options
author | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2010-03-31 17:58:53 +0000 |
---|---|---|
committer | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2010-03-31 17:58:53 +0000 |
commit | a97f7a0eb7bd4e65a1edf0f91b70f4da8c23ccec (patch) | |
tree | ec00f4a3bcd3b6284b84e12ce91b3bb3d8843e84 /sandbox/rfeng/eclipse-workspace/src | |
parent | 986b8e7be9a1c179a4fc67f67afea48bc9b57bbe (diff) |
Add more print
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@929641 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sandbox/rfeng/eclipse-workspace/src')
-rw-r--r-- | sandbox/rfeng/eclipse-workspace/src/main/java/org/apache/tuscany/eclipse/workspace/WorkspaceConfigurator.java | 12 |
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); } } } |