@@ -90,7 +90,7 @@ public static String getCommandString(String project, String repo, String versio
9090 String name = vm .get ("name" ).toString ();
9191 List <String > jvmargs = null ;
9292 Object o = vm .get ("jvmargs" );
93- System .out .println ("jvmargs: " + jvmargs );
93+ System .out .println ("jvmargs: " + o );
9494 if (o instanceof List ) {
9595 @ SuppressWarnings ("unchecked" )
9696 List <String > tmp = (List <String >) o ;
@@ -271,11 +271,18 @@ public static long getRemoteSize(String url) throws IOException {
271271 private static File download (String version , String downloadURL , ProgressBar progressBar , Label progressLabel ,
272272 String bindir , String filename ) throws MalformedURLException , IOException , FileNotFoundException {
273273 File exeFinal = null ;
274+
275+
274276
275- System .out .printf ("Downloading %s %n" , downloadURL );
276277 File folder = new File (bindir + version + "/" );
277278 File exe = new File (bindir + version + "/" + filename + "_TMP" );
278279 exeFinal = new File (bindir + version + "/" + filename );
280+ if (exeFinal .exists ()) {
281+ System .out .println ("Skip Downloading " + exeFinal +" exists already" );
282+ return exeFinal ;
283+ }
284+
285+ System .out .printf ("Downloading %s %n" , downloadURL );
279286
280287 if (downloadURL != null ) {
281288 long sizeOfJson = getRemoteSize (downloadURL );
0 commit comments