Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » How to export source in headless build?
How to export source in headless build? [message #603055] Mon, 02 November 2009 09:14 Go to next message
Matthias Kohles is currently offline Matthias KohlesFriend
Messages: 71
Registered: July 2009
Member
Hey all,

it's me again :)

I saw the "exportSource" option in the eclipse.exportFeature ant task, which will generate a plugin containing the source code of the rcp application.

My question now is, how can i do this in my headless build by using the eclipse pde scripts (genericTargets, customTargets ...) ???

best regards

Matthias
Re: How to export source in headless build? [message #603059 is a reply to message #603055] Mon, 02 November 2009 12:54 Go to previous messageGo to next message
Matthias Kohles is currently offline Matthias KohlesFriend
Messages: 71
Registered: July 2009
Member
update:

i figured something out. I just looked at the build.properties of my feature and saw that there is a line like this:

mailto:generate.plugin@com.myplugin.source=...

Now the problem is, that the generated build.xml files by the pde scripts are not considering the build.properties of the features/plugins and therefore "com.myplugin.source" will never be created.

how can i force the build.xml of this feature to consider his build.properties and generate the plugin?

best regards

Matthias
Re: How to export source in headless build? [message #603069 is a reply to message #603059] Mon, 02 November 2009 15:31 Go to previous messageGo to next message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
There is some documentation here:
http://help.eclipse.org/galileo/topic/org.eclipse.pde.doc.us er/tasks/pde_source_generation.htm

Basically, you need to include the source plugins/features in the
feature that you are building. When build sees the inclusion for
something that doesn't exist, it checks the "generate.plugin" and
"generate.feature" properties to see if it should generate the missing
thing as source.

Example:
com.feature
- include com.myplugin
- include com.myplugin.source <- this doesn't exist
build.properties
generate.plugin@com.myplugin.source=com.myplugin
^-this tells build to generate com.myplugin.source
from com.myplugin

For both generate.plugin & generate.feature, the actuall generation is
trigger by the inclusion in your feature structure.

For export, PDE/UI is actually generating some features with the
required inclusions for you.

-Andrew

Matthias Kohles wrote:
> update:
> i figured something out. I just looked at the build.properties of my
> feature and saw that there is a line like this:
>
> mailto:generate.plugin@com.myplugin.source=...
>
> Now the problem is, that the generated build.xml files by the pde
> scripts are not considering the build.properties of the features/plugins
> and therefore "com.myplugin.source" will never be created.
>
> how can i force the build.xml of this feature to consider his
> build.properties and generate the plugin?
>
> best regards
>
> Matthias
Re: How to export source in headless build? [message #603073 is a reply to message #603055] Mon, 02 November 2009 16:02 Go to previous message
Matthias Kohles is currently offline Matthias KohlesFriend
Messages: 71
Registered: July 2009
Member
Hey,

thanks for your help.

I just figured out what i'm doing wrong.

I had the property "IndividualSourceBundles" set to true in my top level build.properties.
After i had set it to "false", the build generated the plugin and feature for the sources.

best regards,

Matthias
Previous Topic:How to export source in headless build?
Next Topic:Imported JUnit package is not resolved
Goto Forum:
  


Current Time: Fri Apr 19 08:47:21 GMT 2024

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

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

Back to the top