Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » qualifier replacement in site.xml
qualifier replacement in site.xml [message #336827] Mon, 06 July 2009 05:01 Go to next message
Laurent Marchal is currently offline Laurent Marchal
Messages: 91
Registered: July 2009
Member
Hello,

I am currently building an update site with the PDE headless build, I
saw that there is no automatic way to replace the .qualifier in the
site.xml file.

I would like to replace it using an ant "replace" task but I can't find
wich property/variable is holding the qualifier value ?

<!-- replace the qualifier in site.xml -->
<replace file="${UpdateSiteStagingLocation}/site.xml" token="qualifier"
value="${version.qualifier}"/>


Thanks.
Laurent Marchal.
Re: qualifier replacement in site.xml [message #336828 is a reply to message #336827] Mon, 06 July 2009 05:42 Go to previous messageGo to next message
Marco Maccaferri is currently offline Marco Maccaferri
Messages: 132
Registered: July 2009
Senior Member
On 06/07/2009 11:01 Laurent Marchal ha scritto:

> I am currently building an update site with the PDE headless build, I
> saw that there is no automatic way to replace the .qualifier in the
> site.xml file.
>
> I would like to replace it using an ant "replace" task but I can't find
> wich property/variable is holding the qualifier value ?

I'm using the properties from finalFeaturesVersions.properties generated
by the headless build to replace the version tokens in a site.xml
template file.

Something like that:

<copy file="${buildDirectory}/site.template"
tofile="${buildDirectory}/updates/site.xml" overwrite="true">
<filterset
filtersfile="${buildDirectory}/finalFeaturesVersions.properties "/>
</copy>

The entries in the site.template file are like this:

<feature url="features/org.apache.log4j_@org.apache.log4j>@.jar"
id="org.apache.log4j" version="@org.apache.log4j@">

Hope this helps.

Regards,
Marco.
Re: qualifier replacement in site.xml [message #336831 is a reply to message #336828] Mon, 06 July 2009 09:20 Go to previous message
Laurent Marchal is currently offline Laurent Marchal
Messages: 91
Registered: July 2009
Member
Yes thanks Marco it's a perfect solution !

Cheers.
Laurent.

Marco Maccaferri a écrit :
>
> On 06/07/2009 11:01 Laurent Marchal ha scritto:
>
>> I am currently building an update site with the PDE headless
>> build, I saw that there is no automatic way to replace the .qualifier
>> in the site.xml file.
>>
>> I would like to replace it using an ant "replace" task but I can't
>> find wich property/variable is holding the qualifier value ?
>
> I'm using the properties from finalFeaturesVersions.properties generated
> by the headless build to replace the version tokens in a site.xml
> template file.
>
> Something like that:
>
> <copy file="${buildDirectory}/site.template"
> tofile="${buildDirectory}/updates/site.xml" overwrite="true">
> <filterset
> filtersfile="${buildDirectory}/finalFeaturesVersions.properties "/>
> </copy>
>
> The entries in the site.template file are like this:
>
> <feature url="features/org.apache.log4j_@org.apache.log4j>@.jar"
> id="org.apache.log4j" version="@org.apache.log4j@">
>
> Hope this helps.
>
> Regards,
> Marco.
Previous Topic:Eclipse freezes after stopping at breakpoint in a static block
Next Topic:Tracking cursor / current line in StyledText
Goto Forum:
  


Current Time: Thu Aug 21 02:18:26 EDT 2014

Powered by FUDForum. Page generated in 0.01736 seconds