Menu

#126 move properties from jar to install-dir

open-accepted
nobody
Xinity RCP (6)
5
2004-10-18
2004-10-18
tobias.weih
No

the rcpclient.properties are located within the -jar of the client-plugin. thats nonsense. it should be located in /configuration/org.xinity.client/...

you might find the code below useful.
String Plugindir =
Platform.resolve(pluginclass.getDefault().getDescriptor().getInstallURL()).getFile();

that will give you the exact path to the plugin root

Discussion

  • tobias.weih

    tobias.weih - 2004-10-18
    • status: open --> open-accepted
     
  • tobias.weih

    tobias.weih - 2004-10-18

    Logged In: YES
    user_id=1004840

    *********
    COMMENTS
    *********
    Tobias(13.10.04 15:19:41):
    The way to do it that doesn't involve now deprecated methods is: Platform.resolve(pluginclass.getDefault().getBundle().getEntry("/")).getFile(); But be aware this still may not produce a system file path. The plugin location may actually be within a jar file, or it may be on another system.
    ------

     
  • tobias.weih

    tobias.weih - 2004-10-27

    Logged In: YES
    user_id=1004840

    *********
    COMMENTS
    *********
    Tobias(13.10.04 15:19:41):
    The way to do it that doesn't involve now deprecated methods is: Platform.resolve(pluginclass.getDefault().getBundle().getEntry("/")).getFile(); But be aware this still may not produce a system file path. The plugin location may actually be within a jar file, or it may be on another system.
    ------

     
  • tobias.weih

    tobias.weih - 2004-10-27

    Logged In: YES
    user_id=1004840

    *********
    COMMENTS
    *********
    Tobias(13.10.04 15:19:41):
    The way to do it that doesn't involve now deprecated methods is: Platform.resolve(pluginclass.getDefault().getBundle().getEntry("/")).getFile(); But be aware this still may not produce a system file path. The plugin location may actually be within a jar file, or it may be on another system.
    ------

     
  • tobias.weih

    tobias.weih - 2004-10-30

    Logged In: YES
    user_id=1004840

    *********
    COMMENTS
    *********
    Tobias(13.10.04 15:19:41):
    The way to do it that doesn't involve now deprecated methods is: Platform.resolve(pluginclass.getDefault().getBundle().getEntry("/")).getFile(); But be aware this still may not produce a system file path. The plugin location may actually be within a jar file, or it may be on another system.
    ------

     
  • tobias.weih

    tobias.weih - 2004-11-02

    Logged In: YES
    user_id=1004840

    *********
    COMMENTS
    *********
    Tobias(13.10.04 15:19:41):
    The way to do it that doesn't involve now deprecated methods is: Platform.resolve(pluginclass.getDefault().getBundle().getEntry("/")).getFile(); But be aware this still may not produce a system file path. The plugin location may actually be within a jar file, or it may be on another system.
    ------

     

Log in to post a comment.