Package com.vaadin.flow.server.frontend
Class DevBundleUtils
java.lang.Object
com.vaadin.flow.server.frontend.DevBundleUtils
Helpers related to the development bundle.
For internal use only. May be renamed or removed in a future release.
-
Method Summary
Modifier and TypeMethodDescriptionstatic URLfindBundleFile(File projectDir, String filename) Finds the given file inside the current development bundle.static StringfindBundleStatsJson(File projectDir) Get the stats.json for the application specific development bundle.static FilegetDevBundleFolder(File projectDir) Get the folder where an application specific bundle is stored.
-
Method Details
-
findBundleFile
Finds the given file inside the current development bundle.- Parameters:
projectDir- the project root folderfilename- the file name inside the bundle- Returns:
- a URL referring to the file inside the bundle or
nullif the file was not found - Throws:
IOException
-
getDevBundleFolder
Get the folder where an application specific bundle is stored.- Parameters:
projectDir- the project base directory- Returns:
- the bundle directory
-
findBundleStatsJson
Get the stats.json for the application specific development bundle.- Parameters:
projectDir- the project base directory- Returns:
- stats.json content or
nullif not found - Throws:
IOException- if an I/O exception occurs.
-