forked from groovy/gmaven
-
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.
- Loading branch information
Showing
5 changed files
with
55 additions
and
0 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
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
f1165c7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thx. I'm curious what the use-case is to skip for
console
andshell
goals as those are meant to be interactive?f1165c7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haha, you've got me! I added the params there without having any clear idea what the mojos do :D
Should I remove the params from console and shell?
f1165c7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ppalaga curious did you have a use-case for skip on exec then or is the change purely theoretical that goals should have a skip flag?
I think there could be a use-case for skip for exec goal, though use of this goal often produces side-effects which are needed for other goal executions and skipping could cause other failures; but this is highly dependent on what the build designer had intended. I don't object to adding a skip flag to exec though.
For shell and console, these goals are only really useful for an interactive user to run so having a skip flag is pointless, and if for some reason was defaulted to skip=true would mean additional configuration to actually use the goals which I think would be unfortunate.
Personally and maybe more of a style issue is that if a gmaven:execute goal was meant to be skippable it probably should have been defined in a profile. But I can not really say what various users do with this goal, but personally I use it to augment the Maven build in a way that produces side-effects needed for subsequent phases; so skipping would break things.
All that said I don't object to a skip flag on execute, if you have a solid use-case for skipping please do remove the skips from the other goals and I think we can merge the PR with the exec skip feature.