File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
src/main/java/org/codehaus/plexus/archiver Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -521,7 +521,7 @@ else if ( o instanceof PlexusIoResourceCollection )
521
521
}
522
522
}
523
523
524
- if ( nextEntry != null && seenEntries .contains ( nextEntry . getName () ) )
524
+ if ( nextEntry != null && seenEntries .contains ( normalizedForDuplicateCheck ( nextEntry ) ) )
525
525
{
526
526
final String path = nextEntry .getName ();
527
527
@@ -569,7 +569,7 @@ public ArchiveEntry next()
569
569
final ArchiveEntry next = nextEntry ;
570
570
nextEntry = null ;
571
571
572
- seenEntries .add ( next . getName ( ) );
572
+ seenEntries .add ( normalizedForDuplicateCheck ( next ) );
573
573
574
574
return next ;
575
575
}
@@ -578,7 +578,13 @@ public void remove()
578
578
{
579
579
throw new UnsupportedOperationException ( "Does not support iterator" );
580
580
}
581
+
582
+ private String normalizedForDuplicateCheck (ArchiveEntry entry ){
583
+ return entry .getName ().replace ( '\\' , '/' );
584
+ }
585
+
581
586
};
587
+
582
588
}
583
589
584
590
public Map <String , ArchiveEntry > getFiles ()
You can’t perform that action at this time.
0 commit comments