Enum BuildTool

    • Enum Constant Detail

      • MAVEN

        public static final BuildTool MAVEN
        Maven build tool
      • GRADLE

        public static final BuildTool GRADLE
        Gradle build tool
      • GRADLE_KOTLIN_DSL

        public static final BuildTool GRADLE_KOTLIN_DSL
        Gradle build tool with Kotlin DSL
      • JBANG

        public static final BuildTool JBANG
        JBang build tool
    • Method Detail

      • values

        public static BuildTool[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (BuildTool c : BuildTool.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static BuildTool valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getGitIgnoreEntries

        public String getGitIgnoreEntries()
        Returns:
        \n-separated lines to add to a .gitignore file
      • getBuildFiles

        public String[] getBuildFiles()
      • getDependenciesFile

        public String getDependenciesFile()
      • getBuildDirectory

        public String getBuildDirectory()
      • getKey

        public String getKey()
      • fromProject

        public static BuildTool fromProject​(Path projectDirPath)
        Determine the build tool from the contents of an existing project (pom.xml, build.gradle.kts, build.gradle, etc.)
        Parameters:
        projectDirPath - The Path to an existing project
        Returns:
        the BuildTool enumeration matched from filesystem content or null;