JWare Logo  “Strategies in (*)ability” [iDareMedia] [JWare] [PET] [CI-Dashboard]
<JWare/AntXtras Foundation>

 [home]    [overview] [download] [learning] [problems] [ourplans]    [contacts] [legalese

[guide] $reference:UG

home » learning » guides » valueuris » $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.

Parameters

The general form of the uri is: $ref[erence]:refid where refid is the project reference to be read.

Examples

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}"/>

Related Topics

  • The $property: or $prop: uri lets you extract an Ant property’s current value.
  • The $variable: or $var: uri lets you extract an AntX variable property’s current value.
SourceForge.net Logo
Copyright ©2005-2006 iDare Media, Inc. All rights reserved.
 
JWare/AntXtras uses software developed by and on behalf of the Apache Software Foundation, http://www.apache.org/.
All other product names mentioned on this website are trademarks of their respective owners; refer to full legalese statement.