JAL-2871 JAL-2877 second try at specifying config filelocation
authorkjvdheide <kjvanderheide@dundee.ac.uk>
Wed, 20 Dec 2017 16:05:01 +0000 (16:05 +0000)
committerkjvdheide <kjvanderheide@dundee.ac.uk>
Wed, 20 Dec 2017 16:05:01 +0000 (16:05 +0000)
src/jalview/ext/archaeopteryx/AptxInit.java

index aaccfe8..f3093fa 100644 (file)
@@ -56,7 +56,10 @@ public final class AptxInit
   // yet to add user preferred config
   private final static Configuration APTX_CONFIG = new Configuration(
           Cache.getDefault("APTXCONFIG",
-                  "resources/_aptx_jalview_configuration_file.txt"),
+                  Cache.class.getClass()
+                          .getResource(
+                                  "/_aptx_jalview_configuration_file.txt")
+                          .toString()),
             false, false, false);
 
   private final static boolean VALIDATE_PHYLOXML_XSD = APTX_CONFIG