Examples of CommandLineOption


Examples of org.apache.qpid.utils.CommandLineOption

    public boolean checkoptionsetting(String option_letter) {
        Map map = info.getCommandLineOptionParser().getAlloptions();
        if (map == null)
            return false;
        CommandLineOption option = (CommandLineOption) map.get(option_letter);
        if (option == null)
            return false;
        String value = option.getOptionType();

        if (value != null)
            return true;
        else
            return false;
View Full Code Here

Examples of org.gradle.api.internal.tasks.CommandLineOption

            Set<Task> tasks = selector.getTasks();
            Map<String, JavaMethod<Task, ?>> options = new HashMap<String, JavaMethod<Task, ?>>();
            if (tasks.size() == 1) {
                for (Class<?> type = tasks.iterator().next().getClass(); type != Object.class; type = type.getSuperclass()) {
                    for (Method method : type.getDeclaredMethods()) {
                        CommandLineOption commandLineOption = method.getAnnotation(CommandLineOption.class);
                        if (commandLineOption != null) {
                            commandLineParser.option(commandLineOption.options()).hasDescription(commandLineOption.description());
                            options.put(commandLineOption.options()[0], new JavaMethod<Task, Object>(Task.class, Object.class, method));
                        }
                    }
                }
            }
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.