catch FESI.Parser.TokenMgrError which made the parsing crash completely on
certain syntax errors in js-files. now only the containing file isn't parsed. use getDocApplication().isExcluded() instead of Util.isExcluded()
This commit is contained in:
parent
2ea3261e16
commit
4358af3f20
1 changed files with 4 additions and 2 deletions
|
@ -79,7 +79,7 @@ public class DocPrototype extends DocDirElement {
|
|||
children.clear ();
|
||||
String arr[] = location.list ();
|
||||
for (int i=0; i<arr.length; i++) {
|
||||
if (Util.isExcluded (arr[i]))
|
||||
if (getDocApplication ().isExcluded (arr[i]))
|
||||
continue;
|
||||
File f = new File (location.getAbsolutePath (), arr[i]);
|
||||
if (f.isDirectory ())
|
||||
|
@ -102,7 +102,9 @@ public class DocPrototype extends DocDirElement {
|
|||
} catch (Exception ex) {
|
||||
System.out.println ("couldn't parse file " + f.getAbsolutePath () + ": " + ex.toString ());
|
||||
ex.printStackTrace ();
|
||||
}
|
||||
} catch (FESI.Parser.TokenMgrError err) {
|
||||
System.out.println ("couldn't parse file " + f.getAbsolutePath () + ": " + err.toString ());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue