org.sonar.api.utils.command
Class CommandExecutor
java.lang.Object
org.sonar.api.utils.command.CommandExecutor
public final class CommandExecutor
- extends Object
Synchronously execute a native command line. It's much more limited than the Apache Commons Exec library.
For example it does not allow to get process output, to run asynchronously or to automatically quote
command-line arguments.
- Since:
- 2.7
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
create
public static CommandExecutor create()
execute
public int execute(Command command,
long timeoutMilliseconds)
Copyright © 2009-2012 SonarSource. All Rights Reserved.