[pde-build] Headless feature build if feature directory name and feature id differ [message #331886] |
Fri, 26 September 2008 10:43  |
Eclipse User |
|
|
|
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 15:12   |
Eclipse User |
|
|
|
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 06:43  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.05722 seconds