JAL-3208 re-enable the setprop CLI arg, but only in JalviewJS
authorJim Procter <jprocter@issues.jalview.org>
Wed, 6 Mar 2019 15:29:34 +0000 (15:29 +0000)
committerJim Procter <jprocter@issues.jalview.org>
Wed, 6 Mar 2019 15:29:34 +0000 (15:29 +0000)
src/jalview/bin/Jalview.java

index 5527450..f2bef93 100755 (executable)
@@ -325,9 +325,10 @@ public class Jalview
       else
       {
         System.out.println("Executing setprop argument: " + defs);
-        // DISABLED FOR SECURITY REASONS
-        // TODO: add a property to allow properties to be overriden by cli args
-        // Cache.setProperty(defs.substring(0,p), defs.substring(p+1));
+        if (Platform.isJS())
+        {
+          Cache.setProperty(defs.substring(0,p), defs.substring(p+1));
+        }
       }
       defs = aparser.getValue("setprop");
     }