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 ();
|
children.clear ();
|
||||||
String arr[] = location.list ();
|
String arr[] = location.list ();
|
||||||
for (int i=0; i<arr.length; i++) {
|
for (int i=0; i<arr.length; i++) {
|
||||||
if (Util.isExcluded (arr[i]))
|
if (getDocApplication ().isExcluded (arr[i]))
|
||||||
continue;
|
continue;
|
||||||
File f = new File (location.getAbsolutePath (), arr[i]);
|
File f = new File (location.getAbsolutePath (), arr[i]);
|
||||||
if (f.isDirectory ())
|
if (f.isDirectory ())
|
||||||
|
@ -102,7 +102,9 @@ public class DocPrototype extends DocDirElement {
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
System.out.println ("couldn't parse file " + f.getAbsolutePath () + ": " + ex.toString ());
|
System.out.println ("couldn't parse file " + f.getAbsolutePath () + ": " + ex.toString ());
|
||||||
ex.printStackTrace ();
|
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