configuration - Eclipse OSGI config: relative paths and/or @config.dir-like substitutions? -


in rcp app, point property (osgi.java.profile) file, , prefer using paths relative installation , config dir.

is there definitive spec on kind of variables supported in config.ini?


@config.dir seems supported, there references in builtin, , it's mentioned typical example (e.g this answer ) however, looking @ docs eclipse help/runtime options, mentions few "symbolic locations" @user.home; seems limited , doesn't include @config.dir.

have dug org.eclipse.osgi sources well, , found no references (i did find locationmanager , hard coded variable substitutions @user.dir & co). can refer arbitrary system properties there in way?

is @config.dir special case, handled p2? update: seems case.. looking @ eclipse sdk, .. configuration dialog shows @config.dir unresolved, taken literally equinox..

thanks hints.

i'm late party, others in future.

starting eclipse 3.8/4.2 (june 2012), can substitute java properties , environment variables config.ini file (eclipse bug 241192). equinox launcher not support substitution in eclipse.ini launcher file. syntax uses dollar signs ($variable$) indicate variable substitution:

osgi.configuration.area=$appdata$/mycompany/myprogram/configuration osgi.user.area=$appdata$/mycompany/myprogram/user osgi.instance.area=$appdata$/mycompany/myprogram/instance 

i imagine use purposes:

osgi.java.profile=$osgi.install.area$/path/to/profile.txt 

Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -