|
From: <caw...@us...> - 2006-12-07 15:01:56
|
Revision: 1683
http://svn.sourceforge.net/rubyeclipse/?rev=1683&view=rev
Author: cawilliams
Date: 2006-12-07 07:01:53 -0800 (Thu, 07 Dec 2006)
Log Message:
-----------
handle case where file doesn't exist, also comment out logging of syntax exceptions that get caught - they get to be annoying in development and are quite common.
Modified Paths:
--------------
trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/builder/MassIndexUpdater.java
Modified: trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/builder/MassIndexUpdater.java
===================================================================
--- trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/builder/MassIndexUpdater.java 2006-12-07 14:57:45 UTC (rev 1682)
+++ trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/builder/MassIndexUpdater.java 2006-12-07 15:01:53 UTC (rev 1683)
@@ -57,14 +57,16 @@
}
private void processFile(IFile file) {
+ if (!file.exists()) return;
try {
Node node = parser.parse(file);
updater.update(file, node, false);
} catch (CoreException e) {
RubyCore.log(e);
} catch (SyntaxException se) {
- RubyCore.log("Explicit catch of SyntaxError in MassIndexUpdater (jpm)");
- RubyCore.log(se);
+ // Just eat the exception!
+// RubyCore.log("Explicit catch of SyntaxError in MassIndexUpdater (jpm)");
+// RubyCore.log(se);
} catch (Exception ex) {
// e.g: the parser currently throws a ClassCastExcpetion when parsing xmldecl.rb
RubyCore.log(ex);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|