Package org.foray.common

Examples of org.foray.common.ConfigurationException


            this.inputmode = CommandLineOptions.INPUT_FO;
            final String foValue = this.parsedCommandLine.getOptionValue("fo");
            try {
                this.foInput = URLFactory.createURL(foValue);
            } catch (final MalformedURLException e) {
                throw new ConfigurationException("Command-line error: Malformed URL for -fo: " + foValue, e);
            }
            this.sessionConfig.setBaseDocument(this.foInput);
        } else {
            this.inputmode = CommandLineOptions.INPUT_XSLT;
            final String xmlValue = this.parsedCommandLine.getOptionValue("xml");
            try {
                this.xmlInput = URLFactory.createURL(xmlValue);
            } catch (final MalformedURLException e) {
                throw new ConfigurationException("Command-line error: Malformed URL for -xml: " + xmlValue, e);
            }
            this.sessionConfig.setBaseDocument(this.xmlInput);
            final String xslValue = this.parsedCommandLine.getOptionValue("xsl");
            try {
                this.xsltInput = URLFactory.createURL(xslValue);
            } catch (final MalformedURLException e) {
                throw new ConfigurationException("Command-line error: Malformed URL for -xsl: " + xslValue, e);
            }
        }
    }
View Full Code Here


        if (this.parsedCommandLine.hasOption("c")) {
            try {
                final String configurationValue = this.parsedCommandLine.getOptionValue("c");
                this.userConfig = URLFactory.createURL(configurationValue);
            } catch (final MalformedURLException e) {
                throw new ConfigurationException("Command-line error: Malformed URL for -c");
            }
        }
        if (this.parsedCommandLine.hasOption("catalogs")) {
            this.sessionConfig.parseOption("xml-catalog", this.parsedCommandLine.getOptionValue("catalogs"),
                    OutputConfig.PRECEDENCE_COMMAND_LINE);
View Full Code Here

TOP

Related Classes of org.foray.common.ConfigurationException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.