The following contents apply only to the Professional Edition.

Grammar Coverage Task

The grammar coverage task can be used to run grammar coverage tests on static or dynamic grammars.

Task configuration

Name

grammar.coverage

Attributes

Attribute Description Required
showwarning Whether coverage warnings are output to the console. Defaults to false. No
sisrcompatibilitymode When true, enables the compatibility mode for the pre-SISR tag format (mainly for the IBM and Microsoft ASR engines). Defaults to false. No
sisrnuanceobjectssupport When true, enables the Nuance 9 extensions to SISR. Defaults to false. No
failonerror Whether the build fails if a conversion error occurs. Defaults to true. No
rulesfile Filename of the external rule references handling configuration file. It is usually named .translationRules in the Eclipse project directory. No

Nested elements

The grammar.conversion task accepts any number of fileset elements (see the Ant documentation for more information). The file sets must include all the coverage files (.grd files) to test.

The grammar.conversion task accepts any number of classpath elements (see the Ant documentation for more information). classpath elements are used for dynamic grammars with Java instantiation contexts. They specify the classpath entries required to load and run the Java instantiation contexts.

Example

  <grammar.coverage>
     <fileset dir="${basedir}/grammars/templates" includes="*.grd" />
  </grammar.coverage>


Copyright © 2007,2008,2009,2010,2011 Nu Echo Inc.