Skip to main content



      Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Problem getting all files/folders when unpack="true"
Problem getting all files/folders when unpack="true" [message #49558] Thu, 05 March 2009 20:20 Go to next message
Eclipse UserFriend
I have a plugin (JUnit Max, to be precise) that needs to unpack when it is
installed. (It contains a jar file and you can't have a jar in a jar.) I
set the "Unpack plugin archive after the installation" checkbox in the
feature.xml GUI (I also tried manually setting unpack="true" feature.xml).
In either case, the plugins directory contains a directory for my plugin,
but the icons directory inside my plugin does not appear in the resulting
directory. The icons directory and its contents are there in the plugin
jar file.

This happens in 3.4 and 3.5M4.

Any suggestions for what I should do differently? Is this pilot error or
an Eclipse defect? I tried tracing the code that is invoked when a plugin
is installed, but after a day I'm done.

Regards,

Kent Beck
Three Rivers Consulting, Inc.
www.junitmax.com/junitmax
Re: Problem getting all files/folders when unpack="true" [message #49650 is a reply to message #49558] Fri, 06 March 2009 10:45 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

On 3/5/2009 8:20 PM, Kent Beck wrote:
> I have a plugin (JUnit Max, to be precise) that needs to unpack when it
> is installed. (It contains a jar file and you can't have a jar in a
> jar.) I set the "Unpack plugin archive after the installation" checkbox
> in the feature.xml GUI (I also tried manually setting unpack="true"
> feature.xml). In either case, the plugins directory contains a directory
> for my plugin, but the icons directory inside my plugin does not appear
> in the resulting directory. The icons directory and its contents are
> there in the plugin jar file.

It's just a shot in the dark, but have you checked that the icons
directory is included in build.properties (in the bin.includes
property)? The Build tab of the manifest/plugin.xml editor allows easy
configuration.

Hope this helps,
Eric
Re: Problem getting all files/folders when unpack="true" [message #49679 is a reply to message #49650] Fri, 06 March 2009 11:13 Go to previous message
Eclipse UserFriend
Yes, it's there. If it wasn't, I wouldn't expect the folder to show up in
the plugin jar file, but I discovered that early in the debugging process.

As a further update, I downloaded 3.5M5 yesterday so I thought I would
reproduce the problem with a minimal plug and feature. An hour later I
can't get the most basic site to build and install. Does anyone know if
there are automated tests for scenarios like this?
1. Make an empty plugin
2. Make a feature containing that one plugin
3. Make a site containing that one feature
4. Build the site
5. Install the feature
6. Make sure the resulting plugin is installed correctly

Do these tests pass?

At this point I feel like I'm wasting my time. If every attempt I make to
invest in my product is blocked by problems in Eclipse (or my own
stupidity--I'm open to the possibility that I just can't understand this)
then Eclipse isn't a viable platform for a small-scale ISV. I'll try to
blog thoughtfully about this when I've calmed down.

Regards,

Kent Beck
Re: Problem getting all files/folders when unpack="true" [message #592926 is a reply to message #49558] Fri, 06 March 2009 10:45 Go to previous message
Eclipse UserFriend
On 3/5/2009 8:20 PM, Kent Beck wrote:
> I have a plugin (JUnit Max, to be precise) that needs to unpack when it
> is installed. (It contains a jar file and you can't have a jar in a
> jar.) I set the "Unpack plugin archive after the installation" checkbox
> in the feature.xml GUI (I also tried manually setting unpack="true"
> feature.xml). In either case, the plugins directory contains a directory
> for my plugin, but the icons directory inside my plugin does not appear
> in the resulting directory. The icons directory and its contents are
> there in the plugin jar file.

It's just a shot in the dark, but have you checked that the icons
directory is included in build.properties (in the bin.includes
property)? The Build tab of the manifest/plugin.xml editor allows easy
configuration.

Hope this helps,
Eric
Re: Problem getting all files/folders when unpack="true" [message #592934 is a reply to message #49650] Fri, 06 March 2009 11:13 Go to previous message
Eclipse UserFriend
Yes, it's there. If it wasn't, I wouldn't expect the folder to show up in
the plugin jar file, but I discovered that early in the debugging process.

As a further update, I downloaded 3.5M5 yesterday so I thought I would
reproduce the problem with a minimal plug and feature. An hour later I
can't get the most basic site to build and install. Does anyone know if
there are automated tests for scenarios like this?
1. Make an empty plugin
2. Make a feature containing that one plugin
3. Make a site containing that one feature
4. Build the site
5. Install the feature
6. Make sure the resulting plugin is installed correctly

Do these tests pass?

At this point I feel like I'm wasting my time. If every attempt I make to
invest in my product is blocked by problems in Eclipse (or my own
stupidity--I'm open to the possibility that I just can't understand this)
then Eclipse isn't a viable platform for a small-scale ISV. I'll try to
blog thoughtfully about this when I've calmed down.

Regards,

Kent Beck
Previous Topic:PreferenceStore and AbstractPreferenceInitializer
Next Topic:How do I get the source code?
Goto Forum:
  


Current Time: Thu Mar 13 13:58:40 EDT 2025

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

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

Back to the top