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 #494698] 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 Smile

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 #494739 is a reply to message #494698] 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
ok, i just figured out whats causing my problem.

The eclipse.buildscript ant task fails to generate the build.xml file for my feature because he is unable to find the plugin "com.myplugin.source". In the feature's build.properties, there is a line like this:

generate.plugin(at)com.myplugin.source=com.myfeature.sdk

So how can i generate this source plugin within my scrpts (for example in customTargets??). Is it even possible? Because i have to generate the plugin before the eclipse.buildscript task is started.

best regards,

Matthias

[Updated on: Mon, 02 November 2009 13:20]

Report message to a moderator

Re: How to export source in headless build? [message #494774 is a reply to message #494739] 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 #494781 is a reply to message #494698] 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:Getting position (Point) of text cursor in editor
Next Topic:How to export source in headless build?
Goto Forum:
  


Current Time: Fri Apr 26 10:14:03 GMT 2024

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

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

Back to the top