Package org.jitterbit.application.commandline

Examples of org.jitterbit.application.commandline.CommandLineParser


     *             if the command-line arguments are invalid.
     */
    public static void parseCommandLineArguments(String[] args) throws CommandLineParsingException {
        ApplicationLog.getMainLogger().info("ClientPlatform received command line arguments: " + Arrays.toString(args));
        if (args.length > 0) {
            CommandLineParser parser = (CommandLineParser) getAppContext().getBean("platform.CommandLineParser");
            parser.parse(args);
        }
    }
View Full Code Here


* @author Torgil Zethson
*/
public class CommandLineParserBuilder {

    public static CommandLineParser createCommandLineParser(JitterPackDeployer deployer) {
        CommandLineParser p = new JakartaCLICommandLineParser();
        p.addOption(new DirectoryOption(deployer));
        p.addOption(new JitterPackOption(deployer));
        p.addOption(new RecursiveOption(deployer));
        p.addOption(new ServerOption(deployer));
        p.addOption(new PortOption());
        p.addOption(new UserOption(deployer));
        p.addOption(new PasswordOption(deployer));
        p.addOption(new PasswordHashOption(deployer));
        p.addOption(new QuietOption(deployer));
        p.addOption(new BackupOption(deployer));
        return p;
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.application.commandline.CommandLineParser

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.