Archive

Posts Tagged ‘Code Generator’

How To: Running the Code Generator on the Linux / Mac OS X

June 14th, 2010
SOPERA’s How-To Series

Sometime ago in SOPERA we decided that it might help our users if we were to produce a couple of “How-Tos” in which we would list tips, tricks, or describe the ways in which you can use various SOPERA product components effectively and quickly.

SOPERA’s code generator is currently designed to work only on Microsoft Windows Operating Systems. In this How-To, we’re going to show you how to run the SOPERA code generator in Linux.

Running the SOPERA Code Generator in Linux

To run the SOPERA code generator on Linux:

  1. Zip the contents of the /ServiceStudio folder into a zip file.
  2. Copy this servicestudio.zip file to you linux user home path (for example, in /home/soadev).
  3. Extract the archive file to a directory (for example, into /opt/SOPERA/ServiceStudio).
  4. Translate the cmd files set-env.cmd, build.cmd and codegen.cmd to a Linux sh file. Don’t forget to enable the execution of these sh files. They can be found in the folders: ServiceStudio/CodeGenerator , ServiceStudio/CodeGenerator/bin.
  5. Create a soft link in the ServiceStudio/CodeGenerator folder:
    ln –s JeeWiz/resources/any/control JeeWiz\\resources\\any\\control
  6. Enable the bash scripts’ ant file and and run to execute. The folder can be found in ServiceStudio/CodeGenerator/JeeWiz/external/ant1.7.0/bin.
  7. Add a slash in line 36 of the includeSpec.vm file:
    Old: #set( $basicName="file:/${aSchema.xsdTargetFile}"
    New: #set( $basicName="file://${aSchema.xsdTargetFile}"

    You can find the file in this folderServiceStudio/CodeGenerator/JeeWiz/SBBresources/SBBservice/control/schema.

  8. Now, test your code generator!

Robert Lalyko Development , ,