Changes between Initial Version and Version 1 of DespoinaLog/2010/09/21


Ignore:
Timestamp:
2010-10-01T23:19:13+02:00 (14 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DespoinaLog/2010/09/21

    v1 v1  
     1= Alternative solution for reaching configuration file  =
     2A 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
     11LOAD it:
     12
     13Properties configFile = new Properties();
     14
     15  try {
     16
     17  configFile.load(new !FileInputStream (INDX));
     18
     19  } catch (IOException e) {
     20
     21http://www.coderanch.com/t/278616/Streams/java/find-workspace-path-at-runtime#1281656
     22
     23http://stevelosh.com/blog/2010/09/coming-home-to-vim/
     24
     25!http://www.jonlee.ca/hacking-vim-the-ultimate-vimrc/