Sfoglia il codice sorgente

run: only set log file path if non-null

Kirill Vainer 9 anni fa
parent
commit
a2554874d3
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3 1
      jme3-examples/build.gradle

+ 3 - 1
jme3-examples/build.gradle

@@ -12,7 +12,9 @@ task run(dependsOn: 'build', type:JavaExec) {
         jvmArgs "-Djava.awt.headless=true"
     }
 
-    systemProperty "java.util.logging.config.file", System.getProperty("java.util.logging.config.file")
+    if (System.properties['java.util.logging.config.file'] != null) {
+        systemProperty "java.util.logging.config.file", System.properties['java.util.logging.config.file']
+    }
 
     if( assertions  == "true" ){
         enableAssertions = true;