Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Plug-in Jars in a zip
Plug-in Jars in a zip [message #500199] Wed, 25 November 2009 10:48 Go to next message
Dirk Hoffmann is currently offline Dirk HoffmannFriend
Messages: 163
Registered: July 2009
Senior Member
Hi,

using Eclipse 3.2.2 (Callisto) I have the following problem.

I hava a feature.xml from which I generated all the build.xml files, for
the feature as well as for the plug-ins.

In order to build the feature I run the feature's build.xml with these
targets: clean,build.jars,zip.distribution

The result is a zip file with the name and version of the feature in its
name and features and plugins directories with the respective feature
and plugins.

So far so good. What's wrong with the zip file is the fact that the
feature and the plugins are stored as directories as opposed to jar
files. I need the plug-ins to be packed as jars as is the case with all
the other eclipse packages.

So how can I get the PDE Tools to produce build.xml files that pack jars
into the zip?

Of course I could use
Export...->Plugin Development->Deployable Features
but then I would have to create the name of the zip file on my own.

Sorry for bothering you with such a basic question but even searching
the web couldn't get me an answer that matches my question.

Thanks and Regards,
Dirk
Re: Plug-in Jars in a zip [message #500288 is a reply to message #500199] Wed, 25 November 2009 15:19 Go to previous messageGo to next message
Chris Aniszczyk is currently offline Chris AniszczykFriend
Messages: 674
Registered: July 2009
Senior Member
Dirk Hoffmann wrote:
> Hi,
>
> using Eclipse 3.2.2 (Callisto) I have the following problem.
>
> I hava a feature.xml from which I generated all the build.xml files, for
> the feature as well as for the plug-ins.
>
> In order to build the feature I run the feature's build.xml with these
> targets: clean,build.jars,zip.distribution
>
> The result is a zip file with the name and version of the feature in its
> name and features and plugins directories with the respective feature
> and plugins.
>
> So far so good. What's wrong with the zip file is the fact that the
> feature and the plugins are stored as directories as opposed to jar
> files. I need the plug-ins to be packed as jars as is the case with all
> the other eclipse packages.
>
> So how can I get the PDE Tools to produce build.xml files that pack jars
> into the zip?
>
> Of course I could use
> Export...->Plugin Development->Deployable Features
> but then I would have to create the name of the zip file on my own.
>
> Sorry for bothering you with such a basic question but even searching
> the web couldn't get me an answer that matches my question.

Any reason you're running Eclipse 3.2.2? That version of Eclipse is just
about 4 years old. You can control within your feature.xml via the
unpack attribute whether to unpack your jar or not. If you're Eclipse
3.5+, see this blog post for relevant information.

http://eclipsesource.com/blogs/2009/01/20/tip-eclipse-bundle shape/

Good luck.

Cheers,

Chris Aniszczyk | EclipseSource Austin | +1 860 839 2465
http://twitter.com/eclipsesource | http://twitter.com/caniszczyk
Re: Plug-in Jars in a zip [message #500468 is a reply to message #500288] Thu, 26 November 2009 09:30 Go to previous message
Dirk Hoffmann is currently offline Dirk HoffmannFriend
Messages: 163
Registered: July 2009
Senior Member
Chris Aniszczyk schrieb:
> Dirk Hoffmann wrote:
>> Hi,
>>
>> using Eclipse 3.2.2 (Callisto) I have the following problem.
>>
>> I hava a feature.xml from which I generated all the build.xml files,
>> for the feature as well as for the plug-ins.
>>
>> In order to build the feature I run the feature's build.xml with these
>> targets: clean,build.jars,zip.distribution
>>
>> The result is a zip file with the name and version of the feature in
>> its name and features and plugins directories with the respective
>> feature and plugins.
>>
>> So far so good. What's wrong with the zip file is the fact that the
>> feature and the plugins are stored as directories as opposed to jar
>> files. I need the plug-ins to be packed as jars as is the case with
>> all the other eclipse packages.
>>
>> So how can I get the PDE Tools to produce build.xml files that pack
>> jars into the zip?
>>
>> Of course I could use
>> Export...->Plugin Development->Deployable Features
>> but then I would have to create the name of the zip file on my own.
>>
>> Sorry for bothering you with such a basic question but even searching
>> the web couldn't get me an answer that matches my question.
>
> Any reason you're running Eclipse 3.2.2? That version of Eclipse is just
Yes, there are reasons - unfortunately
> about 4 years old. You can control within your feature.xml via the
> unpack attribute whether to unpack your jar or not. If you're Eclipse
I set that to false for all plug-ins
> 3.5+, see this blog post for relevant information.
>
> http://eclipsesource.com/blogs/2009/01/20/tip-eclipse-bundle shape/
Yes, I found that in another post

Also added
Bundle-ClassPath=.
to all the plug-in's manifest files

But with no success.

Building with PDE really sucks!

>
> Good luck.
Thanks
>
> Cheers,
>
> Chris Aniszczyk | EclipseSource Austin | +1 860 839 2465
> http://twitter.com/eclipsesource | http://twitter.com/caniszczyk
Re: Plug-in Jars in a zip [message #603612 is a reply to message #500199] Wed, 25 November 2009 15:19 Go to previous message
Chris Aniszczyk is currently offline Chris AniszczykFriend
Messages: 674
Registered: July 2009
Senior Member
Dirk Hoffmann wrote:
> Hi,
>
> using Eclipse 3.2.2 (Callisto) I have the following problem.
>
> I hava a feature.xml from which I generated all the build.xml files, for
> the feature as well as for the plug-ins.
>
> In order to build the feature I run the feature's build.xml with these
> targets: clean,build.jars,zip.distribution
>
> The result is a zip file with the name and version of the feature in its
> name and features and plugins directories with the respective feature
> and plugins.
>
> So far so good. What's wrong with the zip file is the fact that the
> feature and the plugins are stored as directories as opposed to jar
> files. I need the plug-ins to be packed as jars as is the case with all
> the other eclipse packages.
>
> So how can I get the PDE Tools to produce build.xml files that pack jars
> into the zip?
>
> Of course I could use
> Export...->Plugin Development->Deployable Features
> but then I would have to create the name of the zip file on my own.
>
> Sorry for bothering you with such a basic question but even searching
> the web couldn't get me an answer that matches my question.

Any reason you're running Eclipse 3.2.2? That version of Eclipse is just
about 4 years old. You can control within your feature.xml via the
unpack attribute whether to unpack your jar or not. If you're Eclipse
3.5+, see this blog post for relevant information.

http://eclipsesource.com/blogs/2009/01/20/tip-eclipse-bundle shape/

Good luck.

Cheers,

Chris Aniszczyk | EclipseSource Austin | +1 860 839 2465
http://twitter.com/eclipsesource | http://twitter.com/caniszczyk
Re: Plug-in Jars in a zip [message #603624 is a reply to message #500288] Thu, 26 November 2009 09:30 Go to previous message
Dirk Hoffmann is currently offline Dirk HoffmannFriend
Messages: 163
Registered: July 2009
Senior Member
Chris Aniszczyk schrieb:
> Dirk Hoffmann wrote:
>> Hi,
>>
>> using Eclipse 3.2.2 (Callisto) I have the following problem.
>>
>> I hava a feature.xml from which I generated all the build.xml files,
>> for the feature as well as for the plug-ins.
>>
>> In order to build the feature I run the feature's build.xml with these
>> targets: clean,build.jars,zip.distribution
>>
>> The result is a zip file with the name and version of the feature in
>> its name and features and plugins directories with the respective
>> feature and plugins.
>>
>> So far so good. What's wrong with the zip file is the fact that the
>> feature and the plugins are stored as directories as opposed to jar
>> files. I need the plug-ins to be packed as jars as is the case with
>> all the other eclipse packages.
>>
>> So how can I get the PDE Tools to produce build.xml files that pack
>> jars into the zip?
>>
>> Of course I could use
>> Export...->Plugin Development->Deployable Features
>> but then I would have to create the name of the zip file on my own.
>>
>> Sorry for bothering you with such a basic question but even searching
>> the web couldn't get me an answer that matches my question.
>
> Any reason you're running Eclipse 3.2.2? That version of Eclipse is just
Yes, there are reasons - unfortunately
> about 4 years old. You can control within your feature.xml via the
> unpack attribute whether to unpack your jar or not. If you're Eclipse
I set that to false for all plug-ins
> 3.5+, see this blog post for relevant information.
>
> http://eclipsesource.com/blogs/2009/01/20/tip-eclipse-bundle shape/
Yes, I found that in another post

Also added
Bundle-ClassPath=.
to all the plug-in's manifest files

But with no success.

Building with PDE really sucks!

>
> Good luck.
Thanks
>
> Cheers,
>
> Chris Aniszczyk | EclipseSource Austin | +1 860 839 2465
> http://twitter.com/eclipsesource | http://twitter.com/caniszczyk
Previous Topic:Providing a SDK
Next Topic:Cheat sheets in modal dialogs
Goto Forum:
  


Current Time: Thu Mar 28 17:39:00 GMT 2024

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

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

Back to the top