Skip to content

Commit 36ca735

Browse files
committed
Disable some logs
1 parent d97d2f8 commit 36ca735

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/de/neuwirthinformatik/Alexander/GitJarUpdate/StreamUtil.java

+2
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,13 @@ public static String readFile(String path)
3838
}
3939
public static void copyFile(String src, String dst)
4040
{
41+
if(new File(src).exists()) {
4142
try {
4243
Files.copy(new File(src).toPath(), new File(dst).toPath(),StandardCopyOption.REPLACE_EXISTING);
4344
} catch (IOException e) {
4445
e.printStackTrace();
4546
}
47+
}
4648
}
4749

4850
}

src/main/java/de/neuwirthinformatik/Alexander/GitJarUpdate/Wget.java

-2
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ public static String wGet(String urlOfFile) {
7474
InputStream httpIn = null;
7575
OutputStream fileOutput = null;
7676
OutputStream bufferedOut = null;
77-
System.out.print(urlOfFile);
7877
try {
7978
// check the http connection before we do anything to the fs
8079
httpIn = new BufferedInputStream(new URL(urlOfFile).openStream());
@@ -108,7 +107,6 @@ public static Wget.Status wGet(String saveAsFile, String urlOfFile) {
108107
InputStream httpIn = null;
109108
OutputStream fileOutput = null;
110109
OutputStream bufferedOut = null;
111-
System.out.print(urlOfFile);
112110
try {
113111
// check the http connection before we do anything to the fs
114112
httpIn = new BufferedInputStream(new URL(urlOfFile).openStream());

0 commit comments

Comments
 (0)