Class BuildToolHelper

java.lang.Object
io.quarkus.bootstrap.utils.BuildToolHelper

public class BuildToolHelper extends Object
Helper class used to expose build tool used by the 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-jar this method will return the current directory, since the source project might not be available anymore.

      Returns:
      application module directory, never null
    • getProjectDir

      public static Path getProjectDir(Path p)
    • findBuildTool

      public static BuildToolHelper.BuildTool findBuildTool(Path project)
    • isMavenProject

      public static boolean isMavenProject(Path project)
    • isGradleProject

      public static boolean isGradleProject(Path project)
    • getBuildFile

      public static Path getBuildFile(Path project, BuildToolHelper.BuildTool tool)
    • enableGradleAppModelForTest

      public static io.quarkus.bootstrap.model.ApplicationModel enableGradleAppModelForTest(Path projectRoot) throws IOException, io.quarkus.bootstrap.resolver.AppModelResolverException
      Throws:
      IOException
      io.quarkus.bootstrap.resolver.AppModelResolverException
    • enableGradleAppModelForProdMode

      public static io.quarkus.bootstrap.model.ApplicationModel enableGradleAppModelForProdMode(Path projectRoot) throws IOException, io.quarkus.bootstrap.resolver.AppModelResolverException
      Throws:
      IOException
      io.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:
      IOException
      io.quarkus.bootstrap.resolver.AppModelResolverException
    • enableGradleAppModelForDevMode

      public static io.quarkus.bootstrap.model.ApplicationModel enableGradleAppModelForDevMode(Path projectRoot) throws IOException, io.quarkus.bootstrap.resolver.AppModelResolverException
      Throws:
      IOException
      io.quarkus.bootstrap.resolver.AppModelResolverException