Re: using java generation subsystem
Tom Morris <tfmorris <at> gmail.com>
2008-03-06 21:48:11 GMT
On Thu, Mar 6, 2008 at 4:18 PM, Jorge Bendahan <jorge.bendahan <at> gmail.com> wrote:
> Hello, i am a university student and i'm currently working in a proyect to
> generate junit test cases taking Argo Class Diagrams as the input, the thing
> is i need to have java class skeletons compiled, then to read that compiled
> clases using java reflection api, I've downloaded the source code of Argo,
If you're working with the ArgoUML source code, this question really
belongs on the dev list.
> I know that it has a java code generator as a
> subsystem, the thing is how do I pass the xmi file generated by Argo to that
> subsystem, so i can get the compiled classes skeletons that i need.
The code generators work off the Model subsystem, not from XMI files
directly. An XMI file would be read into the model repository using
the Model subystem and then the Java code generator would generate
code from the repository. Note that this will just get you Java
source files, not compiled Java classes, so you'll need to invoke a
Java compiler yourself as well.