exportconfig

Description

Creates an XML configuration file that matches the configuration of an existing entity.

Syntax

Local mode support: Yes.

Command line:

exportconfig [ connect-args | local-args ] [-dir dirname] \
   [-configtype update|create] [-verbose true|false] \
   [-easerverpropsonly true|false ] entity

Ant build file:

<jag_exportconfig [ dir=”dirname”] [configtype=”update|create”]
[verbose=true|false”] [easerverpropsonly “true|false “] 
entity=”entity” />

Option

Description

Default

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

dir

The directory where the file is to be created.

The current directory.

No

configtype

Specifies the value of the type attribute of the configure XML element that is created.

update

No

verbose

Execute in verbose mode.

false

No

easerverpropsonly

Whether the generated XML file should include all properties, or only those properties that are not set in an equivalent J2EE deployment descriptor for the entity. Specify true to exclude properties that are set in the equivalent J2EE deployment descriptor.

false

No

entity

The name of the entity being created, in the form EntityType:EntityName.

-

Yes

The exportconfig command creates the file sybase-easerver-config.xml in the specified directory. The command fails if a file with this name already exists.

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 creates an XML configuration file in the current directory for the component EventSamples/StockManager and specifies create as the configure type:

jagtool exportconfig -configtype create Component:EventSamples/StockManager