Differences

This shows you the differences between two versions of the page.

Link to this comparison view

bundle_state_location [2014/01/23 18:23]
bundle_state_location [2021/04/05 11:23] (current)
Line 1: Line 1:
 +====== Bundle State Location ======
 +The bundle state location is the path to a meta data folder of the bundle in the workspace where a bundle can put its state and/or temporary stuff.
  
 +Bundle miworkplace.services f. e. has the bundle location:
 +
 +  workspace/.metadata/.plugins/miworkplace.services
 +  
 +The bundle state location can be easily retrieved with the class ''org.eclipse.core.runtime.Platform''.
 +
 +<sxh java>
 +Bundle bundle = Platform.getBundle(PLUGIN_ID);
 +IPath bundleStateLocation = Platform.getStateLocation(bundle);
 +</sxh>
 +
 +{{tag>osgi}}