The Lemur toolkit version 4.0 applications accept parameters from a file. The parameter file uses an XML format. The top level element in the parameters file is named parameters. For each parameter, the name of the parameter, e.g. index, is the name of the element, and the value of the parameter, e.g. /usr3/web/myindex, is the content of the element. The preceding example would be written as <index>/usr3/web/myindex</index>. Comments may be inserted in parameter file using <!-- comment text -->. Parameter names are case sensitive.
The awk script, convertparam.awk, is provided in the scripts subdirectory of the Lemur toolkit source distribution. Usage is:
gawk -f convertparam.awk oldparamfile > newparamfile
Running the script will convert:
dataFiles = /usr3/web/sourcelist; index = /usr3/web/myindex; indexType = inv; memory = 128000000; docFormat = web; position = 1;to:
<parameters> <dataFiles>/usr3/web/sourcelist</dataFiles> <index>/usr3/web/myindex</index> <indexType>inv</indexType> <memory>128000000</memory> <docFormat>web</docFormat> <position>true</position> </parameters>
The Lemur Project
Last modified: Tuesday, 14-Jun-2005 09:07:18 EDT