Skip to content

Commit 70ca157

Browse files
committed
Get rid of commons-compress usage.
1 parent 66d69b7 commit 70ca157

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

org.eclipse.corrosion/META-INF/MANIFEST.MF

+1-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ Require-Bundle: org.eclipse.core.contenttype,
4040
org.eclipse.unittest.ui;bundle-version="0.1.0",
4141
org.eclipse.ecf;bundle-version="3.9.0",
4242
org.eclipse.ecf.filetransfer;bundle-version="5.1.0",
43-
org.eclipse.ecf.provider.filetransfer;bundle-version="1.0.0",
44-
org.apache.commons.compress;bundle-version="1.19.0"
43+
org.eclipse.ecf.provider.filetransfer;bundle-version="1.0.0"
4544
Bundle-RequiredExecutionEnvironment: JavaSE-11
4645
Bundle-ActivationPolicy: lazy
4746
Export-Package: org.eclipse.corrosion;x-friends:="org.eclipse.corrosion.tests",

org.eclipse.corrosion/src/org/eclipse/corrosion/RustManager.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
import java.util.regex.Pattern;
3131
import java.util.zip.GZIPInputStream;
3232

33-
import org.apache.commons.compress.utils.IOUtils;
3433
import org.eclipse.core.runtime.IProgressMonitor;
3534
import org.eclipse.core.runtime.IStatus;
3635
import org.eclipse.core.runtime.Platform;
@@ -365,7 +364,7 @@ public static void decompressGzip(File input, File output) throws IOException {
365364
output.delete();
366365
try (GZIPInputStream in = new GZIPInputStream(new FileInputStream(input))) {
367366
try (FileOutputStream out = new FileOutputStream(output)) {
368-
IOUtils.copy(in, out);
367+
in.transferTo(out);
369368
output.setExecutable(true);
370369
input.delete();
371370
}

0 commit comments

Comments
 (0)