public static class RunnerManager.Builder extends Object
RunnerManager.| Constructor and Description |
|---|
Builder(File workingDirectory,
com.github.eirslett.maven.plugins.frontend.lib.ProxyConfig proxyConfig)
Create the builder with common configuration for all the tools
provided.
|
| Modifier and Type | Method and Description |
|---|---|
RunnerManager.Builder |
autodetectTools(boolean autodetectTools)
Enables or disables local tool detection, the default value is
false. |
RunnerManager |
build()
Creates the
RunnerManager instance. |
RunnerManager.Builder |
frontendToolsLocator(com.vaadin.flow.server.frontend.FrontendToolsLocator toolsLocator)
Sets the custom
FrontendToolsLocator to look for locally
installed tools and verify that they are working. |
RunnerManager.Builder |
localInstallations(File nodePath,
File yarnPath)
Sets the paths to the local installation of the tools.
|
RunnerManager.Builder |
npmRegistryUrl(String npmRegistryUrl)
Sets the custom registry url to be used when running yarn.
|
RunnerManager.Builder |
versionsToDownload(String nodeVersion,
String yarnVersion)
Sets the versions of the tools to download, if no local tools are
installed.
|
public Builder(File workingDirectory, com.github.eirslett.maven.plugins.frontend.lib.ProxyConfig proxyConfig)
workingDirectory - the directory to install and run the tools intoproxyConfig - the configuration used when installing and running the
toolspublic RunnerManager.Builder versionsToDownload(String nodeVersion, String yarnVersion)
nodeVersion - node version to download, if the local installation is
missingyarnVersion - yarn version to download, if the local installation is
missingpublic RunnerManager.Builder localInstallations(File nodePath, File yarnPath)
versionsToDownload(String, String)} are made.nodePath - the path to locally installed node or null if the
tool is absentyarnPath - the path to locally installed yarn or null if the
tool is absentpublic RunnerManager.Builder npmRegistryUrl(String npmRegistryUrl)
npmRegistryUrl - the custom URL to NPM registry or null for default
registrypublic RunnerManager.Builder frontendToolsLocator(com.vaadin.flow.server.frontend.FrontendToolsLocator toolsLocator)
FrontendToolsLocator to look for locally
installed tools and verify that they are working.toolsLocator - local frontend tools locator, not nullpublic RunnerManager.Builder autodetectTools(boolean autodetectTools)
false.autodetectTools - when true, the manager searches the current system
for installed toolspublic RunnerManager build()
RunnerManager instance. If there is no data on
any tool specified (no local path, no version to download and
automatic detection is turned off), an exception is thrown.RunnerManager instanceIllegalStateException - if there is no data on any tool (node, yarn) is specified
that allows to locate itCopyright © 2000–2025 Vaadin Ltd. All rights reserved.