Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Buckminster » Use ant properties in a customized category.xml
Use ant properties in a customized category.xml [message #630600] Mon, 04 October 2010 07:05 Go to next message
Dennis Huebner is currently offline Dennis Huebner
Messages: 204
Registered: July 2009
Senior Member

Hi all!
Some information about the project:
We use buckminster.cpex to manage the build actions. One of them is an
ant actor action which builds the p2 repository. This action have an
prerequisite site.p2. The definition looks like this:

<cs:public name="package.emft-mwe-Update" actor="ant">
<cs:actorProperties>
<cs:property key="buildFile" value="packaging.ant" />
<cs:property key="targets" value="package.site" />
</cs:actorProperties>
<cs:properties>
<cs:property key="package.name" value="emft-mwe-Update" />
</cs:properties>
<cs:prerequisites>
<cs:attribute name="site.p2" alias="repository" />
<cs:attribute name="site.tp" alias="target.platform.repository" />
</cs:prerequisites>
<cs:products alias="output" base="${buckminster.output}/zips/" />
</cs:public>

The packaging.ant script calculates a property "package.qualifier" it
can be a build alias or build id. This property should be used as part
of the category-def name in our category.xml :
<category-def name="mwe${package.qualifier}" label="EMFT MWE
${package.qualifier}">
<description>
EMFT Modeling Workflow Engine (MWE)
</description>
</category-def>

So my question is how to pass the package.qualifier property to site.p2
action?

Best regards,
Dennis.



+Dennis Hübner

--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
Re: Use ant properties in a customized category.xml [message #631257 is a reply to message #630600] Wed, 06 October 2010 13:29 Go to previous messageGo to next message
Alex Kravets is currently offline Alex Kravets
Messages: 380
Registered: November 2009
Senior Member
This feature is not currently present in Buckminster, I too would like to see it. There is a bug for it https://bugs.eclipse.org/bugs/show_bug.cgi?id=322926

Alex
Re: Use ant properties in a customized category.xml [message #633643 is a reply to message #631257] Mon, 18 October 2010 12:07 Go to previous message
Michal Ruzicka is currently offline Michal Ruzicka
Messages: 23
Registered: July 2009
Junior Member
Dne 6.10.2010 19:29, Alex napsal(a):
> This feature is not currently present in Buckminster, I too would like
> to see it. There is a bug for it
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=322926
>
> Alex

I'm afraid that having the properties defined in the ant actor would
still not be enough, since (as far as I know) there is no attempt made
to expand the property references in the category.xml file.
I seem to recall that the Athena based build used the ant's
<expandproperties/> filter [1] for that purpose.
You will need to hack something similar or perhaps use XSLT to
accomplish the task.

[1] http://ant.apache.org/manual/Types/filterchain.html#expandpr operties
Previous Topic:Buckminster builds don't include linked resources
Next Topic:URL parse doesn't find link?
Goto Forum:
  


Current Time: Thu Aug 21 00:31:51 EDT 2014

Powered by FUDForum. Page generated in 0.03108 seconds