From: Jim Procter Date: Wed, 6 Mar 2019 15:29:34 +0000 (+0000) Subject: JAL-3208 re-enable the setprop CLI arg, but only in JalviewJS X-Git-Tag: Develop-2_11_2_0-d20201215~24^2~68^2~236 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;ds=sidebyside;h=2d8dfad8a0aa6a6febfc0c3bc0379de0b46e0cfc;p=jalview.git JAL-3208 re-enable the setprop CLI arg, but only in JalviewJS --- diff --git a/src/jalview/bin/Jalview.java b/src/jalview/bin/Jalview.java index 5527450..f2bef93 100755 --- a/src/jalview/bin/Jalview.java +++ b/src/jalview/bin/Jalview.java @@ -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"); }