Package io.quarkus.deployment.util
Class WebJarUtil
- java.lang.Object
-
- io.quarkus.deployment.util.WebJarUtil
-
public class WebJarUtil extends Object
Utility for Web resource related operations
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PathcopyResourcesForDevOrTest(LiveReloadBuildItem liveReloadBuildItem, CurateOutcomeBuildItem curateOutcomeBuildItem, LaunchModeBuildItem launchMode, io.quarkus.maven.dependency.ResolvedDependency resourcesArtifact, String rootFolderInJar)static PathcopyResourcesForDevOrTest(LiveReloadBuildItem liveReloadBuildItem, CurateOutcomeBuildItem curateOutcomeBuildItem, LaunchModeBuildItem launchMode, io.quarkus.maven.dependency.ResolvedDependency resourcesArtifact, String rootFolderInJar, boolean useDefaultQuarkusBranding)static Map<String,byte[]>copyResourcesForProduction(CurateOutcomeBuildItem curateOutcomeBuildItem, io.quarkus.maven.dependency.ResolvedDependency artifact, String rootFolderInJar)static Map<String,byte[]>copyResourcesForProduction(CurateOutcomeBuildItem curateOutcomeBuildItem, io.quarkus.maven.dependency.ResolvedDependency artifact, String rootFolderInJar, boolean useDefaultQuarkusBranding)static PathcreateResourcesDirectory(io.quarkus.maven.dependency.ResolvedDependency userApplication, io.quarkus.maven.dependency.ResolvedDependency resourcesArtifact)static io.quarkus.maven.dependency.ResolvedDependencygetAppArtifact(CurateOutcomeBuildItem curateOutcomeBuildItem, String groupId, String artifactId)static voidhotReloadBrandingChanges(CurateOutcomeBuildItem curateOutcomeBuildItem, LaunchModeBuildItem launchMode, io.quarkus.maven.dependency.ResolvedDependency resourcesArtifact, Set<String> hotReloadChanges)static voidhotReloadBrandingChanges(CurateOutcomeBuildItem curateOutcomeBuildItem, LaunchModeBuildItem launchMode, io.quarkus.maven.dependency.ResolvedDependency resourcesArtifact, Set<String> hotReloadChanges, boolean useDefaultQuarkusBranding)static voidupdateFile(Path original, byte[] newContent)static StringupdateUrl(String original, String path, String lineStartsWith, String format)static voidupdateUrl(Path original, String path, String lineStartsWith, String format)
-
-
-
Method Detail
-
hotReloadBrandingChanges
public static void hotReloadBrandingChanges(CurateOutcomeBuildItem curateOutcomeBuildItem, LaunchModeBuildItem launchMode, io.quarkus.maven.dependency.ResolvedDependency resourcesArtifact, Set<String> hotReloadChanges) throws IOException
- Throws:
IOException
-
hotReloadBrandingChanges
public static void hotReloadBrandingChanges(CurateOutcomeBuildItem curateOutcomeBuildItem, LaunchModeBuildItem launchMode, io.quarkus.maven.dependency.ResolvedDependency resourcesArtifact, Set<String> hotReloadChanges, boolean useDefaultQuarkusBranding) throws IOException
- Throws:
IOException
-
copyResourcesForDevOrTest
public static Path copyResourcesForDevOrTest(LiveReloadBuildItem liveReloadBuildItem, CurateOutcomeBuildItem curateOutcomeBuildItem, LaunchModeBuildItem launchMode, io.quarkus.maven.dependency.ResolvedDependency resourcesArtifact, String rootFolderInJar) throws IOException
- Throws:
IOException
-
copyResourcesForDevOrTest
public static Path copyResourcesForDevOrTest(LiveReloadBuildItem liveReloadBuildItem, CurateOutcomeBuildItem curateOutcomeBuildItem, LaunchModeBuildItem launchMode, io.quarkus.maven.dependency.ResolvedDependency resourcesArtifact, String rootFolderInJar, boolean useDefaultQuarkusBranding) throws IOException
- Throws:
IOException
-
copyResourcesForProduction
public static Map<String,byte[]> copyResourcesForProduction(CurateOutcomeBuildItem curateOutcomeBuildItem, io.quarkus.maven.dependency.ResolvedDependency artifact, String rootFolderInJar) throws IOException
- Throws:
IOException
-
copyResourcesForProduction
public static Map<String,byte[]> copyResourcesForProduction(CurateOutcomeBuildItem curateOutcomeBuildItem, io.quarkus.maven.dependency.ResolvedDependency artifact, String rootFolderInJar, boolean useDefaultQuarkusBranding) throws IOException
- Throws:
IOException
-
updateFile
public static void updateFile(Path original, byte[] newContent) throws IOException
- Throws:
IOException
-
updateUrl
public static void updateUrl(Path original, String path, String lineStartsWith, String format) throws IOException
- Throws:
IOException
-
updateUrl
public static String updateUrl(String original, String path, String lineStartsWith, String format)
-
getAppArtifact
public static io.quarkus.maven.dependency.ResolvedDependency getAppArtifact(CurateOutcomeBuildItem curateOutcomeBuildItem, String groupId, String artifactId)
-
createResourcesDirectory
public static Path createResourcesDirectory(io.quarkus.maven.dependency.ResolvedDependency userApplication, io.quarkus.maven.dependency.ResolvedDependency resourcesArtifact)
-
-