From 2d8dfad8a0aa6a6febfc0c3bc0379de0b46e0cfc Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Wed, 6 Mar 2019 15:29:34 +0000 Subject: [PATCH] JAL-3208 re-enable the setprop CLI arg, but only in JalviewJS --- src/jalview/bin/Jalview.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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"); } -- 1.7.10.2