@@ -81,7 +81,7 @@ public static String getCommandString(String project, String repo, String versio
81
81
try {
82
82
unzip (jvmArchive , bindir );
83
83
}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");
85
85
jvmArchive .delete ();
86
86
ex .printStackTrace ();
87
87
return getCommandString (project , repo , version , downloadJsonURL ,
@@ -92,7 +92,7 @@ public static String getCommandString(String project, String repo, String versio
92
92
untar (jvmArchive , bindir );
93
93
}
94
94
} else {
95
- System .out .println ("Not extraction, VM exists " + dest .getAbsolutePath ());
95
+ // System.out.println("Not extraction, VM exists " + dest.getAbsolutePath());
96
96
}
97
97
String cmd = bindir + name + "/bin/java" + (LatestFromGithubLaunchUI .isWin () ? ".exe" : "" ) + " " ;
98
98
for (String s : jvmargs ) {
@@ -156,7 +156,7 @@ private static void unzip(File path, String dir) throws Exception {
156
156
String text = new BufferedReader (new InputStreamReader (in , StandardCharsets .UTF_8 ))
157
157
.lines ().collect (Collectors .joining ("\n " ));
158
158
Path target = Paths .get ("." , text );
159
- System .out .println ("Creating symlink " + entryPath + " with " + target );
159
+ // System.out.println("Creating symlink " + entryPath + " with " + target);
160
160
161
161
Files .createSymbolicLink (entryPath , target );
162
162
continue ;
@@ -188,7 +188,7 @@ private static void untar(File tarFile, String dir) throws Exception {
188
188
// tarIn is a TarArchiveInputStream
189
189
while (tarEntry != null ) {// create a file with the same name as the tarEntry
190
190
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());
192
192
if (tarEntry .isDirectory ()) {
193
193
destPath .mkdirs ();
194
194
} else {
@@ -226,15 +226,15 @@ private static File download(String version, String downloadJsonURL, long sizeOf
226
226
pis .addListener (new Listener () {
227
227
@ Override
228
228
public void process (double percent ) {
229
- //System.out.println("Download percent " + percent);
229
+ //// System.out.println("Download percent " + percent);
230
230
Platform .runLater (() -> {
231
231
progress .setProgress (percent );
232
232
});
233
233
}
234
234
});
235
235
236
236
if (!folder .exists () || !exe .exists ()) {
237
- System .out .println ("Start Downloading " + filename );
237
+ // System.out.println("Start Downloading " + filename);
238
238
folder .mkdirs ();
239
239
exe .createNewFile ();
240
240
byte dataBuffer [] = new byte [1024 ];
@@ -245,14 +245,14 @@ public void process(double percent) {
245
245
}
246
246
fileOutputStream .close ();
247
247
pis .close ();
248
- System .out .println ("Finished downloading " + filename );
248
+ // System.out.println("Finished downloading " + filename);
249
249
} else {
250
- System .out .println ("Not downloadeing, it existst " + filename );
250
+ // System.out.println("Not downloadeing, it existst " + filename);
251
251
}
252
252
} catch (Throwable t ) {
253
253
t .printStackTrace ();
254
254
}
255
- System .out .println ("Using JVM " +exe .getAbsolutePath ());
255
+ // System.out.println("Using JVM "+exe.getAbsolutePath());
256
256
return exe ;
257
257
}
258
258
}
0 commit comments