Wednesday, September 10, 2008

Generate AS3 VOs from Jar file

A lot of AS3 value object generators assume that you have the source code. However sometimes you are not privy to this information :-( So here is a java program that reads the content of a jar file and creates AS3 VOs. Like this post, I'm using StringTemplate to generate the files. And this other post was very helpful too. I'm using IntelliJ as my IDE and it lets me generate an executable jar. The following is the usage:

java -jar class2as3.jar jarPath packageName outputPath

You can download the source code from here.

1 comment:

julien said...

Thanks,

Much appreciated