Class CreateExtensionCommandHandler
- java.lang.Object
-
- io.quarkus.devtools.commands.handlers.CreateExtensionCommandHandler
-
public class CreateExtensionCommandHandler extends Object
Instances of this class are thread-safe. They create a new project extracting all the necessary properties from an instance ofQuarkusCommandInvocation.
-
-
Constructor Summary
Constructors Constructor Description CreateExtensionCommandHandler(String groupId, String artifactId, QuarkusExtensionCodestartProjectInput input, Path newExtensionDir)CreateExtensionCommandHandler(String groupId, String artifactId, QuarkusExtensionCodestartProjectInput input, Path newExtensionDir, Path extensionsParentDir, Path itTestParentDir, Path bomDir)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PathcheckPomExists(Path dir)QuarkusCommandOutcomeexecute(io.quarkus.devtools.messagewriter.MessageWriter log)Map<String,Object>getData()static org.apache.maven.model.ModelreadPom(Path dir)
-
-
-
Constructor Detail
-
CreateExtensionCommandHandler
public CreateExtensionCommandHandler(String groupId, String artifactId, QuarkusExtensionCodestartProjectInput input, Path newExtensionDir)
-
-
Method Detail
-
execute
public QuarkusCommandOutcome execute(io.quarkus.devtools.messagewriter.MessageWriter log) throws QuarkusCommandException
- Throws:
QuarkusCommandException
-
checkPomExists
public static Path checkPomExists(Path dir) throws QuarkusCommandException
- Throws:
QuarkusCommandException
-
readPom
public static org.apache.maven.model.Model readPom(Path dir) throws QuarkusCommandException
- Throws:
QuarkusCommandException
-
-