Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » [pde-build] Headless feature build if feature directory name and feature id differ
[pde-build] Headless feature build if feature directory name and feature id differ [message #331886] Fri, 26 September 2008 14:43 Go to next message
Daniel Krügler is currently offline Daniel KrüglerFriend
Messages: 853
Registered: July 2009
Senior Member
Hi,

I'm going to do a headless feature build and the first thing,
which bite me was the fact that my feature id was different
from it's directory name. I know, that I have to specify the
feature id in the allElements.xml, but where do I specify
the proper path location, such that the headless build can
find it? Please let me add, that I need to support Eclipse
3.3.2, so I cannot rely on PDE-build extensions of Eclipse
3.4*.

Thanks for your input,

Daniel Krügler
Re: [pde-build] Headless feature build if feature directory name and feature id differ [message #331893 is a reply to message #331886] Fri, 26 September 2008 19:12 Go to previous messageGo to next message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
Try using something like the following in your allElements.xml
<target name="allElementsDelegator">
<ant antfile="${genericTargets}" target="${target}">
<property name="type" value="feature" />
<property name="id" value="org.foo.feature.id" />
<property name="elementPath" value="C:/real/path/to/feature" />
</ant>
</target>

This delegator calls the genericTargets.xml script in pde.build. If you
look there, you can see that the targets all use ${elementPath}, which
is set by default in the genericTargets.xml/init target. Specifying it
in the ant call should use your value instead of that default value.

-Andrew

Daniel Krügler wrote:
> Hi,
>
> I'm going to do a headless feature build and the first thing,
> which bite me was the fact that my feature id was different
> from it's directory name. I know, that I have to specify the
> feature id in the allElements.xml, but where do I specify
> the proper path location, such that the headless build can
> find it? Please let me add, that I need to support Eclipse
> 3.3.2, so I cannot rely on PDE-build extensions of Eclipse
> 3.4*.
>
> Thanks for your input,
>
> Daniel Krügler
Re: [pde-build] Headless feature build if feature directory name and feature id differ [message #331917 is a reply to message #331893] Mon, 29 September 2008 10:43 Go to previous message
Daniel Krügler is currently offline Daniel KrüglerFriend
Messages: 853
Registered: July 2009
Senior Member
Andrew Niefer wrote:
> Try using something like the following in your allElements.xml
> <target name="allElementsDelegator">
> <ant antfile="${genericTargets}" target="${target}">
> <property name="type" value="feature" />
> <property name="id" value="org.foo.feature.id" />
> <property name="elementPath" value="C:/real/path/to/feature" />
> </ant>
> </target>
>
> This delegator calls the genericTargets.xml script in pde.build. If you
> look there, you can see that the targets all use ${elementPath}, which
> is set by default in the genericTargets.xml/init target. Specifying it
> in the ant call should use your value instead of that default value.

Thanks Andrew for your ongoing interest - your help is
really acknowledged!

My personal suggestion would be that the Eclipse help should mention
the meaning of the property "elementPath" for feature builds, similar
to that of "id" and "type".

Thanks again,

Daniel
Previous Topic:headless (feature) build obscurities
Next Topic:Problem Installing plug-ins on Ganymede through P2 Update Manager on Windows Vista
Goto Forum:
  


Current Time: Tue Jul 16 14:15:48 GMT 2024

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

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

Back to the top