Package net.sourceforge.javautil.ui.command.UICommandArguments

Examples of net.sourceforge.javautil.ui.command.UICommandArguments.PassedOption


  public Object execute(GroovyCLIContext ctx, CommandLineArgumentsStandard arguments) {
    EntryPoint point = (EntryPoint) ctx.getUI().getDomain().getVariable("entry");
    EntryPointType type = (EntryPointType) ctx.getUI().getDomain().getVariable("epcli");
   
    ClassLoader original = null;
    PassedOption cl = arguments.getOption("cl");
    if (cl != null && ctx.getUI().getDomain().getVariable((String) cl.getValue()) instanceof ClassLoader) {
      original = Thread.currentThread().getContextClassLoader();
      Thread.currentThread().setContextClassLoader((ClassLoader)ctx.getUI().getDomain().getVariable((String) cl.getValue()));
    }
   
    String mainClass = (String) arguments.getArgument(0).getValue();
   
    try {
View Full Code Here


          if (offset < flags.length) {
            value = arguments.isEnabled(def);
          }
        } else {
          Option opt = options[offset];
          PassedOption option = arguments.getOption(def);
          value = option == null ? null : option.getValue();
        }
      } else {
        PassedArgument pa = arguments.getArgument(a);
        if (pa == null) throw new IllegalArgumentException("Missing argument: " + a);
       
View Full Code Here

TOP

Related Classes of net.sourceforge.javautil.ui.command.UICommandArguments.PassedOption

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.