The different settings required for using the
grass config builder tool is defined in the settings element of grass
config XML file. The grass tool settings consists of project name,
project directory, input directory for base config files and
the output directory for generated config files of various environments.
A sample definition of grass settings for
a project in the grass config file is given below,
<settings project="Test">
<project-dir>/home/aravsa/dev/proj/runtime-EclipseApplication/Test/</project-dir>
<input-dirs>
<input-dir>test/conf/jca/</input-dir>
</input-dirs>
<output-dir>output/</output-dir>
</settings>
Details of
settings definition in grass config
Attribute |
Description |
project |
the unique project name |
project-dir |
the absolute project directory |
input-dirs |
one or more input directory for source
config files relative to project directory |
output-dir |
the output dir for generated
config files relative to project directory |
<input-dirs>
<input-dir>test/conf/jca/</input-dir>
</input-dirs>
One or more input directory for base set
of config files are
defined within the input-dirs element. The input-dir element value is
relative to the project directory.
<output-dir>output/</output-dir>
The output dir for generated config
files are relative to project directory. The generated config files for
a target environment are placed in its own sub directory with the name
of target environment under the output directory.
In the sample definition above for the project Test, base set of config
files are present in the dir
/home/aravsa/dev/proj/runtime-EclipseApplication/Test/test/conf/jca/.
The generated files for target environment prod is placed in the
directory /home/aravsa/dev/proj/runtime-EclipseApplication/Test/output/prod/.
Copyright © 2007,
grass - Saravana Aravind R
|