Package io.quarkus.devtools.project
Enum Class BuildTool
- All Implemented Interfaces:
Serializable,Comparable<BuildTool>,Constable
An enum of build tools, such as Maven and Gradle.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionGradle build toolGradle build tool with Kotlin DSLJBang build toolMaven build tool -
Method Summary
Modifier and TypeMethodDescriptioncreateExtensionManager(Path projectDirPath, io.quarkus.registry.catalog.ExtensionCatalog catalog) static BuildToolstatic BuildToolfromProject(Path projectDirPath) Determine the build tool from the contents of an existing project (pom.xml, build.gradle.kts, build.gradle, etc.)String[]getKey()booleanstatic BuildToolReturns the enum constant of this class with the specified name.static BuildTool[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MAVEN
Maven build tool -
GRADLE
Gradle build tool -
GRADLE_KOTLIN_DSL
Gradle build tool with Kotlin DSL -
JBANG
JBang build tool
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
isAnyGradle
public boolean isAnyGradle() -
getGitIgnoreEntries
- Returns:
\n-separated lines to add to a.gitignorefile
-
getBuildFiles
-
getDependenciesFile
-
getBuildDirectory
-
createExtensionManager
public ExtensionManager createExtensionManager(Path projectDirPath, io.quarkus.registry.catalog.ExtensionCatalog catalog) -
getKey
-
fromProject
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;
-
findTool
-