-
Notifications
You must be signed in to change notification settings - Fork 12
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
Added support for run arguments #4
Conversation
} | ||
|
||
@Test | ||
void testGenerateInto() throws IOException { |
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.
This is the new test.
*/ | ||
public static void generateInto(PublishInfo info, DependencyScopes dependencies, File file) | ||
throws FileUtilsErrorException { | ||
var pomBuilder = new PomBuilder(); |
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.
Maybe var pom_builder = new PomBuilder().info(info).dependencies(dependencies);
then remove the next two lines?
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.
Back to my original thoughts. Then you are also creating a couple additional objects. Yet it matches the builder pattern used throughout the code base.
Done. 😉
Added CLI option to include run arguments, e.g.:
I couldn't figure out how to add a test for this. I tested manually, and it seems to work with everything I could think of.