Saving J2C settings in an Ant script

You can save the settings for your J2C Java™ bean and your data binding classes in an Ant file, that you can run separately.
The Save session as Ant script option is located in:
  1. The Saving Properties page of CICS/IMS Java Binding wizard
  2. The J2C Java Bean Output Properties page of J2C Java bean wizard
To save the settings of data binding classes or your J2C Java bean, select Save session as Ant script. If you want to save the default settings as well as the custom settings, select Save all settings. The Save all settings option is useful if you would like to generate the values for all the settings when you go through the wizard. In this way, it is like you have generated a template for all the properties. if you do not select this, only the option that you modify/enter when you go through the J2C Java bean wizard will be generated.
Saving J2C settings in CICS/IMS Java Binding wizard.
  1. 1. In the Saving Properties page, select Save session as Ant script.
  2. The File field contains the default filename, which is the name of the projectName/J2C Java Bean Interface file name.xml. If you do not want to accept the default file name, you have three options:
    • You can type in an alternative name in the File field.
    • You can click New to select a different parent folder, and specify a different file name.
    • You can click Browse to select an existing Ant script file.
  3. Select Save all settings if you want to save the default settings as well as the custom settings. Do not select this if you want to save the custom settings only.
  4. Click Finish.
  5. If a file already exists, a dialog box will come up. You can either Overwrite the file or append the new contents to the file.
  6. To check your Ant file, in Project Explorer view, expand your project folder, right-click on your Ant (.xml) file, select Open with > Ant editor.
Sample J2C Java Bean Ant file

Click Creating Data Binding Using an Ant Script to see the code used to generate the J2C Java interface, theJ2C Java implementation, and the data binding classes, based on the taderc99.cbl COBOL file and importing the ECIResourceAdapter version 6.0.2.

Saving J2C settings in J2C Java Bean wizard
  1. In the J2C Java Bean Output Properties page, select Save session as Ant script
  2. The default ant script file will be generated in the current project., The default ant script file name will be J2C Interface name.
  3. The File field contains the default filename, which is the name of the project name/J2C Data Binding class name.xml. If you do not want to accept the default file name, you have three options:
    • You can type in an alternative name in the File field.
    • You can click New to select a different parent folder, and specify a different file name.
    • You can click Browse to select and existing Ant script file.
  4. Select Save all settings if you want to save the default settings as well as the custom settings. Do not select this if you want to save the custom settings only It is recommended that you select Save all settings so that in the future if you want to modify any other settings, you can just edit the ant script directly.
  5. Click Finish.
  6. If a file already exists, a dialog box will come up. You can either Overwrite the file or append the new contents to the file.
  7. To check your Ant file, in Project Explorer view, expand your project folder, right-click on your Ant (.xml) file, select Open with > Ant editor.

Feedback