The task returns a list of property names contained in the specified PropertySet. Refer to Ant documentation for more information on the PropertySet type. If a PropertySet is omitted, all property names will be returned.

Attributes

The task supports Build Extensions Debugging Attributes, as well as, its own task specific attributes. Click on a link for more information on the common attributes.

The following table describes the task specific attributes for the task:

Task Specific Attributes
Attribute Description Required
property Name of the Ant property in which to store the property name list. Yes

Examples

Get property name list

<project name="DropBuildProperties" xmlns:ac="antlib:net.sf.antcontrib">
    
    <xt:propertyNameList property="propertyNames">
        <propertyset id="get.propertyList">
            <propertyref prefix="com."/>
            <propertyref prefix="dir."/>
            <propertyref prefix="jvm."/>
            <propertyref prefix="rtc."/>
            <propertyref prefix="scm."/>
            <propertyref prefix="team."/>
            <propertyref prefix="temp."/>
            <propertyref name="buildDefinitionId"/>
            <propertyref name="buildEngineHostName"/>
            <propertyref name="buildEngineId"/>
            <propertyref name="buildLabel"/>
            <propertyref name="buildLabelPrefix"/>
            <propertyref name="buildRequesterUserId"/>
            <propertyref name="buildResultUUID"/>
        </propertyset>
    </xt:propertyNameList>
    
    <ac:for list="${propertyNames}" delimiter="," param="propertyName">
        <sequential>
            <echo level="verbose">Dropping property: [@{propertyName}]</echo>
            <ac:var unset="true" name="@{propertyName}"/>
        </sequential>
    </ac:for>
    
</project>