ControlTier Inc. > Open.ControlTier
 
Font size:      

Object-Exists

Description

Checks if specified object exists in project.

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

setting

A setting object.

deployment

A deployment object.

assembly

A assembly object.

node

A node object.

package

A package object.

Examples

Check if a package object exists

	<object-exits depot="${context.depot}"
                       resultproperty="result"
                       comment="">
          <package
                   name="${rpm.name}"
                   type="Package"/>
	</object-exists>
	<condition property="exists">
          <equals arg1="0" arg2="${result}"/>
	</condition>