com.vaadin.hilla.engine.commandrunner.
Class MavenRunner
All Implemented Interfaces:
Runs a Maven command.
-
Field Summary
Fields inherited from interface com.vaadin.hilla.engine.commandrunner.CommandRunner
IS_WINDOWS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]
Get the arguments to use when running the command.
Get the directory to run the command in.
Get the executables to try, in order of preference.
static Optional<CommandRunner>
forProject
(File projectDir, String... args) Creates a Maven runner for the given project directory.
org.slf4j.Logger
Get the logger to use.
String[]
Get the arguments to use when testing if the command is available.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.vaadin.hilla.engine.commandrunner.CommandRunner
createProcessBuilder, environment, getCurrentProcessInfo, run, run
-
Constructor Details
-
MavenRunner
Creates a Maven runner.
Parameters:
projectDir
- the project directoryargs
- the arguments to pass to Maven
-
-
Method Details
-
forProject
Creates a Maven runner for the given project directory.
Parameters:
projectDir
- the project directoryargs
- the arguments to pass to MavenReturns:
a Maven runner if the project directory contains a Maven project, an empty optional otherwise
-
arguments
Description copied from interface:
CommandRunner
Get the arguments to use when running the command.
Specified by:
arguments
in interfaceCommandRunner
Returns:
the arguments to use when running the command
-
testArguments
Description copied from interface:
CommandRunner
Get the arguments to use when testing if the command is available.
Specified by:
testArguments
in interfaceCommandRunner
Returns:
the arguments to use when testing if the command is available
-
getLogger
public org.slf4j.Logger getLogger()Description copied from interface:
CommandRunner
Get the logger to use.
Specified by:
getLogger
in interfaceCommandRunner
Returns:
the logger to use
-
currentDirectory
Description copied from interface:
CommandRunner
Get the directory to run the command in.
Specified by:
currentDirectory
in interfaceCommandRunner
Returns:
the directory to run the command in
-
executables
Description copied from interface:
CommandRunner
Get the executables to try, in order of preference.
Specified by:
executables
in interfaceCommandRunner
Returns:
the executables to try
-