Examples of RunCommand


Examples of org.foo.shell.commands.RunCommand

      "obr-repository {list-urls|add-url <url> |remove-url <url>|list}"));
    commands.put("obr-resolver", new ResolverCommand().setContext(context).setHelp("obr-resolver <resource-filter>"));
    commands.put("dpa", new DeploymentPackageCommand().setContext(context).setHelp("dpa {list|install <url>|uninstall <name>}"));
    commands.put("cm", new ConfigAdminCommand().setContext(context).setHelp("cm {list|add <pid> [key=value ...]|add-factory <pid> [key=value]|remove-factory <pid>|remove <pid>}"));
    commands.put("type", new MetaDataCommand().setContext(context).setHelp("type <bundle-id>"));
    RunCommand run = new RunCommand();
    commands.put("run", run.setContext(context).setHelp("run <script-file>" ) );

    ExecuteCommand exec = new ExecuteCommand(commands);
    run.setExecuteCommand(exec);
   
    HistoryDecorator command = new HistoryDecorator(exec, readHistory(context));
    context.addFrameworkListener(command);
    context.addBundleListener(command);
    m_history = command;
View Full Code Here

Examples of org.python.pydev.debug.model.remote.RunCommand

        // Sending python exceptions and property trace state before sending run command
        this.onSetConfiguredExceptions();
        this.onSetPropertyTraceConfiguration();

        // Send the run command, and we are off
        RunCommand run = new RunCommand(this);
        this.postCommand(run);
    }
View Full Code Here

Examples of org.springframework.boot.cli.command.run.RunCommand

  public void setTimeout(long timeout) {
    this.timeout = timeout;
  }

  public String run(String... args) throws Exception {
    Future<RunCommand> future = submitCommand(new RunCommand(), args);
    this.commands.add(future.get(this.timeout, TimeUnit.MILLISECONDS));
    return getOutput();
  }
View Full Code Here

Examples of org.springframework.boot.cli.command.run.RunCommand

  public OutputCapture output = new OutputCapture();

  @Test
  public void debugAddsAutoconfigReport() {
    CommandRunner runner = new CommandRunner("spring");
    runner.addCommand(new RunCommand());
    // -d counts as "debug" for the spring command, but not for the
    // LoggingApplicationListener
    runner.runAndHandleErrors("run", "samples/app.groovy", "-d");
    assertTrue(this.output.toString().contains("Negative matches:"));
  }
View Full Code Here

Examples of org.springframework.boot.cli.command.run.RunCommand

  }

  @Test
  public void debugSwitchedOffForAppArgs() {
    CommandRunner runner = new CommandRunner("spring");
    runner.addCommand(new RunCommand());
    runner.runAndHandleErrors("run", "samples/app.groovy", "--", "-d");
    assertFalse(this.output.toString().contains("Negative matches:"));
  }
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.