Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: aprovis on August 23, 2006, 01:31:18 am

Title: Trouble outputting into a single xml file
Post by: aprovis 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.
Title: Re: Trouble outputting into a single xml file
Post by: Eve 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.
Title: Re: Trouble outputting into a single xml file
Post by: aprovis 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. :-)