copy() was moved to IOUtils.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2146 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -29,7 +29,7 @@ import java.util.Enumeration;
|
|||||||
import java.util.jar.JarEntry;
|
import java.util.jar.JarEntry;
|
||||||
import java.util.jar.JarFile;
|
import java.util.jar.JarFile;
|
||||||
|
|
||||||
import org.apache.commons.io.CopyUtils;
|
import org.apache.commons.io.IOUtils;
|
||||||
|
|
||||||
import com.samskivert.Log;
|
import com.samskivert.Log;
|
||||||
import com.samskivert.io.StreamUtil;
|
import com.samskivert.io.StreamUtil;
|
||||||
@@ -109,7 +109,7 @@ public class FileUtil
|
|||||||
try {
|
try {
|
||||||
fout = new BufferedOutputStream(new FileOutputStream(efile));
|
fout = new BufferedOutputStream(new FileOutputStream(efile));
|
||||||
jin = jar.getInputStream(entry);
|
jin = jar.getInputStream(entry);
|
||||||
CopyUtils.copy(jin, fout);
|
IOUtils.copy(jin, fout);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Log.warning("Failure unpacking [jar=" + jar +
|
Log.warning("Failure unpacking [jar=" + jar +
|
||||||
", entry=" + efile + ", error=" + e + "].");
|
", entry=" + efile + ", error=" + e + "].");
|
||||||
|
|||||||
Reference in New Issue
Block a user