The Code Generator requires the following 2 configuration files.
- PatternGenerator.properties - specifies the location for the code generated files,
the location for the temporary files and the location for the log files. This file
should be placed in the ‘patterns’ package
- WebMacro.properties - specifies the WebMacro configuration. This file should be
placed in the ‘patterns’ package
These files are part of the ‘jaffa-tools.jar’ distributable and can be found under
the ‘patterns’ package. To customize any setting, modify a copy of the file(s) and
ensure that the modified files(s) appear before jaffa-tools.jar on the classpath.
The input to the Code Generator is a component descriptor file. This component
descriptor file specifies the Pattern to be applied and information (like application
name, module name, component name, etc. etc.) required for the generation of a
particular component
The command line invocation of the Code Generator |
java org.jaffa.tools.patternengine.PatternGenerator component-descriptor |
The component-descriptor file should be relative to the classpath,
and you must ensure that the classpath contains all the Jaffa and related JARs.
This process can be invoked using an ANT script. Look as the sample application for
a set of
execute scripts that apply each pattern type.
|