ControlTier Inc. > Open.ControlTier
 
Font size:      

Type-Exists

Description

Determines if type exists in map.

Parameters

AttributeDescriptionRequired
depotThe project to updateYes
resultpropertyProperty to set with success/fail valueYes
commentText describing purpose of updateYes
passfileFile 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>