com.vaadin.hilla.engine.commandrunner.
Class GradleRunner
All Implemented Interfaces:
Runs a Gradle 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 Gradle 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
-
GradleRunner
Creates a Gradle runner.
Parameters:
projectDir
- the project directoryargs
-
-
-
Method Details
-
forProject
Creates a Gradle runner for the given project directory.
Parameters:
projectDir
- the project directoryReturns:
a Gradle runner if the project directory contains a Gradle 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
-