Determines whether or not a specified entity is present in the configuration repository.
exists [ connect-args | local-args ] entity
<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 |
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. |
This example determines whether the component SVULogin in package SVU exists:
Command line:
jagtool exists Component:SVU/SVULogin
Ant build file:
This example does the same, and sets the property svulogin.exists
if
the component exists. If it does not exist, the property is not
set.
<jag_exists entity="Component:SVU/SVULogin" property="svulogin.exists" />
Copyright © 2005. Sybase Inc. All rights reserved. |