Skip to content

Commit 896ff91

Browse files
committed
Removed TarConstants
1 parent 8f6c9fa commit 896ff91

File tree

2 files changed

+5
-184
lines changed

2 files changed

+5
-184
lines changed

src/main/java/org/codehaus/plexus/archiver/tar/TarArchiver.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
import java.io.OutputStream;
4040
import java.util.zip.GZIPOutputStream;
4141

42+
import static org.apache.commons.compress.archivers.tar.TarConstants.*;
4243
import static org.codehaus.plexus.archiver.util.Streams.bufferedOutputStream;
4344

4445
/**
@@ -234,9 +235,9 @@ protected void tarFile( ArchiveEntry entry, TarArchiveOutputStream tOut, String
234235
try
235236
{
236237
TarArchiveEntry te;
237-
if ( !longFileMode.isGnuMode() && pathLength >= TarConstants.NAMELEN )
238+
if ( !longFileMode.isGnuMode() && pathLength >= NAMELEN )
238239
{
239-
int maxPosixPathLen = TarConstants.NAMELEN + TarConstants.POSIX_PREFIXLEN;
240+
int maxPosixPathLen = NAMELEN + PREFIXLEN;
240241
if ( longFileMode.isPosixMode() )
241242
{
242243
}
@@ -260,7 +261,7 @@ else if ( longFileMode.isOmitMode() )
260261
}
261262
else if ( longFileMode.isWarnMode() )
262263
{
263-
getLogger().warn( "Entry: " + vPath + " longer than " + TarConstants.NAMELEN + " characters." );
264+
getLogger().warn( "Entry: " + vPath + " longer than " + NAMELEN + " characters." );
264265
if ( !longWarningGiven )
265266
{
266267
getLogger().warn( "Resulting tar file can only be processed "
@@ -270,7 +271,7 @@ else if ( longFileMode.isWarnMode() )
270271
}
271272
else if ( longFileMode.isFailMode() )
272273
{
273-
throw new ArchiverException( "Entry: " + vPath + " longer than " + TarConstants.NAMELEN
274+
throw new ArchiverException( "Entry: " + vPath + " longer than " + NAMELEN
274275
+ " characters." );
275276
}
276277
else

src/main/java/org/codehaus/plexus/archiver/tar/TarConstants.java

Lines changed: 0 additions & 180 deletions
This file was deleted.

0 commit comments

Comments
 (0)