public class BuildFrontendUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static ClassFinder |
getClassFinder(List<String> classpathElements)
creates a
ClassFinder from a List of classpathElements. |
static File |
getTokenFile(PluginAdapterBase adapter)
Location of the Token File.
|
static void |
prepareFrontend(PluginAdapterBase adapter)
Prepares the Frontend
|
static File |
propagateBuildInfo(PluginAdapterBase adapter)
Propagates the BuildInfo.
|
static void |
runFrontendBuild(PluginAdapterBase adapter)
Execute the frontend build with the wanted build system.
|
static void |
runNodeUpdater(PluginAdapterBuild adapter)
runs the node-Updater.
|
static void |
runVite(PluginAdapterBase adapter,
FrontendTools frontendTools)
Runs the Vite build
|
static void |
runWebpack(PluginAdapterBase adapter,
FrontendTools frontendTools)
Runs the Webpack build
|
static void |
updateBuildFile(PluginAdapterBuild adapter)
Add the devMode token to build token file so we don't try to start the
dev server.
|
public static ClassFinder getClassFinder(List<String> classpathElements)
ClassFinder from a List of classpathElements.classpathElements - the list of classpath elementsClassFinder that uses the classpathElementspublic static File getTokenFile(PluginAdapterBase adapter)
adapter - - the PluginAdapterBase.File the Token Filepublic static void prepareFrontend(PluginAdapterBase adapter) throws IOException, ExecutionFailedException, URISyntaxException
adapter - - the PluginAdapterBase.IOException - - Could not forceMkdir(adapter.generatedFolder());ExecutionFailedException - - While NodeTasks.execute()URISyntaxException - - Could not build an URI from nodeDownloadRoot().public static File propagateBuildInfo(PluginAdapterBase adapter)
adapter - - the PluginAdapterBase.File.public static void runNodeUpdater(PluginAdapterBuild adapter) throws ExecutionFailedException, URISyntaxException
adapter - - the PluginAdapterBase.ExecutionFailedException - - a ExecutionFailedException.URISyntaxException - - - Could not build an URI from nodeDownloadRoot().public static void runFrontendBuild(PluginAdapterBase adapter) throws TimeoutException, URISyntaxException
adapter - - the PluginAdapterBase.TimeoutException - - while running build systemURISyntaxException - - while parsing nodeDownloadRoot()) to URIpublic static void runWebpack(PluginAdapterBase adapter, FrontendTools frontendTools) throws TimeoutException, URISyntaxException
adapter - - the PluginAdapterBase.frontendTools - - frontend tools access objectTimeoutException - - while run webpackURISyntaxException - - while parsing nodeDownloadRoot()) to URIpublic static void runVite(PluginAdapterBase adapter, FrontendTools frontendTools) throws TimeoutException, URISyntaxException
adapter - - the PluginAdapterBase.frontendTools - - frontend tools access objectTimeoutException - - while running viteURISyntaxException - - while parsing nodeDownloadRoot()) to URIpublic static void updateBuildFile(PluginAdapterBuild adapter)
adapter - - the PluginAdapterBase.Copyright © 2000–2023 Vaadin Ltd. All rights reserved.