org.gcube.datatransformation.datatransformationlibrary.utils
Class CLIUtils
java.lang.Object
org.gcube.datatransformation.datatransformationlibrary.utils.CLIUtils
public class CLIUtils
- extends Object
- Author:
- Dimitris Katris, NKUA
Utility class which facilitates the execution of command line programs.
|
Method Summary |
static int |
executeCommand(String command)
Executes a command in the underlying shell. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CLIUtils
public CLIUtils()
executeCommand
public static int executeCommand(String command)
throws Exception
- Executes a command in the underlying shell.
- Parameters:
command - The command which will be executed.
- Returns:
- The return code of the executed command.
- Throws:
Exception - If the command could not be performed.
Copyright © 2012. All Rights Reserved.