|
From: Christopher W. <caw...@us...> - 2005-03-30 01:56:41
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/builder In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16630/src/org/rubypeople/rdt/internal/core/builder Modified Files: RubyBuilder.java Log Message: clear the task parser accumulated tags before we parse another file (otherwise we'll just keep them all and set them on succeeding files) Index: RubyBuilder.java =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/builder/RubyBuilder.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** RubyBuilder.java 30 Mar 2005 00:12:29 -0000 1.7 --- RubyBuilder.java 30 Mar 2005 01:56:29 -0000 1.8 *************** *** 94,97 **** --- 94,98 ---- percentPerUnit = 0; warnings.clear(); + taskParser.clear(); } *************** *** 187,191 **** if (this.compiledAllAtOnce) { // do them all now ! doCompile(units, null); } else { int i = 0; --- 188,192 ---- if (this.compiledAllAtOnce) { // do them all now ! doCompile(units, monitor); } else { int i = 0; *************** *** 234,238 **** monitor.subTask(name + ": (" + i + " of " + grandTotal + ")"); ! MarkerUtility.removeMarkers(file); try { parser.parse(units[i].getName(), new InputStreamReader(file.getContents())); --- 235,239 ---- monitor.subTask(name + ": (" + i + " of " + grandTotal + ")"); ! removeProblemsAndTasksFor(file); try { parser.parse(units[i].getName(), new InputStreamReader(file.getContents())); *************** *** 241,245 **** } MarkerUtility.createProblemMarkers(file, warnings.getWarnings()); - warnings.clear(); createTasks(file); monitor.worked(percentPerUnit); --- 242,245 ---- *************** *** 247,250 **** --- 247,251 ---- RubyCore.log(e); } + warnings.clear(); } checkCancel(monitor); *************** *** 252,257 **** --- 253,260 ---- private void createTasks(IFile file) throws CoreException { + taskParser.clear(); taskParser.parse(new InputStreamReader(file.getContents())); MarkerUtility.createTasks(file, taskParser.getTasks()); + taskParser.clear(); } } |