Don't look now kids, but it's automatic generation of ActionScript code from
Java. Of course this is a very limited translation facility that is mainly focused on auto-generating Streamable ActionScript classes from their Java originals, and it doesn't actually convert method bodies, just field and method declarations, initial values, and such. Most of our Streamable classes don't have much in the way of real methods, and the autogenerator will stick new methods in when they show up on the Java side so at least we'll *know* that they need to be implemented. And the main thing: readObject and writeObject are in fact implemented by the code generator so at least we won't be plagued by annoying streaming errors when we change something on the Java side and forget to change the ActionScript side. Next up, auto-generating InvocationService interfaces and InvocationMarshaller implementations in ActionScript and ActionScript versions of DObjects. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4394 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -85,6 +85,17 @@
|
||||
</receiver>
|
||||
</target>
|
||||
|
||||
<!-- generates ActionScript versions of our Streamable classes -->
|
||||
<target name="genascript">
|
||||
<taskdef name="genscript" classpathref="classpath"
|
||||
classname="com.threerings.presents.tools.GenActionScriptTask"/>
|
||||
<!-- now generate the associated files -->
|
||||
<genscript header="lib/SOURCE_HEADER" asroot="src/as"
|
||||
classpathref="classpath">
|
||||
<fileset dir="src/java" includes="**/data/*.java"/>
|
||||
</genscript>
|
||||
</target>
|
||||
|
||||
<!-- prepares the application directories -->
|
||||
<target name="prepare">
|
||||
<mkdir dir="${deploy.dir}"/>
|
||||
|
||||
Reference in New Issue
Block a user