|
From: <caw...@us...> - 2007-09-13 20:18:10
|
Revision: 3174
http://rubyeclipse.svn.sourceforge.net/rubyeclipse/?rev=3174&view=rev
Author: cawilliams
Date: 2007-09-13 13:18:08 -0700 (Thu, 13 Sep 2007)
Log Message:
-----------
Modified Paths:
--------------
trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/builder/AbstractRdtCompiler.java
trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/builder/RubySourceFileCollectingVisitor.java
Modified: trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/builder/AbstractRdtCompiler.java
===================================================================
--- trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/builder/AbstractRdtCompiler.java 2007-09-13 20:06:43 UTC (rev 3173)
+++ trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/builder/AbstractRdtCompiler.java 2007-09-13 20:18:08 UTC (rev 3174)
@@ -35,9 +35,9 @@
for (int i = 0; i < fParticipants.length; i++) {
fParticipants[i].aboutToBuild(rubyProject);
}
- List<IFile> files = getFilesToCompile();
+ BuildContext[] files = getBuildContexts();
int filesToClear = getFilesToClear().size();
- int taskCount = (filesToClear) + (files.size() * fParticipants.length);
+ int taskCount = (filesToClear) + (files.length * fParticipants.length);
monitor.beginTask("Building " + project.getName() + "...", taskCount);
@@ -51,8 +51,7 @@
monitor.done();
}
- private void compileFiles(List<IFile> list, IProgressMonitor monitor) throws CoreException {
- BuildContext[] contexts = getBuildContexts(list);
+ private void compileFiles(BuildContext[] contexts, IProgressMonitor monitor) throws CoreException {
if (fParticipants != null) {
for (int i = 0; i < fParticipants.length; i++) {
if (monitor.isCanceled())
@@ -69,6 +68,10 @@
}
}
+ private BuildContext[] getBuildContexts() throws CoreException {
+ return getBuildContexts(getFilesToCompile());
+ }
+
private BuildContext[] getBuildContexts(List<IFile> list) {
List<BuildContext> contexts = new ArrayList<BuildContext>();
for (IFile file : list) {
Modified: trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/builder/RubySourceFileCollectingVisitor.java
===================================================================
--- trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/builder/RubySourceFileCollectingVisitor.java 2007-09-13 20:06:43 UTC (rev 3173)
+++ trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/builder/RubySourceFileCollectingVisitor.java 2007-09-13 20:18:08 UTC (rev 3174)
@@ -23,6 +23,7 @@
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.content.IContentDescription;
import org.eclipse.core.runtime.content.IContentType;
+import org.rubypeople.rdt.core.RubyCore;
public final class RubySourceFileCollectingVisitor implements IResourceProxyVisitor {
@@ -63,8 +64,7 @@
return false;
visitedLinks.add(unique);
} catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
+ RubyCore.log(e);
return false;
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|