|
|
|
Re: p2.gathering causing target does not exist error [message #493943 is a reply to message #493775] |
Wed, 28 October 2009 15:06 |
Andrew Niefer Messages: 990 Registered: July 2009 |
Senior Member |
|
|
Yes, those are the correct targets, though I would not have expected
them to be necessary in the latest allElements.xml.
The allElements.xml has:
<property name="defaultAssemblyEnabled" value="true" />
...
<target name="defaultAssemble">
<ant antfile="${assembleScriptName}" dir="${buildDirectory}" />
</target>
This "defaultAssemblyEnabled" means the allElements has the default
assemble target, and in this case we would expect both the
group.group.group and p2 configs to use this default target without
needing to add explicit "assemble.*.group.group.group" targets.
Also, in when the defaultAssemble is enabled, to use the non-default
targets, you actually need to define a property for each config like this:
<property name="assemble.com.acme.myfeature.p2" value="true" />
<target name="assemble.com.acme.myfeature.p2">
<ant antfile="${assembleScriptName}" dir="${buildDirectory}"/>
</target>
This property "assemble.com.acme.myfeature.p2" means use that target
instead of the default target.
-Andrew
Franck wrote:
> Andrew Niefer wrote on Tue, 27 October 2009 13:43
>> You must have an older allElements.xml.
>> You can add a target to your allElements.xml:
>>
>> <target name="assemble.com.acme.eclipse.features.myFeature.p2">
>> <ant antfile="${assembleScriptName}" dir="${buildDirectory}"/>
>> </target>
>
>
> Thanks for looking at this Andrew, that was indeed the issue. I have the
> latest allElements.xml, but I had no idea that config.spec was to be
> replaced by p2 in "assemble.element.id[.config.spec]"...
>
> So for the record the targets needed in allElements.xml for a
> config-neutral feature build with p2.gathering = true are
>
> <target name="assemble.com.acme.myfeature.group.group.group">
> <ant antfile="${assembleScriptName}" dir="${buildDirectory}"/>
> </target>
>
> <target name="assemble.com.acme.myfeature.p2">
> <ant antfile="${assembleScriptName}" dir="${buildDirectory}"/>
> </target>
>
>
|
|
|
|
|
Re: p2.gathering causing target does not exist error [message #602982 is a reply to message #493775] |
Wed, 28 October 2009 15:06 |
Andrew Niefer Messages: 990 Registered: July 2009 |
Senior Member |
|
|
Yes, those are the correct targets, though I would not have expected
them to be necessary in the latest allElements.xml.
The allElements.xml has:
<property name="defaultAssemblyEnabled" value="true" />
...
<target name="defaultAssemble">
<ant antfile="${assembleScriptName}" dir="${buildDirectory}" />
</target>
This "defaultAssemblyEnabled" means the allElements has the default
assemble target, and in this case we would expect both the
group.group.group and p2 configs to use this default target without
needing to add explicit "assemble.*.group.group.group" targets.
Also, in when the defaultAssemble is enabled, to use the non-default
targets, you actually need to define a property for each config like this:
<property name="assemble.com.acme.myfeature.p2" value="true" />
<target name="assemble.com.acme.myfeature.p2">
<ant antfile="${assembleScriptName}" dir="${buildDirectory}"/>
</target>
This property "assemble.com.acme.myfeature.p2" means use that target
instead of the default target.
-Andrew
Franck wrote:
> Andrew Niefer wrote on Tue, 27 October 2009 13:43
>> You must have an older allElements.xml.
>> You can add a target to your allElements.xml:
>>
>> <target name="assemble.com.acme.eclipse.features.myFeature.p2">
>> <ant antfile="${assembleScriptName}" dir="${buildDirectory}"/>
>> </target>
>
>
> Thanks for looking at this Andrew, that was indeed the issue. I have the
> latest allElements.xml, but I had no idea that config.spec was to be
> replaced by p2 in "assemble.element.id[.config.spec]"...
>
> So for the record the targets needed in allElements.xml for a
> config-neutral feature build with p2.gathering = true are
>
> <target name="assemble.com.acme.myfeature.group.group.group">
> <ant antfile="${assembleScriptName}" dir="${buildDirectory}"/>
> </target>
>
> <target name="assemble.com.acme.myfeature.p2">
> <ant antfile="${assembleScriptName}" dir="${buildDirectory}"/>
> </target>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03418 seconds