Package net.sourceforge.yagsbook.utils

Examples of net.sourceforge.yagsbook.utils.Options


        usage("    -dest <path>           Path to output directory.");
    }

    public static void
    main(String args[]) throws Exception {
        Options     options = new Options(args);
        String      configFilename = "config.xml";
        String      destPath = "/tmp/repository";
        String[]    src = null;

        if (options.isOption("-help")) {
            usage();
            return;
        }

        // This is for testing, though I can't remember what.
        if (options.isOption("-xslt")) {
            Extensions.main(args);
            System.exit(0);
        }

        if (options.isOption("-debug")) {
            setDebug(true);
        }

        if (options.isOption("-config")) {
            configFilename = options.getString("-config");
        }

        if (options.isOption("-dest")) {
            destPath = options.getString("-dest");
        }

        if (options.isOption("-src")) {
            src = options.getAllStrings("-src");
        } else {
            usage("No source repositories defined. Try -help for info.");
            return;
        }
View Full Code Here

TOP

Related Classes of net.sourceforge.yagsbook.utils.Options

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.