EMMAWiki/DeveloperDocumentation/MagemlExporterGenerator: Difference between revisions

From BRF-Software
Jump to navigation Jump to search
imported>KaiRunte
No edit summary
imported>KaiRunte
No edit summary
Line 7: Line 7:


<code><nowiki>share/perl/EMMA/Exporter/MAGEML.pm</nowiki></code> -- The generated file.
<code><nowiki>share/perl/EMMA/Exporter/MAGEML.pm</nowiki></code> -- The generated file.
<code><nowiki>bin/generate_exporter</nowiki></code> -- Script for starting the generator.
<code><nowiki>bin/generate_exporter</nowiki></code> -- Script for starting the generator.
<code><nowiki>src/java/mage-ml-generator/templates/</nowiki></code> -- The templates used for generating the exporter.
<code><nowiki>src/java/mage-ml-generator/templates/</nowiki></code> -- The templates used for generating the exporter.
<code><nowiki>src/java/mage-ml-generator/</nowiki></code> -- The project directory of generator written in Java. You will not need it in 99.9% of the time.
 
<code><nowiki>src/java/mage-ml-generator/</nowiki></code> -- 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 <code><nowiki>bin/generate_exporter</nowiki></code>. 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.

Revision as of 12:42, 13 September 2007

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.