JAL-3353 Change to build.gradle to use the file:// enabled getdown-launcher-local...
[jalview.git] / getdown / src / getdown / core / src / main / java / com / threerings / getdown / data / Build.java.tmpl
index 86ea47b..1023ede 100644 (file)
@@ -62,4 +62,15 @@ public class Build {
                        return 30;
                }
     }
+    
+    /*
+     * <p>Whether to allow the local "file://" scheme for appbase
+     */
+    public static boolean allowLocatorFileProtocol() {
+       try {
+                       return Boolean.valueOf("@allow_file_protocol@");
+               } catch (Exception e) {
+                       return false;
+               }
+    }
 }