Bundle Location in RCP [message #334226] |
Tue, 27 January 2009 13:20 |
Madhu Samuel Messages: 199 Registered: July 2009 |
Senior Member |
|
|
Hello,
I have a requirement to get the bundle location.
In the Activator.start() method, I used the statement -
"System.out.println(this.getBundle().getLocation());"
I observed different behaviours in different environments,
If the bundle is executed from Eclipse workspace from Eclipse 3.4, it is
"initial@reference:file:..\workspace\my.plugin".
If the bundle is executed from the exported RCP application from Eclipse
Eclipse 3.4, it is "plugins\my.plugin".
If the bundle is executed from Eclipse workspace from Eclipse 3.2, it is
"update@D:\workspace\my.plugin".
What could be the reason for this difference of behaviour in each case? In
one case its full absolute path, in another case it is relative path.
In one case 'update@' is prefixed in another case
'initial@reference:file:' is prefixed.
What could be reason to prefix the text like 'update@' and
'initial@reference:file:' in front of the location?
How can I get the absolute path of a plugin if its executed from the
workspace or from the exported rcp application.
Hope someone could help me out.
Regards,
Madhu
Regards,
Madhu
http://eclipsebible.com
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03565 seconds