Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Plug-in cache
Plug-in cache [message #310092] Mon, 20 November 2006 17:26 Go to next message
Eclipse UserFriend
Originally posted by: wharley.bea.com

Paul Webster wrote in another newsgroup:
> Left to its own devices, Java doesn't do Jars inside other Jars. Eclipse
> plugins that contain jars have the jars extracted to a temporary location
> at runtime so they can be used.

That was always my understanding, but I just went looking and couldn't find
the directory that was being used. Where is it? Is it cleared at any time
other than when the IDE is invoked with the -clean cmd line arg?

I ask because I'm wondering about the possibility that (for certain
proprietary plug-ins written by my company) that cacheing process might run
afoul of the maximum path length limit in Windows, when Eclipse is deployed
to a deep directory tree.
Re: Plug-in cache [message #310101 is a reply to message #310092] Tue, 21 November 2006 08:46 Go to previous messageGo to next message
Eclipse UserFriend
Walter Harley wrote:
> Paul Webster wrote in another newsgroup:
>> Left to its own devices, Java doesn't do Jars inside other Jars. Eclipse
>> plugins that contain jars have the jars extracted to a temporary location
>> at runtime so they can be used.
>
> That was always my understanding, but I just went looking and couldn't find
> the directory that was being used. Where is it? Is it cleared at any time
> other than when the IDE is invoked with the -clean cmd line arg?

It looks to be in the eclipse/configuration directory. ex, in my
installs I end up with:
eclipse/configuration/org.eclipse.osgi/bundles/30/1/.cp/ant_ tasks/pde-ant.jar
eclipse/configuration/org.eclipse.osgi/bundles/16/1/.cp/lib/ antsupportlib.jar
eclipse/configuration/org.eclipse.osgi/bundles/37/1/.cp/ant_ tasks/helpbase-ant.jar
eclipse/configuration/org.eclipse.osgi/bundles/8/1/.cp/lib/a ntrunner.jar
eclipse/configuration/org.eclipse.osgi/bundles/8/1/.cp/lib/r emoteAnt.jar
eclipse/configuration/org.eclipse.osgi/bundles/13/1/.cp/jdtC ompilerAdapter.jar
eclipse/configuration/org.eclipse.osgi/bundles/45/1/.cp/ant_ tasks/resources-ant.jar
eclipse/configuration/org.eclipse.osgi/bundles/66/1/.cp/lib/ launchingsupport.jar


As I understand it, the configuration cache is cleared when you start
with -clean, or the Update Manager asks you to restart to apply changes.

But I could see you running into the patch expansion problem. I guess a
way to shorten the path is to move the configuration area.

Later,
PW
Re: Plug-in cache [message #310113 is a reply to message #310101] Tue, 21 November 2006 16:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wharley.bea.com

Paul Webster" <pwebster@ca.ibm.com> wrote in message
news:ejv01d$cnl$1@utils.eclipse.org...
>
> It looks to be in the eclipse/configuration directory. ex, in my installs
> I end up with:
> eclipse/configuration/org.eclipse.osgi/bundles/30/1/.cp/ant_ tasks/pde-ant.jar
> eclipse/configuration/org.eclipse.osgi/bundles/16/1/.cp/lib/ antsupportlib.jar
> eclipse/configuration/org.eclipse.osgi/bundles/37/1/.cp/ant_ tasks/helpbase-ant.jar
> eclipse/configuration/org.eclipse.osgi/bundles/8/1/.cp/lib/a ntrunner.jar
> eclipse/configuration/org.eclipse.osgi/bundles/8/1/.cp/lib/r emoteAnt.jar
> eclipse/configuration/org.eclipse.osgi/bundles/13/1/.cp/jdtC ompilerAdapter.jar
> eclipse/configuration/org.eclipse.osgi/bundles/45/1/.cp/ant_ tasks/resources-ant.jar
> eclipse/configuration/org.eclipse.osgi/bundles/66/1/.cp/lib/ launchingsupport.jar

Thanks, Paul.

Interestingly, in my eclipse/configuration/org.eclipse.osgi/bundles
directories, I do see contents, but none of them are .jar files; there are a
couple of .class files and mostly resources like .gif and .css. Maybe I've
just hit different bundles?

Do you know what the algorithm is for when something gets cached and whether
it gets unpacked? It doesn't really matter wrt the original question, I'm
just idly interested.
Re: Plug-in cache [message #310126 is a reply to message #310113] Wed, 22 November 2006 08:35 Go to previous message
Eclipse UserFriend
Walter Harley wrote:
>
> Interestingly, in my eclipse/configuration/org.eclipse.osgi/bundles
> directories, I do see contents, but none of them are .jar files; there are a
> couple of .class files and mostly resources like .gif and .css. Maybe I've
> just hit different bundles?
>
> Do you know what the algorithm is for when something gets cached and whether
> it gets unpacked? It doesn't really matter wrt the original question, I'm
> just idly interested.
>

I'm not really sure, but I think OSGi expands things in the config area
that the OSGi framework wants cached ... either for performance or
technical reasons (like jars from within jars). I think if a jar is in
a directory plugin instead of a jar plugin, it doesn't need to be
extracted. But my information here is 3rd-hand.

I do know this is totally different the workspace cache, which does
extract resources into the .metadata directory, but usually in response
to a Platform.asLocalURL(*) call.

Later,
PW
Previous Topic:problem to start Infocenter in 3.2.0
Next Topic:Plugin development: integration of external editor
Goto Forum:
  


Current Time: Wed Jul 16 06:41:20 EDT 2025

Powered by FUDForum. Page generated in 0.07307 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top