EMMAWiki/DeveloperDocumentation/MagemlExporterGenerator

From BRF-Software
Revision as of 12:42, 13 September 2007 by imported>KaiRunte
Jump to navigation Jump to search

Mage-ML Exporter Generator

This page explain how to generate the Mage-ML Exporter and where to find the templates for the generator.

Files

share/perl/EMMA/Exporter/MAGEML.pm -- The generated file.

bin/generate_exporter -- Script for starting the generator.

src/java/mage-ml-generator/templates/ -- The templates used for generating the exporter.

src/java/mage-ml-generator/ -- The project directory of the generator (written in Java). Most likely you will not need to change anything at the Java source-code.

Changing the exporter

Simply change the appropriate template and run the generator by calling bin/generate_exporter. Test the newly generated exporter and check it in with the usual CVS commands.

Finding the appropriate template

Each template creates a comment line in the MAGEML.pm file. If you found the spot you want to change in the MAGEML.pm file, just scroll up to find the closest comment starting with "#Generated by template " to find the template responsible for this section of Perl code.