Font size:
Type-Exists
Description
Determines if type exists in map.
Parameters
| Attribute | Description | Required |
|---|---|---|
| depot | The project to update | Yes |
| resultproperty | Property to set with success/fail value | Yes |
| comment | Text describing purpose of update | Yes |
| passfile | File containing authentication info to server. If passfile is not specified, information from the framework.properties file is used instead. | No |
Parameters specified as nested elements
typereference
A typereference specifying type to check.
Examples
Fail the command unless type, MyType, exists.
<type-exists
depot="${entity.depot}"
resultproperty="rs"
comment="">
<typereference name="MyType"/>
</type-exists>
<condition property="typeExists">
<equals arg1="0" arg2="${rs}"/>
</condition>
<fail unless="typeExists">Type 'MyType' does not exist in map
for project '${entity.depot}'</fail>


