Package com.xmlcalabash.util

Examples of com.xmlcalabash.util.UserArgs


        main.run(args);
        System.exit(exitStatus);
    }

    public void run(String[] args) throws IOException {
        UserArgs userArgs = null;
        try {
            userArgs = new ParseArgs().parse(args);
        } catch (XProcException xe) {
            System.err.println(xe.getMessage());
            usage();
        }

        try {
            XProcConfiguration config = userArgs.createConfiguration();

            if (run(userArgs, config)) {
                // It's just sooo much nicer if there's a newline at the end.
                System.out.println();
            }
View Full Code Here


* Ths file is part of XMLCalabash.
* Created by ndw on 10/25/13.
*/
public class Piperack {
    public static void main(String[] args) throws Exception {
        UserArgs userArgs = null;
        try {
            userArgs = new ParseArgs().parsePiperack(args);
        } catch (XProcException xe) {
            System.err.println(xe.getMessage());
            System.exit(-1);
        }

        XProcConfiguration config = null;
        XProcRuntime runtime = null;

        try {
            config = userArgs.createConfiguration();
            runtime = new XProcRuntime(config);
        } catch (SaxonApiException e) {
            System.err.println(e.getMessage());
            System.exit(-1);
        }

        if (userArgs.isShowVersion()) {
            System.out.println("Piperack, a web server for running XProc pipelines.");
            XProcConfiguration.showVersion(runtime);
        }

        // Create a component
View Full Code Here

                }
            }
        } finally {
            // Same instance is reused when Ant runs this task
            // again, so reset everything.
            userArgs = new UserArgs();
            inputResources.clear();
            inputMappers.clear();
            baseDir = null;
            inPort = null;
            inResource = null;
View Full Code Here

TOP

Related Classes of com.xmlcalabash.util.UserArgs

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.