File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
src/main/java/org/codehaus/plexus/archiver/tar Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 20
20
import org .apache .commons .compress .archivers .tar .TarArchiveEntry ;
21
21
import org .apache .commons .compress .archivers .tar .TarArchiveOutputStream ;
22
22
import org .apache .commons .compress .compressors .bzip2 .BZip2CompressorOutputStream ;
23
+ import org .apache .commons .compress .compressors .xz .XZCompressorOutputStream ;
23
24
import org .codehaus .plexus .archiver .AbstractArchiver ;
24
25
import org .codehaus .plexus .archiver .ArchiveEntry ;
25
26
import org .codehaus .plexus .archiver .ArchiverException ;
@@ -465,7 +466,8 @@ public static enum TarCompressionMethod
465
466
none ,
466
467
gzip ,
467
468
bzip2 ,
468
- snappy
469
+ snappy ,
470
+ xz
469
471
470
472
}
471
473
@@ -484,6 +486,11 @@ else if ( TarCompressionMethod.snappy.equals( tarCompressionMethod ) )
484
486
{
485
487
return new SnappyOutputStream ( bufferedOutputStream ( ostream ) );
486
488
}
489
+ else if (TarCompressionMethod .xz .equals ( tarCompressionMethod ) )
490
+ {
491
+ return new XZCompressorOutputStream ( bufferedOutputStream ( ostream ) );
492
+ }
493
+
487
494
return ostream ;
488
495
}
489
496
You can’t perform that action at this time.
0 commit comments