| 1 | = Alternative solution for reaching configuration file = |
| 2 | A solution for reaching the profile file without the actual path : |
| 3 | |
| 4 | 1. place properties file in the same directory with your plugin |
| 5 | 1. File argh = new File(this.getClass().getResource("!LuceneIndexConfiguration.properties").getFile().replace("%20", " ")); |
| 6 | |
| 7 | System.out.println(argh.getAbsolutePath()); |
| 8 | |
| 9 | INDX = argh.getAbsolutePath(); //this is your path |
| 10 | |
| 11 | LOAD it: |
| 12 | |
| 13 | Properties configFile = new Properties(); |
| 14 | |
| 15 | try { |
| 16 | |
| 17 | configFile.load(new !FileInputStream (INDX)); |
| 18 | |
| 19 | } catch (IOException e) { |
| 20 | |
| 21 | http://www.coderanch.com/t/278616/Streams/java/find-workspace-path-at-runtime#1281656 |
| 22 | |
| 23 | http://stevelosh.com/blog/2010/09/coming-home-to-vim/ |
| 24 | |
| 25 | !http://www.jonlee.ca/hacking-vim-the-ultimate-vimrc/ |