link
Avalon
Avalon Central
Home PlanetProductsCentral
Property Task

The property task can be used to assign a value of a feature of a magic resource or project to a named ant property value. The property creates a new property using the supplied 'name' and assigns to this property the favlue of the requested 'feature' from the resource identified by the value of the 'key' attribute.

    <x:property name="spec" key="cornerstone-threads-impl" feature="spec"/>
    <echo message="${spec}"/>
     [echo] artifact:jar:avalon/cornerstone/cornerstone-threads-impl#2.0.0
Features

Valid feature names supported by the property task are detailed in the following table.

PropertyDescription
name The resource name.
group The resource group.
version The resource version.
type The resource type.
uri The full artifact uri.
path A relative file path that can be used to a locate an artifact relative to a repository root.
spec Short form of uri. The spec value is equivalent to the uri with the "artifact:" protocol identifier.
filename The filename of the final artifact that the resource represents.
short-filename The filename without the file type suffix.