Protecting changes to generated JET transformation code

To prevent changes to the main.jet template from being overwritten when you modify the main.jet template directly, you must modify or remove the <%--@generated--%> comment that corresponds to the change that you want to protect.

About this task

To protect the changes to the main.jet template:

Procedure

  1. In the Project Explorer view, in the transformation project, right-click the main.jet file; then click Open.
  2. Search for the c:set JET tag that contains the name of the input schema element or action that you want to modify.
  3. Remove or modify the <%--@generated--%> tag. For example, you might change this tag to <%--@!generated--%>.
  4. Edit the element or action.
  5. Click File > Save.

What to do next

The next time that you run the Update Project command, code is not generated for the schema element or attribute.

Feedback