5
5
import com .genexus .SdtMessages_Message ;
6
6
import com .genexus .StructSdtMessages_Message ;
7
7
import org .apache .commons .compress .compressors .gzip .GzipCompressorOutputStream ;
8
- import org .apache .commons .compress .compressors .gzip .GzipParameters ;
9
8
import org .apache .logging .log4j .Logger ;
10
9
11
10
import org .apache .commons .compress .archivers .sevenz .SevenZArchiveEntry ;
@@ -501,7 +500,7 @@ private static void decompressTar(File archive, String directory) throws IOExcep
501
500
TarArchiveInputStream tis = new TarArchiveInputStream (Files .newInputStream (archive .toPath ()));
502
501
TarArchiveEntry entry ;
503
502
byte [] buffer = new byte [8192 ];
504
- while ((entry = tis .getNextTarEntry ()) != null ) {
503
+ while ((entry = tis .getNextEntry ()) != null ) {
505
504
File newFile = new File (directory , entry .getName ());
506
505
if (entry .isDirectory ()) {
507
506
if (!newFile .isDirectory () && !newFile .mkdirs ()) {
@@ -547,7 +546,7 @@ private static void decompressGzip(File archive, String directory) throws IOExce
547
546
boolean isTar = false ;
548
547
try (FileInputStream tempFis = new FileInputStream (tempFile );
549
548
TarArchiveInputStream testTar = new TarArchiveInputStream (tempFis )) {
550
- TarArchiveEntry testEntry = testTar .getNextTarEntry ();
549
+ TarArchiveEntry testEntry = testTar .getNextEntry ();
551
550
if (testEntry != null ) {
552
551
isTar = true ;
553
552
}
@@ -557,7 +556,7 @@ private static void decompressGzip(File archive, String directory) throws IOExce
557
556
TarArchiveInputStream tarInput = new TarArchiveInputStream (tarFis )) {
558
557
559
558
TarArchiveEntry entry ;
560
- while ((entry = tarInput .getNextTarEntry ()) != null ) {
559
+ while ((entry = tarInput .getNextEntry ()) != null ) {
561
560
File outFile = new File (targetDir , entry .getName ());
562
561
if (entry .isDirectory ()) {
563
562
if (!outFile .exists () && !outFile .mkdirs ()) {
0 commit comments