diff -r e853e5b5bfdf -r 5af9c7693d70 scripts/alt2xml.sh --- a/scripts/alt2xml.sh Sat Jun 07 22:12:11 2014 +0200 +++ b/scripts/alt2xml.sh Sat Jun 07 23:17:59 2014 +0200 @@ -19,7 +19,14 @@ done MAIN_CLASS="cz.frantovo.alt2xml.cli.CLI"; -SAX_PARSER_FACTORY="cz.frantovo.alt2xml.ParserFactory"; -java -cp "$CLASS_PATH" -D"javax.xml.parsers.SAXParserFactory=$SAX_PARSER_FACTORY" $MAIN_CLASS "$@" +SAX_PARSER_FACTORY_ALT="cz.frantovo.alt2xml.ParserFactory"; # our alternative ParserFactory as default +SAX_PARSER_FACTORY_XML="com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl"; # former default factory as fallback +java \ + -cp "$CLASS_PATH" \ + -D"javax.xml.parsers.SAXParserFactory=$SAX_PARSER_FACTORY_ALT" \ + -D"cz.frantovo.alt2xml.fallback.javax.xml.parsers.SAXParserFactory=$SAX_PARSER_FACTORY_XML" \ + $MAIN_CLASS \ + "$@" +