fteAnt (run Ant tasks in a IBM MQ Managed File Transfer environment)

The fteAnt command runs Ant scripts in an environment that has IBM® MQ Managed File Transfer Ant tasks available.

Purpose

Use the fteAnt command to run an Ant script in an environment with IBM MQ Managed File Transfer. Unlike the standard ant command, fteAnt requires that you define a script file.

The fteAnt command cannot be run directly on an IBM 4690 system. However, an IBM 4690 system can be referred to by an Ant script. For more information about using IBM MQ Managed File Transfer in the IBM 4690 environment, see Using IBM MQ Managed File Transfer in a retail environment

Syntax

fteAnt

Read syntax diagramSkip visual syntax diagramfteAnt-d-debug-q-quiet-v-verbose-k-keep-going-Dproperty=value-propertyfile (name) -f (Ant script)-file (Ant script)-buildfile (Ant script)(targets)

Parameters

-debug or -d
Optional. Generate debugging output.

-quiet or -q
Optional. Generate minimal output.

-verbose or -v
Optional. Generate verbose output.

-keep-going or -k
Optional. Execute all targets that do not depend on failed targets.

-D property=value
Optional. Use value for a given property. Properties that are set with -D take precedence over those set in a properties file.

Use the property com.ibm.wmqfte.propertyset to specify the set of configuration options that are used for Ant tasks. Use the name of a non-default coordination queue manager as the value for this property. Ant tasks then use the set of configuration options that are associated with this non-default coordination queue manager. If you do not specify this property, the default set of configuration options that are based on the default coordination queue manager is used. If you specify the cmdqm attribute for an Ant task, this attribute takes precedence over the set of configuration options that are specified for the fteAnt command. This behavior applies regardless of whether you are using the default set of configuration options or specifying a set with the com.ibm.wmqfte.propertyset property.

-propertyfile (name)
Optional. Load all properties from a file with -D properties taking precedence.

-f (Ant script), -file (Ant script), or -buildfile (Ant script)
Required. Specifies the name of the Ant script to run.

targets
Optional. The name of one or more targets to run from the Ant script. If you do not specify a value for this parameter, the default target for the script is run.

-version
Optional. Displays the IBM MQ Managed File Transfer command and Ant versions.

-? or -h
Optional. Displays command syntax.

Example

In this example, the target copy in Ant script fte_script.xml is run and the command writes debugging output to standard out.
fteAnt -d -f fte_script.xml copy

Return codes

0
Command completed successfully.
1
Command ended unsuccessfully.
Other status return codes can also be specified from Ant scripts, for example by using the Ant fail task.

See Fail for more information.