Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » Use ant properties in a customized category.xml
Use ant properties in a customized category.xml [message #630600] Mon, 04 October 2010 11:05 Go to next message
Dennis Huebner is currently offline Dennis HuebnerFriend
Messages: 257
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 Huebner

Get professional support from the Xtext committers at www.typefox.io
Re: Use ant properties in a customized category.xml [message #631257 is a reply to message #630600] Wed, 06 October 2010 17:29 Go to previous messageGo to next message
Alex Kravets is currently offline Alex KravetsFriend
Messages: 561
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 16:07 Go to previous message
Michal Ruzicka is currently offline Michal RuzickaFriend
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: Tue Sep 24 12:57:43 GMT 2024

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

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

Back to the top