scripts/alt2xml.sh
changeset 34 5af9c7693d70
parent 32 ecc2731a5a46
child 40 4afb00b7b1a9
     1.1 --- a/scripts/alt2xml.sh	Sat Jun 07 22:12:11 2014 +0200
     1.2 +++ b/scripts/alt2xml.sh	Sat Jun 07 23:17:59 2014 +0200
     1.3 @@ -19,7 +19,14 @@
     1.4  done
     1.5  
     1.6  MAIN_CLASS="cz.frantovo.alt2xml.cli.CLI";
     1.7 -SAX_PARSER_FACTORY="cz.frantovo.alt2xml.ParserFactory";
     1.8  
     1.9 -java -cp "$CLASS_PATH" -D"javax.xml.parsers.SAXParserFactory=$SAX_PARSER_FACTORY" $MAIN_CLASS "$@"
    1.10 +SAX_PARSER_FACTORY_ALT="cz.frantovo.alt2xml.ParserFactory";                             # our alternative ParserFactory as default
    1.11 +SAX_PARSER_FACTORY_XML="com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl";  # former default factory as fallback 
    1.12  
    1.13 +java \
    1.14 +	-cp "$CLASS_PATH" \
    1.15 +	-D"javax.xml.parsers.SAXParserFactory=$SAX_PARSER_FACTORY_ALT" \
    1.16 +	-D"cz.frantovo.alt2xml.fallback.javax.xml.parsers.SAXParserFactory=$SAX_PARSER_FACTORY_XML" \
    1.17 +	$MAIN_CLASS \
    1.18 +	"$@"
    1.19 +