Skip to main content



      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 07:05 Go to next message
Eclipse UserFriend
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.
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
Eclipse UserFriend
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
Eclipse UserFriend
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: Sun Jul 27 02:15:31 EDT 2025

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

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

Back to the top