Book a Demo

Author Topic: Code generation for custom language: How to specify file type of generated files  (Read 3913 times)

camel2

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Hi,
for code generation, I've created Custom Language Templates (following these instructions: https://www.sparxsystems.com/enterprise_architect_user_guide/9.3/standard_uml_models/creatingtemplatesforcustom.html).
Now generating code is working fine, but it always generates .java files. Does anyone know how I can change the file type of the generated file?
Thanks in advance!  :)

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile

camel2

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Hi,
thank you very much! :) That's exactly what I was looking for. Now I created the MDG technology with my code module and specified its code options (the MDG Technology XML file in the folder  %APPDATA%\Sparx Systems\EA\MDGTechnologies contains the tag <CodeOption name="DefaultExtension">). I also imported and activated the MDG Technology. But when I select a class in a class diagram and set its language to my custom language, and then generate the code for that class, it still doesn't use the extension I specified there. Maybe there is still missing something I didn't see? I'd appreciate any ideas :)