com.vaadin.flow.server.frontend.
Class ProdBundleUtils
Helpers related to the production bundle.
For internal use only. May be renamed or removed in a future release.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
compressBundle
(File projectDir, File prodBundleFolder) Compress the prod bundle at give location into src/main/bundles.
static String
findBundleStatsJson
(File projectDir, ClassFinder finder) Get the stats.json for the application specific production bundle or from the default bundle if it exists.
static File
getProdBundle
(File projectDir) Get the application specific production bundle file.
static void
unpackBundle
(File projectDir, File prodBundleFolder) Unpack the compressed prod bundle from src/main/bundles if it exists into the given location.
-
Method Details
-
getProdBundle
Get the application specific production bundle file.
Parameters:
projectDir
- the project base directoryReturns:
the bundle directory
-
findBundleStatsJson
Get the stats.json for the application specific production bundle or from the default bundle if it exists.
Parameters:
projectDir
- the project base directoryfinder
- class finderReturns:
stats.json content or
null
if not foundThrows:
IOException
- if an I/O exception occurs. -
compressBundle
Compress the prod bundle at give location into src/main/bundles.
Parameters:
projectDir
- current project root directoryprodBundleFolder
- prod bundle location -
unpackBundle
Unpack the compressed prod bundle from src/main/bundles if it exists into the given location.
Parameters:
projectDir
- current project root directoryprodBundleFolder
- unpacked prod bundle location
-