Task factory interface index

ActionTaskFactory
GeneratorTaskFactory
ProcessTaskFactory

ActionTaskFactory

ActionTaskFactory:s build tasks that process one or several sources (files, for instance). The factories and the tasks have the sources property.

Action task factories can be used together with the |tf:RecursiveActionTF| to run recursive actions.

EmmaInstrumentationTF – Run Emma instrumentation of Java classes.

EmmaReportTF – Generate Emma reports from coverage data.

GeneratorTaskFactory

GeneratorTaskFactory:s build tasks that generate one target (file, for instance). The factories and the tasks have the target property.

EmmaInstrumentationTF – Run Emma instrumentation of Java classes.

EmmaMergeTF – Merge several Emma coverage data files into one.

ProcessTaskFactory

A ProcessTaskFactory is both an ActionTaskFactory and a GeneratorTaskFactory. It creates tasks that use one or several sources to generate an artifact in the target.

Process task factories can be used together with the |tf:RecursiveProcessTF| to run recursive processes.

EmmaInstrumentationTF – Run Emma instrumentation of Java classes.

Building task package documentation

The task package documentation can be built after installing Schmant using the tools/build_task_reference_docs.js script.

By default, Schmant comes bundled with task reference documentation for only the task packages that are included in the distribution. By building the task reference documentation after installing Schmant, it can be made to include the documentation for all locally installed task packages too.

Unix

To build the task reference documentation on Unix, cd to the $SCHMANT_HOME directory and execute the following script (on one line):

bin/schmant.sh -cp optlib/xalan.jar:optlib/xalan-serializer.jar \ -j "-Dfile.encoding=utf8" \ build/build_task_reference_docs.js path to additional task packages \ target directory

Warning: The contents of the target directory will be deleted by the script!

For example:

bin/schmant.sh -cp optlib/xalan.jar:optlib/xalan-serializer.jar \ -j "-Dfile.encoding=utf8" build/build_task_reference_docs.js \ /home/kalle/java/schmant-task-package-emma-1.0.zip:/home/kalle/java/schmant-task-package-pdfdoclet-1.0.zip \ doc/taskref

Windows

To build the task reference documentation on Windows, cd to the $SCHMANT_HOME directory and execute the following script (on one line):

bin\schmant -cp "optlib\xalan.jar;optlib\xalan-serializer.jar" \ -j "-Dfile.encoding=utf8" build\build_task_reference_docs.js path to additional task packages \ target directory

Warning: The contents of the target directory will be deleted by the script!

For example:

bin\schmant -cp "optlib\xalan.jar;optlib\xalan-serializer.jar" \ -j "-Dfile.encoding=utf8" build\build_task_reference_docs.js \ "c:\Documents and Settings\kalle\java\schmant-task-package-emma-1.0.zip" \ doc\taskref