public class Command
extends java.lang.Object
Wrapper around an executable command outside the JVM.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PROGRAM_FILES_KEY |
| Constructor and Description |
|---|
Command(java.lang.String path,
java.lang.String executable)
Represents the latest version of the executable found by scanning subfolders of path.
|
| Modifier and Type | Method and Description |
|---|---|
void |
execute(java.lang.String... arguments)
Runs the executable outside the JVM by calling Runtime.exec().
|
boolean |
isAvailable()
Tests if an executable file was found in the path.
|
public static final java.lang.String PROGRAM_FILES_KEY
Copyright © 2018 Write Them First!. All rights reserved.