Package io.quarkus.bootstrap.utils
Class BuildToolHelper
java.lang.Object
io.quarkus.bootstrap.utils.BuildToolHelper
Helper class used to expose build tool used by the project
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic io.quarkus.bootstrap.model.ApplicationModelstatic io.quarkus.bootstrap.model.ApplicationModelenableGradleAppModelForDevMode(Path projectRoot) static io.quarkus.bootstrap.model.ApplicationModelenableGradleAppModelForProdMode(Path projectRoot) static io.quarkus.bootstrap.model.ApplicationModelenableGradleAppModelForTest(Path projectRoot) static BuildToolHelper.BuildToolfindBuildTool(Path project) static PathgetApplicationModuleOrCurrentDirectory(io.quarkus.bootstrap.model.ApplicationModel appModel) Returns the application module directory, if the application is built from a source project.static PathgetBuildFile(Path project, BuildToolHelper.BuildTool tool) static Pathstatic booleanisGradleProject(Path project) static booleanisMavenProject(Path project)
-
Method Details
-
getApplicationModuleOrCurrentDirectory
public static Path getApplicationModuleOrCurrentDirectory(io.quarkus.bootstrap.model.ApplicationModel appModel) Returns the application module directory, if the application is built from a source project. For a single module project it will the project directory. For a multimodule project, it will be the directory of the application module.During re-augmentation of applications packaged as
mutable-jarthis method will return the current directory, since the source project might not be available anymore.- Returns:
- application module directory, never null
-
getProjectDir
-
findBuildTool
-
isMavenProject
-
isGradleProject
-
getBuildFile
-
enableGradleAppModelForTest
public static io.quarkus.bootstrap.model.ApplicationModel enableGradleAppModelForTest(Path projectRoot) throws IOException, io.quarkus.bootstrap.resolver.AppModelResolverException - Throws:
IOExceptionio.quarkus.bootstrap.resolver.AppModelResolverException
-
enableGradleAppModelForProdMode
public static io.quarkus.bootstrap.model.ApplicationModel enableGradleAppModelForProdMode(Path projectRoot) throws IOException, io.quarkus.bootstrap.resolver.AppModelResolverException - Throws:
IOExceptionio.quarkus.bootstrap.resolver.AppModelResolverException
-
enableGradleAppModel
public static io.quarkus.bootstrap.model.ApplicationModel enableGradleAppModel(Path projectRoot, String mode, List<String> jvmArgs, String... tasks) throws IOException, io.quarkus.bootstrap.resolver.AppModelResolverException - Throws:
IOExceptionio.quarkus.bootstrap.resolver.AppModelResolverException
-
enableGradleAppModelForDevMode
public static io.quarkus.bootstrap.model.ApplicationModel enableGradleAppModelForDevMode(Path projectRoot) throws IOException, io.quarkus.bootstrap.resolver.AppModelResolverException - Throws:
IOExceptionio.quarkus.bootstrap.resolver.AppModelResolverException
-