To tell the MGen compiler these things we need to write a project file. An MGen project file is just an ordinary xml file - so we’ll simply create one for this example named project.xml (the name does not matter) with the following contents:

<Project>

  <Sources>
    <Source>com.fruitcompany.fruits.xml</Source>
  </Sources>

  <Generator name="Java">
    <output_path>src/main/java</output_path>
    <classregistry_path>com.fruitcompany</classregistry_path>
    <class_path>se.culvertsoft.mgen.javapack.generator.JavaGenerator</class_path>
  </Generator>

  <Generator name="C++">
    <output_path>src/main/cpp</output_path>
    <classregistry_path>com.fruitcompany</classregistry_path>
    <generate_unity_build>true</generate_unity_build>
    <class_path>se.culvertsoft.mgen.cpppack.generator.CppGenerator</class_path>
  </Generator>

  <Generator name="Javascript">
    <class_path>se.culvertsoft.mgen.jspack.generator.JavascriptGenerator</class_path>
    <output_path>src</output_path>
    <output_filename>fruits_blueprint.js</output_filename>
    <classregistryblueprint>fruits_blueprint</classregistryblueprint>
  </Generator>

</Project>