Generate the data schema from the command line

Generate the data schema for a Java report program using the schemagen tool from the command line.

Before you begin:
  • Compile a Genero Report Writer for Java report program.

To create a report, you must generate the data schema (.xsd) from the Java program source. You can generate it from the command line, giving you control of when it is generated. You can also generate it by including the command line options in the post compile rules, causing it to regenerate each time the program source is compiled.

  1. Open the report project in Genero Studio, and set the configuration for Java.
  2. Select Tools > Genero Tools > Genero Workplace Window.
    The Genero Workplace Window opens in the current project directory, with the correct environment set.
  3. Type "schemagen filename.java", where filename is the name of the Java report program source.
    The file schema1.xsd is created.
  4. Type "move schema1.xsd filename.xsd".
    This command renames the file to filename.xsd. The data schema is ready to use.