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

#136 UniversalDecompressor hard-codes configuration file location #273

Conversation

mawiesne
Copy link
Contributor

@mawiesne mawiesne commented Nov 6, 2023

  • removes the hardcoded string PROPERTIES_PATH from UniversalDecompressor
  • adds a new constructor to UniversalDecompressor taking a Path reference for custom XML file configs
  • adds new test class UniversalDecompressorTest, previously totally untested
  • demonstrates the handling of custom ar archive approach via decompressor-ar.xml, as 7z is not present on many platforms by default
  • adjusts GZipDecompressor / BZip2Decompressor to check both ways to read an archive: classpath or external (file) location
  • improves JavaDoc along the path

What's in the PR

How to test manually

  • mvn clean test

Automatic testing

  • PR includes unit tests

Documentation

  • PR updates documentation

@mawiesne mawiesne added this to the 2.0.0 milestone Nov 6, 2023
@mawiesne mawiesne requested review from reckart and rzo1 November 6, 2023 19:46
@mawiesne mawiesne self-assigned this Nov 6, 2023
@mawiesne mawiesne marked this pull request as draft November 14, 2023 17:02
- removes the hardcoded string PROPERTIES_PATH from `UniversalDecompressor`
- adds a new constructor to `UniversalDecompressor` taking a Path reference for custom XML file configs
- adds new test class `UniversalDecompressorTest`, previously totally untested
- demonstrates the handling of custom `ar` archive approach via decompressor-ar.xml, as 7z is not present on many platforms by default
- adjusts GZipDecompressor / BZip2Decompressor to check both ways to read an archive: classpath or external (file) location
- resolves #136
@mawiesne mawiesne force-pushed the #136-UniversalDecompressor-hard-codes-configuration-file-location branch from 2382c1f to 675feeb Compare November 14, 2023 17:51
@mawiesne mawiesne requested a review from rzo1 November 14, 2023 17:52
@mawiesne mawiesne marked this pull request as ready for review November 14, 2023 17:52
@mawiesne mawiesne requested a review from logological November 14, 2023 17:58
@mawiesne
Copy link
Contributor Author

Ping @logological

@logological
Copy link
Member

@mawiesne Sorry, I'm no longer qualified to review this patch—I opened the original issue 8 years ago and my understanding of it (and the underlying code) has faded.

@mawiesne
Copy link
Contributor Author

@mawiesne Sorry, I'm no longer qualified to review this patch—I opened the original issue 8 years ago and my understanding of it (and the underlying code) has faded.

Nevermind. Thanks for reporting back so quickly.

@mawiesne mawiesne merged commit 3c4bc9c into master Nov 15, 2023
4 checks passed
@mawiesne mawiesne deleted the #136-UniversalDecompressor-hard-codes-configuration-file-location branch November 15, 2023 03:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UniversalDecompressor hard-codes configuration file location
4 participants