[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform] Re: How to execute an external program from a plugin

Each bundle gets its own cache space. It should be cleaned up if the bundle gets uninstalled, but otherwise I think it stays unless someone runs with -clean.

In a headless build the shape of the built plugin depends on what the containing feature says for the "unpack" attribute on the plug-in entry.
If not specified, the default is "true", which results in a folder.


If you are running productBuild.xml with a .product, and the container feature is generated for you, then we guess, which is based on whether or not the Bundle-Classpath has a '.' on it.

-Andrew

Remy Chi Jian Suen wrote:
Andrew Niefer wrote:

FileLocator#find(Bundle bundle, IPath path, Map override)
will return a URL for the entry in your bundle.
Then
FileLocator.toFileURL(URL)
will extract the entry to a cache (normally under the configuration/org.eclipse.osgi directory) and return the URL to the location on disk.

Andrew, how long is this cache alive for? Will the file be deleted automagically or...?


 > Stanley Hillner wrote:
 >> if not, how can i export a plugin as a directory so that eclipse is
 >> able to load the plugin like a jar (I just tried to extract the
 >> contents of the exportet jar and add the directory to the
 >> eclipse-plugin folder but as IÂve expected eclipse didnÂt load the
 >> plugin).

There should be a way to export as a directory through the regular export wizard, I've done it before (and continue to do it on occasions when I need to update my application). I'm not sure how to do it through pdebuild though.

Rem