Specifying overwrite options for files generated by the C++ transformation

You can specify whether the C++ transformation overwrites existing files in the target location that have the same name as files that the transformation generates. You can choose to accept or decline each time that the transformation will overwrite a file, to always overwrite files, or to never overwrite files.

To specify overwrite options for files generated by the C++ transformation:
  1. Click Modeling > Transform > Configure Transformations.
  2. In the Configure Transformations window, in the Transformations/Configurations list, complete one of the following steps:
    • To edit an existing transformation configuration, click a UML to C++ transformation configuration.
    • To create a new transformation configuration, click the UML to C++ transformation and click New. In the Name field, type a name.
  3. Click the Properties tab.
  4. On the Properties page, select one of the following options:
    • To be prompted each time that the transformation will overwrite a file, select Ask.
    • To overwrite files automatically, select Always.
    • To never overwrite files, select Never.
    Note: When you select Ask, for files that are source controlled in ClearCase®, you are prompted to select the files to overwrite and then check out the selected files.
  5. Click Apply.
  6. Click Close.
The options are applied the next time that you run this transformation configuration.

Parent topic: Generating C++ code from a model

Related concepts
C++ transformation
C++ transformation templates

Terms of use | Feedback
(C) Copyright IBM Corporation 2004, 2005. All Rights Reserved.