diff --git a/lib/src/main/java/com/commonwealthrobotics/HatRackMain.java b/lib/src/main/java/com/commonwealthrobotics/HatRackMain.java index 815b5d7..397dd4e 100644 --- a/lib/src/main/java/com/commonwealthrobotics/HatRackMain.java +++ b/lib/src/main/java/com/commonwealthrobotics/HatRackMain.java @@ -3,12 +3,12 @@ public class HatRackMain { public static void main(String[] args) { - System.out.println("Hello World!"); - for(int i=0;i { progress.setProgress(percent); }); @@ -234,7 +234,7 @@ public void process(double percent) { }); if (!folder.exists() || !exe.exists()) { - System.out.println("Start Downloading " + filename); + //System.out.println("Start Downloading " + filename); folder.mkdirs(); exe.createNewFile(); byte dataBuffer[] = new byte[1024]; @@ -245,14 +245,14 @@ public void process(double percent) { } fileOutputStream.close(); pis.close(); - System.out.println("Finished downloading " + filename); + //System.out.println("Finished downloading " + filename); } else { - System.out.println("Not downloadeing, it existst " + filename); + //System.out.println("Not downloadeing, it existst " + filename); } } catch (Throwable t) { t.printStackTrace(); } - System.out.println("Using JVM "+exe.getAbsolutePath()); + //System.out.println("Using JVM "+exe.getAbsolutePath()); return exe; } } diff --git a/lib/src/main/java/com/commonwealthrobotics/LatestFromGithubLaunchUI.java b/lib/src/main/java/com/commonwealthrobotics/LatestFromGithubLaunchUI.java index cd0f836..7e27ccd 100644 --- a/lib/src/main/java/com/commonwealthrobotics/LatestFromGithubLaunchUI.java +++ b/lib/src/main/java/com/commonwealthrobotics/LatestFromGithubLaunchUI.java @@ -87,13 +87,13 @@ public class LatestFromGithubLaunchUI { @FXML void onNo(ActionEvent event) { - System.out.println("No path"); + //System.out.println("No path"); launchApplication(); } @FXML void onYes(ActionEvent event) { - System.out.println("Yes path"); + //System.out.println("Yes path"); yesButton.setDisable(true); noButton.setDisable(true); new Thread(() -> { @@ -194,14 +194,14 @@ public void launchApplication() { } String finalCommand=fc; - System.out.println("Running:\n\n"+finalCommand+"\n\n"); + //System.out.println("Running:\n\n"+finalCommand+"\n\n"); new Thread(() -> { try { Process process = Runtime.getRuntime().exec(finalCommand); BufferedReader reader = new BufferedReader(new InputStreamReader(process.getErrorStream())); String line; while ((line = reader.readLine()) != null && process.isAlive()) { - System.out.println(line); + //System.out.println(line); try { Thread.sleep(10); } catch (InterruptedException e) { @@ -210,7 +210,7 @@ public void launchApplication() { } } reader.close(); - System.out.println("LatestFromGithubLaunch clean exit"); + //System.out.println("LatestFromGithubLaunch clean exit"); System.exit(0); } catch (IOException e) { // TODO Auto-generated catch block @@ -261,12 +261,12 @@ public static void readCurrentVersion(String url) throws IOException { if (((String) key.get("name")).contentEquals(jarName)) { downloadJarURL = (String) key.get("browser_download_url"); sizeOfJar = ((Double) key.get("size")).longValue(); - System.out.println(downloadJarURL + " Size " + sizeOfJar + " bytes"); + //System.out.println(downloadJarURL + " Size " + sizeOfJar + " bytes"); } if (((String) key.get("name")).contentEquals("jvm.json")) { downloadJsonURL = (String) key.get("browser_download_url"); sizeOfJson = ((Double) key.get("size")).longValue(); - System.out.println(downloadJsonURL + " Size " + sizeOfJson + " bytes"); + //System.out.println(downloadJsonURL + " Size " + sizeOfJson + " bytes"); } }