public class CommandFinder extends Object
Wrapper around an executable command outside the JVM.
It enables to look for the latest version based on folder names.
| Constructor and Description |
|---|
CommandFinder(String path,
String executable)
Represents the latest version of the executable found by scanning subfolders of path.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<ExecutableCommand> |
executableCommand() |
Stream<String> |
searchForAllExe()
Finds all versions of an installed software.
|
Optional<String> |
searchForExe()
Finds the latest version of an installed software.
|
public Optional<ExecutableCommand> executableCommand()
public Optional<String> searchForExe()
Finds the latest version of an installed software.
Sort order is based on folder names, assuming that latest version have a greater version number.
Copyright © 2018–2019 Write Them First!. All rights reserved.