enventry  export

Chapter 12: Using jagtool and jagant

exists

Description

Determines whether or not a specified entity is present in the configuration repository.

Syntax

Local mode support: Yes.

Command line:

exists [ connect-args | local-args ] entity

Ant build file:

<jag_exists entity=”entity” property=”ant_property”>

Option

Description

Required

connect-args | local-args

Arguments to specify a connection to the server or to run in local mode. See “Local versus connected mode”.

Yes

entity

The entity identifier in the form EntityType:EntityName.

Always

ant_property

The name of the Ant build property to set if the entity exists.

When using Ant

Returns

Return value

Indicates

0

The command ran successfully; the result is true/success.

1

The command ran successfully; the result is false/failure.

2

The command did not run successfully; an exception was thrown.

Examples

Example 1

This example determines whether the component SVULogin in package SVU exists:





Copyright © 2005. Sybase Inc. All rights reserved. export