Package org.jitterbit.application.commandline

Examples of org.jitterbit.application.commandline.CommandLineOptionException


    }

    @Override
    public void handleArgument(String value) throws CommandLineOptionException {
        if (StringUtils.isEmpty(value)) {
            throw new CommandLineOptionException("Missing value for the -" + getName() + " option", false);
        }
        ClientUi.setStartupView(value);
     }
View Full Code Here


        if ((value == null) || (value.length() == 0)) {
            return;
        }
        File file = new File(value);
        if (!file.exists() || !file.isFile()) {
            CommandLineOptionException ex = new CommandLineOptionException(
                            "Invalid value of the command line argument -" + getName() +
                            ": " + value + ". The specified file does not exist or " +
                                    "is not a file.", false);
            ApplicationLog.getMainLogger().throwing(getClass().getName(), "handleArgument", ex);
            throw ex;
View Full Code Here

            return;
        }
        File f = new File(value);
        if (!f.exists()) {
            String msg = "The file " + value + " does not exist";
            throw new CommandLineOptionException(msg, true);
        }
        if (f.isDirectory()) {
            String msg = "The path " + value + " does not represent a file.";
            throw new CommandLineOptionException(msg, true);
        }
        deployer.setIndividualFile(f);
    }
View Full Code Here

            return;
        }
        try {
            JitterPackDeployer.setPort(Integer.parseInt(value));
        } catch (NumberFormatException e) {
            throw new CommandLineOptionException("Invalid port number: " + value, true);
        }
    }
View Full Code Here

TOP

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

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.