You're viewing an older version of Vaadin JavaDoc. Please see version 24.7.0 for the latest.
com.vaadin.flow.server.frontend.

Class DevBundleUtils

java.lang.Object
com.vaadin.flow.server.frontend.DevBundleUtils
public class DevBundleUtils extends Object

Helpers related to the development bundle.

For internal use only. May be renamed or removed in a future release.

  • Method Details

    • findBundleFile

      public static URL findBundleFile(File projectDir, String buildFolder, String filename) throws IOException

      Finds the given file inside the current development bundle.

      Parameters:

      projectDir - the project root folder

      buildFolder - the project build folder name

      filename - 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

      public static File getDevBundleFolder(File projectDir, String buildFolder)

      Get the folder where an application specific bundle is stored.

      Parameters:

      projectDir - the project base directory

      buildFolder - the project build folder name

      Returns:

      the bundle directory

    • findBundleStatsJson

      public static String findBundleStatsJson(File projectDir, String buildFolder) throws IOException

      Get the stats.json for the application specific development bundle.

      Parameters:

      projectDir - the project base directory

      buildFolder - the project build folder name

      Returns:

      stats.json content or null if not found

      Throws:

      IOException - if an I/O exception occurs.

    • compressBundle

      public static void compressBundle(File projectDir, File devBundleFolder)

      Compress the dev bundle at give location into src/main/bundles.

      Parameters:

      projectDir - current project root directory

      devBundleFolder - dev bundle location

    • unpackBundle

      public static void unpackBundle(File projectDir, File devBundleFolder)

      Unpack the compressed dev bundle from src/main/bundles if it exists into the given location.

      Parameters:

      projectDir - current project root directory

      devBundleFolder - unpacked dev bundle location