Skip to content

Commit

Permalink
Get rid of commons-compress usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
akurtakov committed Mar 2, 2022
1 parent 66d69b7 commit 70ca157
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions org.eclipse.corrosion/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ Require-Bundle: org.eclipse.core.contenttype,
org.eclipse.unittest.ui;bundle-version="0.1.0",
org.eclipse.ecf;bundle-version="3.9.0",
org.eclipse.ecf.filetransfer;bundle-version="5.1.0",
org.eclipse.ecf.provider.filetransfer;bundle-version="1.0.0",
org.apache.commons.compress;bundle-version="1.19.0"
org.eclipse.ecf.provider.filetransfer;bundle-version="1.0.0"
Bundle-RequiredExecutionEnvironment: JavaSE-11
Bundle-ActivationPolicy: lazy
Export-Package: org.eclipse.corrosion;x-friends:="org.eclipse.corrosion.tests",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
import java.util.regex.Pattern;
import java.util.zip.GZIPInputStream;

import org.apache.commons.compress.utils.IOUtils;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Platform;
Expand Down Expand Up @@ -365,7 +364,7 @@ public static void decompressGzip(File input, File output) throws IOException {
output.delete();
try (GZIPInputStream in = new GZIPInputStream(new FileInputStream(input))) {
try (FileOutputStream out = new FileOutputStream(output)) {
IOUtils.copy(in, out);
in.transferTo(out);
output.setExecutable(true);
input.delete();
}
Expand Down

0 comments on commit 70ca157

Please sign in to comment.