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 xz compression support #27

Merged
merged 14 commits into from
May 6, 2016

Conversation

philiplourandos
Copy link
Contributor

I require xz tarball artifacts from the maven assembly plugin. I've added added code to:

  • Compress and decompress archives
  • Checks to the TarArchiver and TarUnArchiver for xz files
  • Configuration to components.xml for xz files and classes to use on lookup
  • Unit tests similar to bz2 tests

@khmarbaise
Copy link
Member

Can you please first squash your commits otherwise it's hard to see what has been changed....

try
{
final InputStream result = XZUnArchiver.getXZInputStream( fileIs );

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to set fileIs to null here so that the finally clause does not close the stream.

@ChristianSchulte ChristianSchulte merged commit 85024ec into codehaus-plexus:master May 6, 2016
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.

3 participants