To generate the source code for the component defined, use the generate command:

  • On Windows
    1. Browse to %TEMPLATE_ENGINE%
    2. Run templates-console.bat; a command prompt opens in directory pointed to %TEMPLATE_ENGINE%.
    3. Run the following command specifying the destination directory:



      Figure 1: Run templates-console.bat

      Icon

      Run generate.bat with out any arguments to see the help

  • On Linux
    1. Browse to %TEMPLATE_ENGINE% in Linux console

    2. Run the following command specifying the destination directory:

      Icon

      usage

      run [-language <name>] [-setting <name>] -dest <directory>

      • -dest <directory> target directory where source files are Generated (same directory given while launching wizard)
      • -language <name>language (c, cpp, csharp, java, jca) in which source files are generated (default is java)
      • -setting <name> name of setting directory in etc folder
      Icon
      • Run generate.sh with out any arguments to see the help
      • Executing generate.sh command generates the sources under src directory specified in the directory specified against –dest argument. It also creates necessary files to build and deploy the components.
      • Below are the common files that are created irrespective of language:
        • build.properties
        • build.xml
        • common.xml
Adaptavist ThemeBuilder EngineAtlassian Confluence