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 URL
findBundleFile
(File projectDir, String filename) Finds the given file inside the current development bundle.static String
findBundleStatsJson
(File projectDir) Get the stats.json for the application specific development bundle.static File
getDevBundleFolder
(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
null
if 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
null
if not found - Throws:
IOException
- if an I/O exception occurs.
-