Using Ant to Generate Java from CML: cmlgenerate

Description
The Device Kit plugin defines a new Ant task, cmlgenerate,  that enables scripted generation of Java source from .cml files.

Parameters
 
Attribute Description Required
srcproject The project or workspace from which to find the specified .cml files. Yes
includes List of files or patterns, separated by commas, that are to be included.  If omitted, all cml files starting under srcproject will be included No
excludes List of files or patterns, separated by commas, that are to be excluded.  If omitted, no cml files under srcproject will be excluded No

Examples
 
        <cmlgenerate srcproject="${mySrc}"/>

Generates java for all cml files under the project ${mySrc}

        <cmlgenerate srcproject="${mySrc}" excludes="fileone.cml, filetwo.cml"/>

Generates java for all cml files under the project ${mySrc}except "fileone.cml" and "filetwo.cml"

        <cmlgenerate srcproject="./../"  includes="**/*"/>

Generates java for all cml files one level above the base directory (the directory where the ant script is located).  If the ant script is in a project named "Build", this example would generate every .cml file in the workspace.


Copyright (c) 2005, 2007 IBM.