Skip to content

Commit c2bb359

Browse files
committed
removing prints
1 parent 8878aca commit c2bb359

File tree

3 files changed

+22
-22
lines changed

3 files changed

+22
-22
lines changed

lib/src/main/java/com/commonwealthrobotics/HatRackMain.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
public class HatRackMain {
44

55
public static void main(String[] args) {
6-
System.out.println("Hello World!");
7-
for(int i=0;i<args.length;i++) {
8-
System.out.println("Arg "+i+" = "+args[i]);
9-
}
10-
System.out.println(System.getProperty("os.name"));
11-
System.out.println(System.getProperty("os.arch"));
6+
// com.neuronrobotics.sdk.common.Log.error("Hello World!");
7+
// for(int i=0;i<args.length;i++) {
8+
// com.neuronrobotics.sdk.common.Log.error("Arg "+i+" = "+args[i]);
9+
// }
10+
// com.neuronrobotics.sdk.common.Log.error(System.getProperty("os.name"));
11+
// com.neuronrobotics.sdk.common.Log.error(System.getProperty("os.arch"));
1212

1313
}
1414

lib/src/main/java/com/commonwealthrobotics/JvmManager.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public static String getCommandString(String project, String repo, String versio
8181
try {
8282
unzip(jvmArchive, bindir);
8383
}catch(java.util.zip.ZipException ex) {
84-
System.out.println("Failed the extract, erasing and re-downloading");
84+
//System.out.println("Failed the extract, erasing and re-downloading");
8585
jvmArchive.delete();
8686
ex.printStackTrace();
8787
return getCommandString(project, repo, version, downloadJsonURL,
@@ -92,7 +92,7 @@ public static String getCommandString(String project, String repo, String versio
9292
untar(jvmArchive, bindir);
9393
}
9494
} else {
95-
System.out.println("Not extraction, VM exists " + dest.getAbsolutePath());
95+
//System.out.println("Not extraction, VM exists " + dest.getAbsolutePath());
9696
}
9797
String cmd = bindir + name + "/bin/java" + (LatestFromGithubLaunchUI.isWin() ? ".exe" : "") + " ";
9898
for (String s : jvmargs) {
@@ -156,7 +156,7 @@ private static void unzip(File path, String dir) throws Exception {
156156
String text = new BufferedReader(new InputStreamReader(in, StandardCharsets.UTF_8))
157157
.lines().collect(Collectors.joining("\n"));
158158
Path target = Paths.get(".", text);
159-
System.out.println("Creating symlink " + entryPath + " with " + target);
159+
//System.out.println("Creating symlink " + entryPath + " with " + target);
160160

161161
Files.createSymbolicLink(entryPath, target);
162162
continue;
@@ -188,7 +188,7 @@ private static void untar(File tarFile, String dir) throws Exception {
188188
// tarIn is a TarArchiveInputStream
189189
while (tarEntry != null) {// create a file with the same name as the tarEntry
190190
File destPath = new File(dest.toString() + System.getProperty("file.separator") + tarEntry.getName());
191-
// System.out.println("working: " + destPath.getCanonicalPath());
191+
// //System.out.println("working: " + destPath.getCanonicalPath());
192192
if (tarEntry.isDirectory()) {
193193
destPath.mkdirs();
194194
} else {
@@ -226,15 +226,15 @@ private static File download(String version, String downloadJsonURL, long sizeOf
226226
pis.addListener(new Listener() {
227227
@Override
228228
public void process(double percent) {
229-
//System.out.println("Download percent " + percent);
229+
////System.out.println("Download percent " + percent);
230230
Platform.runLater(() -> {
231231
progress.setProgress(percent);
232232
});
233233
}
234234
});
235235

236236
if (!folder.exists() || !exe.exists()) {
237-
System.out.println("Start Downloading " + filename);
237+
//System.out.println("Start Downloading " + filename);
238238
folder.mkdirs();
239239
exe.createNewFile();
240240
byte dataBuffer[] = new byte[1024];
@@ -245,14 +245,14 @@ public void process(double percent) {
245245
}
246246
fileOutputStream.close();
247247
pis.close();
248-
System.out.println("Finished downloading " + filename);
248+
//System.out.println("Finished downloading " + filename);
249249
} else {
250-
System.out.println("Not downloadeing, it existst " + filename);
250+
//System.out.println("Not downloadeing, it existst " + filename);
251251
}
252252
} catch (Throwable t) {
253253
t.printStackTrace();
254254
}
255-
System.out.println("Using JVM "+exe.getAbsolutePath());
255+
//System.out.println("Using JVM "+exe.getAbsolutePath());
256256
return exe;
257257
}
258258
}

lib/src/main/java/com/commonwealthrobotics/LatestFromGithubLaunchUI.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,13 @@ public class LatestFromGithubLaunchUI {
8787

8888
@FXML
8989
void onNo(ActionEvent event) {
90-
System.out.println("No path");
90+
//System.out.println("No path");
9191
launchApplication();
9292
}
9393

9494
@FXML
9595
void onYes(ActionEvent event) {
96-
System.out.println("Yes path");
96+
//System.out.println("Yes path");
9797
yesButton.setDisable(true);
9898
noButton.setDisable(true);
9999
new Thread(() -> {
@@ -194,14 +194,14 @@ public void launchApplication() {
194194
}
195195

196196
String finalCommand=fc;
197-
System.out.println("Running:\n\n"+finalCommand+"\n\n");
197+
//System.out.println("Running:\n\n"+finalCommand+"\n\n");
198198
new Thread(() -> {
199199
try {
200200
Process process = Runtime.getRuntime().exec(finalCommand);
201201
BufferedReader reader = new BufferedReader(new InputStreamReader(process.getErrorStream()));
202202
String line;
203203
while ((line = reader.readLine()) != null && process.isAlive()) {
204-
System.out.println(line);
204+
//System.out.println(line);
205205
try {
206206
Thread.sleep(10);
207207
} catch (InterruptedException e) {
@@ -210,7 +210,7 @@ public void launchApplication() {
210210
}
211211
}
212212
reader.close();
213-
System.out.println("LatestFromGithubLaunch clean exit");
213+
//System.out.println("LatestFromGithubLaunch clean exit");
214214
System.exit(0);
215215
} catch (IOException e) {
216216
// TODO Auto-generated catch block
@@ -261,12 +261,12 @@ public static void readCurrentVersion(String url) throws IOException {
261261
if (((String) key.get("name")).contentEquals(jarName)) {
262262
downloadJarURL = (String) key.get("browser_download_url");
263263
sizeOfJar = ((Double) key.get("size")).longValue();
264-
System.out.println(downloadJarURL + " Size " + sizeOfJar + " bytes");
264+
//System.out.println(downloadJarURL + " Size " + sizeOfJar + " bytes");
265265
}
266266
if (((String) key.get("name")).contentEquals("jvm.json")) {
267267
downloadJsonURL = (String) key.get("browser_download_url");
268268
sizeOfJson = ((Double) key.get("size")).longValue();
269-
System.out.println(downloadJsonURL + " Size " + sizeOfJson + " bytes");
269+
//System.out.println(downloadJsonURL + " Size " + sizeOfJson + " bytes");
270270
}
271271

272272
}

0 commit comments

Comments
 (0)