Thanx a lot for sharing! I'll take some time to test it tonight. :)

Is it handling strong-typing in generated code ?
codealloy umlconverter didn't ( http://www.codealloy.com/umlconverter.htm ).
So that would be good news.

The fact that you wanna share source code is great news too!

thanx again Darron,

francis

----- Original Message ----- From: "Darron J. Schall" <[EMAIL PROTECTED]>
To: "Open Source Flash Mailing List" <[email protected]>
Sent: Thursday, July 21, 2005 3:44 PM
Subject: [osflash] ActionScript 2.0 Code Generator


I've been sitting on this for a *long* time (since early this year). I would've released this sooner but ran into a legal / non disclosure problems - because my original Code Generator was created on company time, I wasn't allowed to release it open source or even distribute it, so I went ahead and had to rebuild it from scratch on my own time. It was a pain in the butt, but I finally have something working again.

Because Aral is away right now, the source is still "closed" for the moment, but I plan on trying to get it added to the OSFlash hosted projects. The source code will be released under the GPL. In the meantime, you can find the download here: http://www.darronschall.com/downloads/Xmi2As.zip

It was written in Java using SWT, so it's cross-platform native-UI, but right now I've only provided a windows binary. There's still a few things I want to do before "officially" releasing this, so I'm holding off on building the OS X version. If enough people want to try an OS X version, let me know and I'll get a build out sooner rather than later.

Usage is as follows:
Launch the .exe and browse for the .xmi file (exported from your favorite UML modeling program, like ArgoUML). Pick the directory to put the generated classes, and hit generate.

You can also use it from the command line: > xmi2as model.xmi output_directory

If you use it from the command line though, the error output isn't displayed if something goes wrong. Because I'm using an .exe wrapper (JSmooth) for a. jar file, the error messages don't make it to the screen unfortunately. If it doesn't generate the classes, my first guess at troubleshooting would be to make sure the output directory exists. The error messages appear just fine when using the GUI version though, so if you get stuck just try the GUI. I wanted to make sure a command line version existed so that the process could be automated. I love ant. :-)

I've tested this again a few class diagrams and all seems to work well, but if you run into anything weird, let me know. There's still a piece of functionality missing, and that's generating all of the import statements for classes and interfaces. For now you'll have to add the imports by hand, but I'll fix that whenever I get a chance. I also want to add a command line switch for generate javadoc comments (currently its turned on, and the only way to turn it off is to recompile the code).

Anyway, I wanted to preview this on the list. Try not to announce this "publicly" just yet (i..e on your weblog or in other news groups). Whenever Aral gets back, I'll need to try to convince him to set up a project on sourcesecure for me, then I'll release the code as well. Once I get the source code out there, I'll make this release "official" and announce it publicly. Consider this an early beta for the osflash list. ;-)

-d



_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org




_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to