Book a Demo

Author Topic: Trouble outputting into a single xml file  (Read 3323 times)

aprovis

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Trouble outputting into a single xml file
« on: August 23, 2006, 01:31:18 am »
I am currently representing the contents of an Ear in EA. The most readable way of doing this seems to be creating the custom stereotypes for JARs and WARs and placing them within a package (The package representing the EAR).

I am currently attempting to modify the code gen templates to allow me to output all of the contents of the package into a single xml file. EA seems however to be mainly focussed on outputting each 'class' into an individual file and i cannot find a way to iterate through the package and output details of a 'class' (JAR) into the one file.

Anyone have any ideas about how i might accomplish this?

Thanks in advance.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8107
  • Karma: +119/-20
    • View Profile
Re: Trouble outputting into a single xml file
« Reply #1 on: August 23, 2006, 03:50:56 pm »
If all the classes in the package have the same filename before generation, then the code templates will iterate over them when generating that file.

You could either do that manually, or write an addin to do it for you.  Alternatively you could just write an addin to generate your file.

aprovis

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Trouble outputting into a single xml file
« Reply #2 on: September 01, 2006, 06:31:25 am »
Thanks Simon,

I've now written a c# script to do the job through the automation interface which seems to do the job. :-)