Chapter 13 Using jagtool and jagant
Sets properties for an entity in the repository. Properties can be set by specifying either a names and values or a properties file.
Command line:
set_props entity [ name value ] | [ file ]
Ant build file, specifying a property file to read:
<jag_set_props entity="entity" file="file" />
Ant build file, specifying properties directly:
<jag_set_props entity="entity" /> <property name="name" value="value"> ... </jag_set_props>
Option | Description | Required |
---|---|---|
entity | The entity identifier for the entity whose properties are being set. | Always. |
name | The property name. In an Ant build file,
you may specify multiple properties as <property>
elements.
|
When setting properties directly. |
value | The property value. | When setting properties directly. |
file | The name of a property file. Files must specify properties in the format of an EAServer properties file. | When setting properties using a properties file. |
This example sets the description for the entity Package:SVU.
jagtool set_props Package:SVU com.sybase.jaguar.description "This is the SVU Package"
<jag_set_props entity="Package:SVU"> <property name="com.sybase.jaguar.description" value="This is the SVU Package" /> </jag_set_props>
This example sets the properties for Package:SVU from the file SVU.props.
jagtool set_props Package:SVU SVU.props
<jag_set_props entity="Package:SVU" file="SVU.props" />
You can use the Ant build file to specify multiple properties. For example, this declaration sets the values for the com.sybase.jaguar.description and com.sybase.jaguar.package.roles properties for Package:SVU.
<jag_set_props entity="Package:SVU" /> <property name="com.sybase.jaguar.description" value="This is the SVU Package" /> <property name="com.sybase.jaguar.package.roles" value="jagadmin,role1" /> </jag_set_props>
Appendix B, "Repository Properties Reference"
Copyright © 2002 Sybase, Inc. All rights reserved. |
![]() |