forked from quarkusio/quarkus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is part of quarkusio#8178 The result is just a tiny bit better, this is just a step in my journey. Having more consistency and readability will help in the refactoring process.. - Use only the values in `QuarkusCommandInvocation`, because having the Properties and the Values made it confusing - Make `QuarkusCommandInvocation` more consistent by making it partially immutable (only values are mutable) and enforcing non null params in the constructor - Remove legacy @deprecated stuff
- Loading branch information
1 parent
8b7cfe6
commit 1af4c01
Showing
28 changed files
with
218 additions
and
376 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ | |
import org.aesh.io.Resource; | ||
|
||
import io.quarkus.cli.commands.writer.FileProjectWriter; | ||
import io.quarkus.platform.tools.config.QuarkusPlatformConfig; | ||
|
||
/** | ||
* @author <a href="mailto:[email protected]">Ståle Pedersen</a> | ||
|
@@ -42,11 +43,12 @@ public CommandResult execute(CommandInvocation commandInvocation) { | |
|
||
if (path != null) { | ||
try { | ||
boolean status = new CreateProject(new FileProjectWriter(new File(path.getAbsolutePath()))) | ||
.groupId(groupid) | ||
.artifactId(artifactid) | ||
.version(this.version) | ||
.doCreateProject(new HashMap<>()); | ||
boolean status = new CreateProject(new FileProjectWriter(new File(path.getAbsolutePath())), | ||
QuarkusPlatformConfig.getGlobalDefault().getPlatformDescriptor()) | ||
.groupId(groupid) | ||
.artifactId(artifactid) | ||
.version(this.version) | ||
.doCreateProject(new HashMap<>()); | ||
if (status) { | ||
commandInvocation.println("Project " + artifactid + " created successfully."); | ||
} else { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 0 additions & 27 deletions
27
...ndent-projects/tools/common/src/main/java/io/quarkus/cli/commands/AddExtensionResult.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.