JAL-2871 aptx Configuration now created through input stream
authorkjvdheide <kjvanderheide@dundee.ac.uk>
Sat, 6 Jan 2018 22:11:18 +0000 (22:11 +0000)
committerkjvdheide <kjvanderheide@dundee.ac.uk>
Sat, 6 Jan 2018 22:12:17 +0000 (22:12 +0000)
forester
src/jalview/ext/archaeopteryx/AptxInit.java

index 3d5864a..38161fc 160000 (submodule)
--- a/forester
+++ b/forester
@@ -1 +1 @@
-Subproject commit 3d5864a39739960c126f2ab5585162fd52d1f47d
+Subproject commit 38161fcaf592e9a233b87c80b68029c6eb247638
index be0a1fe..0337829 100644 (file)
@@ -16,6 +16,7 @@ import jalview.viewmodel.AlignmentViewport;
 import java.io.File;
 import java.io.FileNotFoundException;
 import java.io.IOException;
+import java.io.InputStream;
 import java.net.MalformedURLException;
 import java.net.URL;
 
@@ -44,9 +45,13 @@ import org.forester.util.ForesterUtil;
  */
 public final class AptxInit
 {
+  public final static InputStream CONFIG_LOC = AptxInit.class
+
+          .getResourceAsStream("/_aptx_jalview_configuration_file.txt");
+
   public final static Configuration APTX_CONFIG = new Configuration(
-          "resources/_aptx_jalview_configuration_file", false, false,
-          false);
+          CONFIG_LOC,
+          false, false);
   // static
   // {
   // APTX_CONFIG.setBaseFontFamilyName(