Plug-in Jars in a zip [message #500199] |
Wed, 25 November 2009 05:48  |
Eclipse User |
|
|
|
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 #500468 is a reply to message #500288] |
Thu, 26 November 2009 04:30  |
Eclipse User |
|
|
|
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 10:19  |
Eclipse User |
|
|
|
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 04:30  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.09114 seconds