mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-15 02:44:47 +01:00
ArchiveInputStream seems not compatible with Files.copy()
This commit is contained in:
parent
b6238124c7
commit
87cbee437b
@ -15,6 +15,7 @@
|
||||
*/
|
||||
package de.inetsoftware.jwebassembly;
|
||||
|
||||
import java.io.BufferedInputStream;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
@ -133,7 +134,7 @@ public class SpiderMonkey {
|
||||
File file = new File( target, entry.getName() );
|
||||
file.getParentFile().mkdirs();
|
||||
|
||||
Files.copy( archiv, file.toPath(), StandardCopyOption.REPLACE_EXISTING );
|
||||
Files.copy( new BufferedInputStream( archiv, 0x8000 ), file.toPath(), StandardCopyOption.REPLACE_EXISTING );
|
||||
file.setLastModified( entry.getLastModifiedDate().getTime() );
|
||||
file.setExecutable( true );
|
||||
} while( true );
|
||||
|
Loading…
x
Reference in New Issue
Block a user