To run a transformation from an Ant script or build.xml
file, within the <project></project> tags, create a target element,
as in this example:<target name="generate"> <echo>Running transformation
'myProject/myConfig.tc'...</echo> <com.ibm.xtools.
transform.core.runTransformation transformConfig=
"myProject/myConfig.tc" reverse="false"/> </target>
In
the build.xml file, in the project element, set the default attribute
equal to the value that you specify for the name attribute
in the target element.
The transformConfig attribute
must specify a valid workspace path.
To run the reverse transformation,
set the reverse attribute to true. Important: The transformation configuration must implement the Reconciled
Modeling design contract management protocol (DCMP).
To
run the Ant script, right-click the build.xml file; then click
|