Package org.openinvoice.ubl4j.ui.console

Examples of org.openinvoice.ubl4j.ui.console.UBL4JConsole


     */
    public static void main(String[] args) {
        if (args.length == 0) {
            printUsageAndExit();
        }
        UBL4JConsole console = new UBL4JConsole();
        try {
            parser.parseArgument(args);
            console.setOptions(options);
            console.start();
            if (options.convertOrderToInvoice != null) {
                console.executeCreateInvoiceBasedOnOrderTask();
            } else if (options.renderInvoice != null && !options.renderInvoice.isEmpty()) {
                console.executeInvoiceRenderingTask();
            } else if (options.help) {
                printUsageAndExit();
            } else if (options.config) {
                printDefaultConfigurationInformation();
            } else {
                printUsageAndExit();
            }
            console.end();
        } catch (CmdLineException e) {
            printUsageAndExit();
        } catch (Exception e) {
            console.logExceptionAndExit(options, e);
        }
    }
View Full Code Here

TOP

Related Classes of org.openinvoice.ubl4j.ui.console.UBL4JConsole

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.