mirror of
https://github.com/buger/goreplay.git
synced 2024-04-21 12:32:02 +00:00
Update java middleware to not use apache commons
This commit is contained in:
@@ -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 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 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 apt-get install libpcap-dev -y
|
||||||
RUN go get github.com/google/gopacket
|
RUN go get github.com/google/gopacket
|
||||||
RUN go get -u github.com/golang/lint/golint
|
RUN go get -u github.com/golang/lint/golint
|
||||||
|
|||||||
@@ -2,8 +2,6 @@ import java.io.BufferedReader;
|
|||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStreamReader;
|
import java.io.InputStreamReader;
|
||||||
|
|
||||||
import org.apache.commons.io.IOUtils;
|
|
||||||
|
|
||||||
public class echo {
|
public class echo {
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
if(args != null){
|
if(args != null){
|
||||||
@@ -24,7 +22,6 @@ public class echo {
|
|||||||
|
|
||||||
}
|
}
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
IOUtils.closeQuietly(stdin);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user