Examples of UBL4JConsole


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
Copyright © 2018 www.massapi.com. 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.