Package io.quarkus.devtools.project
Enum BuildTool
- java.lang.Object
-
- java.lang.Enum<BuildTool>
-
- io.quarkus.devtools.project.BuildTool
-
- All Implemented Interfaces:
Serializable,Comparable<BuildTool>
public enum BuildTool extends Enum<BuildTool>
An enum of build tools, such as Maven and Gradle.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description GRADLEGradle build toolGRADLE_KOTLIN_DSLGradle build tool with Kotlin DSLJBANGJBang build toolMAVENMaven build tool
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ExtensionManagercreateExtensionManager(Path projectDirPath, ExtensionCatalog catalog)static BuildToolfindTool(String tool)static BuildToolfromProject(Path projectDirPath)Determine the build tool from the contents of an existing project (pom.xml, build.gradle.kts, build.gradle, etc.)StringgetBuildDirectory()String[]getBuildFiles()StringgetDependenciesFile()StringgetGitIgnoreEntries()StringgetKey()static BuildToolvalueOf(String name)Returns the enum constant of this type with the specified name.static BuildTool[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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 nameNullPointerException- if the argument is null
-
getGitIgnoreEntries
public String getGitIgnoreEntries()
- Returns:
\n-separated lines to add to a.gitignorefile
-
getBuildFiles
public String[] getBuildFiles()
-
getDependenciesFile
public String getDependenciesFile()
-
getBuildDirectory
public String getBuildDirectory()
-
createExtensionManager
public ExtensionManager createExtensionManager(Path projectDirPath, ExtensionCatalog catalog)
-
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;
-
-