To
run a transformation from a command line, use the following syntax:eclipse -data workspace-path -application com.ibm.xtools.transform.core.transformationRunner -transformConfigs "[-R]transformation-configuration-path1,[-R]transformation-configuration-path2,..."
In the -transformConfigs parameter,
you must specify the complete workspace path and configuration file
name, not the file-system path name, of one or more transformation
configurations.
Running a
transformation from a command line suppresses all dialog boxes that
the transformation generates.
As an example, a transformation
configuration called MyConfig.tc is in a project called MyProject
in a workspace called MyWorkspace. This transformation configuration
specifies the configuration information for a transformation called
MyTransformation, and for a corresponding reverse transformation called
MyReverseTransformation.- To
invoke MyTransformation, you can run the MyConfig.tc configuration
by typing the following text at the command line:
eclipse -data /MyWorkspace -application com.ibm.xtools.transform.core.transformationRunner -transformConfigs "MyProject/MyConfig.tc"
- To
run the reverse transformation, specify the -R option at the beginning
of the transformation configuration path, as in this example:
eclipse -data /MyWorkspace -application com.ibm.xtools.transform.core.transformationRunner -transformConfigs "-RMyProject/MyConfig.tc"
- To run multiple transformations,
in the -transformConfigs parameter, specify a comma-separated
list of transformation configurations, including the workspace path
name for each configuration. You can run forward or reverse transformations,
as in this example:
eclipse -data /MyWorkspace -application com.ibm.xtools.transform.core.transformationRunner -transformConfigs "MyProject/MyConfig.tc, -RMyProject/MyConfig.tc"
|