| Bundle Location in RCP [message #334226] | 
Tue, 27 January 2009 08:20   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
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
 |  
 |  
  | 
 | 
 | 
Powered by 
FUDForum. Page generated in 0.06191 seconds