Repairing corrupt JET files

If a JET file in the templates folder of the .JETEmitters project becomes corrupt, you can repair it or delete it from the .JETEmitters project. If you delete the file, the transformation generates a new version the next time that you run the transformation.

About this task

A JET file might become corrupt if it is modified. If a JET file has errors, the corresponding Java file in the src/com.ibm.xtools.corba.core.jet folder of the .JETEmitters project displays the following error:

This image shows the Project Explorer view. If a Java file contains errors, a red circle containing a white X displays beside the file name.

The messages generated by the UML-to-CORBA transformation do not contain information about corrupt JET files. You must check the Problems view for more information about the error.

To fix the error, you can edit the JET file. The JET files that specify the format of the generated IDL source code have .idljet as a file extension. Do not edit the Java files in the src/com.ibm.xtools.corba.core.jet folder of the .JETEmitters project.

To repair a corrupt JET file:

Procedure

  1. In the Project Explorer view, in the src folder of the .JETEmitters project, open the com.ibm.xtools.corba.core.net package.
  2. Observe the Java files that have error markings, which indicate a problem exists with the corresponding .idljet template in the templates folder. Check the Problems view for more information about the error.
  3. In the templates folder of the .JETEmitters project, right-click the JET file to repair; then click Open with > Text editor.
  4. Make the appropriate changes to repair the file.
  5. Click File > Save.

What to do next

Repeat steps 2 through 5 until no error markings remain.
Note: If you cannot repair the corrupt JET file, you can delete it from the templates folder of the .JETEmitters project. If you delete the JET file, the transformation generates a new version the next time that you run the transformation; any changes that you made to this file are lost. When you run the transformation, the transformation applies the default settings for IDL source code elements that are specified in the file.

Feedback