-
Notifications
You must be signed in to change notification settings - Fork 536
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
feat (jkube-kit/common) : Add utility class to decompress archive files (#2456) #2471
Conversation
Eclipse JKube CI ReportStarted new GH workflow run for #2471 (2023-11-24T08:50:47Z) ⚙️ JKube E2E Tests (6978582291)
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2471 +/- ##
============================================
+ Coverage 59.36% 61.43% +2.07%
- Complexity 4586 4882 +296
============================================
Files 500 522 +22
Lines 21211 21629 +418
Branches 2830 2879 +49
============================================
+ Hits 12591 13288 +697
+ Misses 7370 7106 -264
+ Partials 1250 1235 -15 ☔ View full report in Codecov by Sentry. |
b7e4657
to
659ff96
Compare
...-kit/common/src/main/java/org/eclipse/jkube/kit/common/archive/JKubeArchiveDecompressor.java
Fixed
Show fixed
Hide fixed
...-kit/common/src/main/java/org/eclipse/jkube/kit/common/archive/JKubeArchiveDecompressor.java
Fixed
Show fixed
Hide fixed
659ff96
to
cfb0904
Compare
...-kit/common/src/main/java/org/eclipse/jkube/kit/common/archive/JKubeArchiveDecompressor.java
Outdated
Show resolved
Hide resolved
…es (eclipse-jkube#2456) Add JKubeArchiveDecompressor utility class. It's extractArchive method would extract the utility class to specified folder. It only supports `.tgz` and `.zip` files at the moment. Signed-off-by: Rohan Kumar <[email protected]>
cfb0904
to
5b23076
Compare
jkube-kit/common/src/main/java/org/eclipse/jkube/kit/common/archive/ArchiveDecompressor.java
Fixed
Show fixed
Hide fixed
…n formats - Generic support for all commons-compress archive and compression formats - Improved support for nested directories on Windows - Added validations and tests for non-happy-path scenarios Signed-off-by: Marc Nuri <[email protected]>
Kudos, SonarCloud Quality Gate passed! |
Description
Fixes #2456
Adds ArchiveDecompressor utility class.
Contains an
extractArchive
method that extracts any File or InputStream containing an archive or a compressed archive into the provided target directory.Type of change
test, version modification, documentation, etc.)
Checklist