| “Strategies in (*)ability” | [iDareMedia] [JWare] [PET] [CI-Dashboard] |
[guide] $reference: |
The $reference: uri (also $ref:) lets you read the current value of a project reference as a string. This uri is most useful in test scripts that need to create and examine project references. This uri’s handler is builtin into AntX; it is always available whenever you enable value URIs.
The general form of the uri is: $ref[erence]:refid where refid is the project reference to be read.
1) The following snippet is part of a test script for the $newrefid: uri handler. It uses the $reference: uri to print the dynamically created references.
<assign var="refid" value="${$newrefid:blah}"/>
<echo message="New RefId: ${$var:refid|$reference:}"/>
<assert isref="${$var:refid}" class="${String.class}"/>
<datadef name="${$newrefid:blah?refid}"/>
<fileset dir="${basedir}" includes="*.xml"/>
</datadef>
<echo message="New RefId: ${$var:refid|$reference:}"/>
<assert isref="${$var:refid}" class="${Fileset.class}"/>