-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ivy main/standalone: Patch to include 'makepom' function #71
base: master
Are you sure you want to change the base?
Conversation
@@ -199,6 +201,10 @@ static CommandLineParser getParser() { | |||
new OptionBuilder("cp").arg("cp") | |||
.description("extra classpath to use when launching process").create()) | |||
|
|||
.addCategory("maven compatibility options") | |||
.addOption(new OptionBuilder("pomfile").arg("pomfile").countArgs(false) |
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.
A small suggestion - can you change this to something like:
new OptionBuilder("makepom").arg("pomfile")....
@@ -199,6 +201,10 @@ static CommandLineParser getParser() { | |||
new OptionBuilder("cp").arg("cp") | |||
.description("extra classpath to use when launching process").create()) | |||
|
|||
.addCategory("maven compatibility options") | |||
.addOption(new OptionBuilder("pomfile").arg("pomfile").countArgs(false) | |||
.description("makepom as standalone tasks").create()) |
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.
I think the description should be a bit more clear and state that this generates a pom file for the resolved module.
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.
IMHO pomfile
is confusing (cf use of ivyfile
and propertiesfile
). I'd suggest writepom
or something like that.
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.
On the second thoughts, why not calling the option makepom
😉 ?
@aanno Thank you for the patch. This mostly looks fine. I have added some review comments. Can you please also introduce a test case for this? Something that tests that these command options are recognized and the pom file does get created. There's a |
This close PR #71 at github.com/apache/ant-ivy
@aanno, thank you for this PR. I have gone ahead and included your patch with minor modifications to upstream and also included a test along with it. I have also included your name in our release notes. Since I couldn't find your full name in your github profile, I used |
@aanno could you please rebase and push the branch in order to close the PR? |
Hello,
I added the pomfile option to main/standalone. This allows creating an (maven) pom file from outside an ant task.
Example of use:
Feedback is welcome. What should I do to get this patch into mainline?
Kind regards,
aanno