Chapter 13 Using jagtool and jagant


create

Description

Creates a new entity in the repository.

Syntax

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.

Examples

This example creates a package named NewPackage with the properties defined in the 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.

 


Copyright © 2002 Sybase, Inc. All rights reserved.