From 5779ea1b45abfbaa4aeafe59ac76bc7c236fd521 Mon Sep 17 00:00:00 2001 From: Leonid Bugaev Date: Mon, 2 May 2016 16:31:35 +0500 Subject: [PATCH] Update java middleware to not use apache commons --- Dockerfile | 3 --- examples/middleware/echo.java | 3 --- 2 files changed, 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index c4be6b09..da6eebdd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,9 +10,6 @@ RUN apt-get update -y RUN echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections RUN apt-get install oracle-java8-installer -y -RUN wget http://apache-mirror.rbc.ru/pub/apache//commons/io/binaries/commons-io-2.4-bin.tar.gz -P /tmp -RUN tar xzf /tmp/commons-io-2.4-bin.tar.gz -C /tmp - RUN apt-get install libpcap-dev -y RUN go get github.com/google/gopacket RUN go get -u github.com/golang/lint/golint diff --git a/examples/middleware/echo.java b/examples/middleware/echo.java index 707193eb..84648199 100644 --- a/examples/middleware/echo.java +++ b/examples/middleware/echo.java @@ -2,8 +2,6 @@ import java.io.IOException; import java.io.InputStreamReader; -import org.apache.commons.io.IOUtils; - public class echo { public static void main(String[] args) { if(args != null){ @@ -24,7 +22,6 @@ public static void main(String[] args) { } } catch (IOException e) { - IOUtils.closeQuietly(stdin); } } } \ No newline at end of file