Chapter 13 Using jagtool and jagant
Creates a new entity in the repository.
Command line:
create entity [file]
Ant build file, specifying properties from an optional file:
<jag_create entity="entity" [ file="file"] />
Ant build file, specifying properties directly:
<jag_create entity="entity" > <property name="name" value="value" /> .... </jag_create>
| Option | Description | Required | 
|---|---|---|
| entity | The name of the entity being created, in the form EntityType:EntityName. | Yes | 
| file | An optional file containing properties for the entity. The file must specify properties in the form of an EAServer repository properties file. | No | 
| name | The property name. In an Ant build file,
you may specify multiple properties as <property>elements. | When setting properties directly in Ant. | 
| value | The property value. | When setting properties directly in Ant. | 
This example creates a package named NewPackage with the properties defined in the file NewPackage.props.
jagtool create Package:NewPackage NewPackage.props
<jag_create entity="Package:NewPackage" file="NewPackage.props" />
This example creates a package named NewPackage2 and sets the given properties. This alternate syntax allows properties for the new entity to be specified in the command.
<jag_create entity="NewPackage2"> <property name="com.sybase.jaguar.description" value=Sample Package" /> <property name="com.sybase.jaguar.package.roles" value="role1" /> </jag_create>
| Copyright © 2002 Sybase, Inc. All rights reserved. |   | |