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

Allow multiple space separated globs for artifacts specification #109

Merged
merged 8 commits into from
Feb 16, 2022

Conversation

matejvasek
Copy link
Contributor

@matejvasek matejvasek commented Feb 15, 2022

Summary

This allows usage as: --env BP_MAVEN_BUILT_ARTIFACT="target/*runner*.jar target/lib".

Use Cases

Useful when including only *-runner.jar and lib directory to resulting app image instead of whole target.

Checklist

  • I have viewed, signed, and submitted the Contributor License Agreement.
  • I have linked issue(s) that this PR should close using keywords or the Github UI (See docs)
  • I have added an integration test, if necessary.
  • I have reviewed the styleguide for guidance on my code quality.
  • I'm happy with the commit history on this PR (I have rebased/squashed as needed).

The globs shall be space separated.
This allows usage as: `--env BP_MAVEN_BUILT_ARTIFACT="target/*runner*.jar target/lib"`.

Signed-off-by: Matej Vasek <[email protected]>
@matejvasek matejvasek requested a review from a team February 15, 2022 19:09
@matejvasek
Copy link
Contributor Author

/cc @dmikusa-pivotal

@matejvasek
Copy link
Contributor Author

/cc @jjbustamante

@dmikusa dmikusa added semver:minor A change requiring a minor version bump type:enhancement A general enhancement labels Feb 15, 2022
Daniel Mikusa and others added 7 commits February 15, 2022 16:29
Signed-off-by: Matej Vasek <[email protected]>
- Errors will only occur from `filepath.Glob` if there's a bad pattern (it doesn't return i/o errors). Thus we can collect bad patterns and return them all at once. It'll be a slightly nicer user experience when there are errors.
- Add more tests around parsing patterns
- Fix some Paketo Java buildpacks style issues

Signed-off-by: Daniel Mikusa <[email protected]>
Signed-off-by: Daniel Mikusa <[email protected]>
…tiple-globs

Adjust error handling and more tests
@dmikusa dmikusa merged commit db786f0 into paketo-buildpacks:main Feb 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver:minor A change requiring a minor version bump type:enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants