@@ -112,7 +112,7 @@ public void extract(File archiveFile, File destFolder, int stripPath, boolean ov
112
112
113
113
Map <File , File > hardLinks = new HashMap <File , File >();
114
114
Map <File , Integer > hardLinksMode = new HashMap <File , Integer >();
115
- Map <File , File > symLinks = new HashMap <File , File >();
115
+ Map <File , String > symLinks = new HashMap <File , String >();
116
116
Map <File , Long > symLinksModifiedTimes = new HashMap <File , Long >();
117
117
118
118
// Cycle through all the archive entries
@@ -227,7 +227,7 @@ public void extract(File archiveFile, File destFolder, int stripPath, boolean ov
227
227
hardLinks .put (outputFile , outputLinkedFile );
228
228
hardLinksMode .put (outputFile , mode );
229
229
} else if (isSymLink ) {
230
- symLinks .put (outputFile , outputLinkedFile );
230
+ symLinks .put (outputFile , linkName );
231
231
symLinksModifiedTimes .put (outputFile , modifiedTime );
232
232
} else {
233
233
// Create the containing folder if not exists
@@ -255,7 +255,7 @@ public void extract(File archiveFile, File destFolder, int stripPath, boolean ov
255
255
}
256
256
}
257
257
258
- for (Map .Entry <File , File > entry : symLinks .entrySet ()) {
258
+ for (Map .Entry <File , String > entry : symLinks .entrySet ()) {
259
259
if (entry .getKey ().exists () && overwrite ) {
260
260
entry .getKey ().delete ();
261
261
}
0 commit comments