mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-25 07:27:52 +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;
|
package de.inetsoftware.jwebassembly;
|
||||||
|
|
||||||
|
import java.io.BufferedInputStream;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
@ -133,7 +134,7 @@ public class SpiderMonkey {
|
|||||||
File file = new File( target, entry.getName() );
|
File file = new File( target, entry.getName() );
|
||||||
file.getParentFile().mkdirs();
|
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.setLastModified( entry.getLastModifiedDate().getTime() );
|
||||||
file.setExecutable( true );
|
file.setExecutable( true );
|
||||||
} while( true );
|
} while( true );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user