Skip to content
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

Merged
merged 10 commits into from
Aug 17, 2023
Merged

Added support for run arguments #4

merged 10 commits into from
Aug 17, 2023

Conversation

ethauvin
Copy link
Contributor

Added CLI option to include run arguments, e.g.:

./bld run --args="arg1 arg2 ..."

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.

@ethauvin ethauvin requested a review from gbevin August 14, 2023 00:01
}

@Test
void testGenerateInto() throws IOException {
Copy link
Contributor Author

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();
Copy link
Contributor

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?

Copy link
Contributor Author

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. 😉

@gbevin gbevin merged commit 5f619ce into rife2:main Aug 17, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants