Normand Briere
2019-07-18 d7a17c35c443e2cb6c09eaa3cfeaf590a571faa1
timeflow/app/TimeflowApp.java
....@@ -1,5 +1,6 @@
11 package timeflow.app;
22
3
+import java.net.URL;
34 import timeflow.app.ui.*;
45 import timeflow.app.actions.*;
56 import timeflow.app.ui.filter.*;
....@@ -696,7 +697,9 @@
696697 System.out.println("getVisibleFiles = " + dir);
697698 try
698699 {
699
- String[] s = new File(TimeflowApp.class.getClassLoader().getResource(dir).toURI()).list();
700
+ final URL resource = TimeflowApp.class.getClassLoader().getResource(dir);
701
+ System.out.println("resource = " + resource);
702
+ String[] s = new File(resource.toURI()).list();
700703 ArrayList<String> real = new ArrayList<String>();
701704 for (int i = 0; i < s.length; i++)
702705 {
....@@ -709,6 +712,7 @@
709712 }
710713 catch (Exception e)
711714 {
715
+ e.printStackTrace();
712716 return new String[0];
713717 }
714718 }