metaonly module xdc.tools.product.trexgen.Main

Command implementation

The trexgen tool allows RTSC content producers to create projectspec files that allows their content to be integrated in the CCS Resource Explorer environment. As input, the tool requires [ more ... ]
XDCscript usage meta-domain sourced in xdc/tools/product/trexgen/Main.xdc
var Main = xdc.useModule('xdc.tools.product.trexgen.Main');
module-wide config parameters
        '[-p product_root_directory]',
        ' -m module',
        '[-o outdir]'
    ];
module-wide functions
    Main.exec// 'xs' script entry point(Any args) returns Any
    Main.main// 'xs' shell entry point(Any args) returns Any
per-instance config parameters
    var params = new Main.Params// Instance config-params object;
        params.generationFormat// Plugin generation format = String null;
        params.productDir// Product root directory = String "./";
        params.productModule// Input description of the plug-in to be specified = String undefined;
per-instance functions
    inst.run// Underlying implementation(Cmdr.Instance cmdr, String[] args) returns Any
 
DETAILS
The trexgen tool allows RTSC content producers to create projectspec files that allows their content to be integrated in the CCS Resource Explorer environment. As input, the tool requires
Refer to ExampleProduct for an implementation of IProduct.
The tool generates starter examples that will showup in the Resource explorer. This is accomplished by implementing IProductTemplate and setting the templateModule configuration parameter of the IProduct implementation to the name of the implementation module. Refer to Examples for a sample implementation of IProductTemplate.
The tool operates on a product that is either specified by the -p option or is present in the folder from which the tool is executed. The tool will create the resources sub-folder in the output directory specified with -o option. If the -o option is not specified the resources is created in the product root directory.
The tool will search the repositories specified in the module implementing xdc.tools.product.IProduct for RTSC platforms. This search can be disabled by specifying the--disable_repo_search option. The user needs to ensure that the repositories are installed in the product root directory before using the tool.
EXAMPLE
      xs xdc.tools.product.trexgen
                      -p exampleprod_1_0_0_00
                      -m xdc.tools.product.plugingen.examples.ExampleProduct
 
config Main.usage  // module-wide

Usage for this command

XDCscript usage meta-domain
Main.usage = String[] [
    '[-p product_root_directory]',
    ' -m module',
    '[-o outdir]'
];
 
 
Main.exec()  // module-wide

'xs' script entry point

XDCscript usage meta-domain
Main.exec(Any args) returns Any
 
 
Main.main()  // module-wide

'xs' shell entry point

XDCscript usage meta-domain
Main.main(Any args) returns Any
 
Instance Config Parameters

XDCscript usage meta-domain
var params = new Main.Params;
// Instance config-params object
    params.generationFormat = String null;
    // Plugin generation format
    params.outputDir = String null;
    // Output directory in which the plugin will be generated
    params.productDir = String "./";
    // Product root directory
    params.productModule = String undefined;
    // Input description of the plug-in to be specified
 
config Main.generationFormat  // instance

Plugin generation format

XDCscript usage meta-domain
var params = new Main.Params;
  ...
params.generationFormat = String null;
 
 
config Main.outputDir  // instance

Output directory in which the plugin will be generated

XDCscript usage meta-domain
var params = new Main.Params;
  ...
params.outputDir = String null;
 
DETAILS
This option names the directory in which the project spec will be generated in a sub-directory named eclipse. If this option is not specified the tool will generate the plugin in the product root directory specified with the '-p' option.
 
config Main.productDir  // instance

Product root directory

XDCscript usage meta-domain
var params = new Main.Params;
  ...
params.productDir = String "./";
 
DETAILS
This option names the product root directory that is used by the tool to generate the projectspec files. For example, it's declared repositories are added to the package path and are searched for contributed platforms.
If the '-o' option is not specified, the tool generates the resources directory in the product root directory.
If this option is not specified, the product root directory is assumed to be ./.
 
config Main.productModule  // instance

Input description of the plug-in to be specified

XDCscript usage meta-domain
var params = new Main.Params;
  ...
params.productModule = String undefined;
 
DETAILS
This required option names a module that implements xdc.tools.product.IProduct.
 
Main.run()  // instance

Underlying implementation

XDCscript usage meta-domain
inst.run(Cmdr.Instance cmdr, String[] args) returns Any
 
generated on Fri, 14 Sep 2012 21:26:46 GMT