Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Individual Source Bundle
Individual Source Bundle [message #41339] Wed, 21 January 2009 19:15 Go to next message
Manuel Selva is currently offline Manuel SelvaFriend
Messages: 189
Registered: July 2009
Location: Grenoble, France
Senior Member
Hi there,

I am trying to set up an automated build using PDE headeless build able to
build source for my plugins.

All worked fine previously to 3.4. I am trying now to export my source
plugins as individual bundle but I can't find the right way to do that.

More precisely I have an example feature containing 3 examples plugins:

com.st.example.a
com.st.example.b
com.st.example.c

In my example feature build.properties I added the generation of source
plugin for these 3 plugins. In the feature.xml I included the 3 plugins
and the 3 associated "generated" source plugins.

When running pde headless build with IndividualSourceBundles=true, three
source plugins are generated but in directories and not as jar files. Is
it normal ?

Then when I try to import one of my example plugin as source I reach an
error telling : error in opening zip file.
After stepping inside PDE code it seems PDE is looking for sources inside
a jar file and not inside a directory ... i think this is the source of my
problem ...

Any ideas are welcome ... Anyone already using successfully
IndividualSourceBundle ? Should i stay with one source plugin for my 3
plugins ... :o(

Manu


Re: Individual Source Bundle [message #41603 is a reply to message #41339] Thu, 22 January 2009 18:29 Go to previous messageGo to next message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
Hi Manuel,
The shape of bundles (folder or jar) is currently determined by the
feature that includes them (the unpack attribute). If the feature does
not specify the unpack attribute, the default value is "true" (which
results in a folder).

To get your source bundles to be jared, add unpack="false" to their
entries in your feature.xml.

-Andrew

Manuel Selva wrote:
> Hi there,
>
> I am trying to set up an automated build using PDE headeless build able
> to build source for my plugins.
>
> All worked fine previously to 3.4. I am trying now to export my source
> plugins as individual bundle but I can't find the right way to do that.
>
> More precisely I have an example feature containing 3 examples plugins:
>
> com.st.example.a
> com.st.example.b
> com.st.example.c
>
> In my example feature build.properties I added the generation of source
> plugin for these 3 plugins. In the feature.xml I included the 3 plugins
> and the 3 associated "generated" source plugins.
>
> When running pde headless build with IndividualSourceBundles=true, three
> source plugins are generated but in directories and not as jar files. Is
> it normal ?
>
> Then when I try to import one of my example plugin as source I reach an
> error telling : error in opening zip file. After stepping inside PDE
> code it seems PDE is looking for sources inside a jar file and not
> inside a directory ... i think this is the source of my problem ...
>
> Any ideas are welcome ... Anyone already using successfully
> IndividualSourceBundle ? Should i stay with one source plugin for my 3
> plugins ... :o(
>
> Manu
Re: Individual Source Bundle [message #41726 is a reply to message #41603] Fri, 23 January 2009 07:33 Go to previous message
Manuel Selva is currently offline Manuel SelvaFriend
Messages: 189
Registered: July 2009
Location: Grenoble, France
Senior Member
Many thanks Andrew !!!!

It works perfectly now !!! You helped me twice in my headless build setup,
thanks again.

I'll post on my blog about the fact that individual source plugins MUST be
packaged as jar otherwise Eclipse is not able to import projects as
sources. May be I should open a bug entry for that ....

Manu


Re: Individual Source Bundle [message #590161 is a reply to message #41339] Thu, 22 January 2009 18:29 Go to previous message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
Hi Manuel,
The shape of bundles (folder or jar) is currently determined by the
feature that includes them (the unpack attribute). If the feature does
not specify the unpack attribute, the default value is "true" (which
results in a folder).

To get your source bundles to be jared, add unpack="false" to their
entries in your feature.xml.

-Andrew

Manuel Selva wrote:
> Hi there,
>
> I am trying to set up an automated build using PDE headeless build able
> to build source for my plugins.
>
> All worked fine previously to 3.4. I am trying now to export my source
> plugins as individual bundle but I can't find the right way to do that.
>
> More precisely I have an example feature containing 3 examples plugins:
>
> com.st.example.a
> com.st.example.b
> com.st.example.c
>
> In my example feature build.properties I added the generation of source
> plugin for these 3 plugins. In the feature.xml I included the 3 plugins
> and the 3 associated "generated" source plugins.
>
> When running pde headless build with IndividualSourceBundles=true, three
> source plugins are generated but in directories and not as jar files. Is
> it normal ?
>
> Then when I try to import one of my example plugin as source I reach an
> error telling : error in opening zip file. After stepping inside PDE
> code it seems PDE is looking for sources inside a jar file and not
> inside a directory ... i think this is the source of my problem ...
>
> Any ideas are welcome ... Anyone already using successfully
> IndividualSourceBundle ? Should i stay with one source plugin for my 3
> plugins ... :o(
>
> Manu
Re: Individual Source Bundle [message #590207 is a reply to message #41603] Fri, 23 January 2009 07:33 Go to previous message
Manuel Selva is currently offline Manuel SelvaFriend
Messages: 189
Registered: July 2009
Location: Grenoble, France
Senior Member
Many thanks Andrew !!!!

It works perfectly now !!! You helped me twice in my headless build setup,
thanks again.

I'll post on my blog about the fact that individual source plugins MUST be
packaged as jar otherwise Eclipse is not able to import projects as
sources. May be I should open a bug entry for that ....

Manu


Previous Topic:Product export uses wrong bundle version
Next Topic:Show two editors
Goto Forum:
  


Current Time: Sat Jun 19 23:10:31 GMT 2021

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

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

Back to the top