Skip to content

Commit def8cab

Browse files
committed
Archiver follows symlinks on Windows 7
This fixes #47
1 parent 388bc98 commit def8cab

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/main/java/org/codehaus/plexus/archiver/AbstractArchiver.java

+1-6
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ public void addFileSet( @Nonnull final FileSet fileSet )
335335
// The PlexusIoFileResourceCollection contains platform-specific File.separatorChar which
336336
// is an interesting cause of grief, see PLXCOMP-192
337337
final PlexusIoFileResourceCollection collection = new PlexusIoFileResourceCollection();
338-
collection.setFollowingSymLinks( !isSymlinkSupported() );
338+
collection.setFollowingSymLinks( false );
339339

340340
collection.setIncludes( fileSet.getIncludes() );
341341
collection.setExcludes( fileSet.getExcludes() );
@@ -360,11 +360,6 @@ public void addFileSet( @Nonnull final FileSet fileSet )
360360
addResources( collection );
361361
}
362362

363-
private boolean isSymlinkSupported()
364-
{
365-
return Os.isFamily( Os.FAMILY_UNIX );
366-
}
367-
368363
@Override
369364
public void addFile( @Nonnull final File inputFile, @Nonnull final String destFileName )
370365
throws ArchiverException

0 commit comments

Comments
 (0)