A task to generate readObject() and writeObject() for Streamable classes (for
use in non-sandboxed environments). Unfortunately we have to do this for all Streamable classes, not just the ones that have protected/private members because we need to be able to call super.readObject() and have that exist even if our superclass contains only public members. Doing magic streaming with combinations of classes that do and don't have readObject() would start to get extremely complicated, particularly if the base class had readObject() an intermediate class had none, then a later class had one again. Madness. Doing things with compiled methods will be faster anyway... git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4686 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -85,6 +85,14 @@
|
||||
</receiver>
|
||||
</target>
|
||||
|
||||
<!-- generates readObject()/writeObject() for Stremable classes -->
|
||||
<target name="genstream">
|
||||
<taskdef name="genstream" classpathref="classpath"
|
||||
classname="com.threerings.presents.tools.GenStreamableTask"/>
|
||||
<!-- now generate the associated files -->
|
||||
<genstream><fileset dir="src/java" includes="**/data/*.java"/></genstream>
|
||||
</target>
|
||||
|
||||
<!-- generates ActionScript versions of our Streamable classes -->
|
||||
<target name="genascript">
|
||||
<taskdef name="genscript" classpathref="classpath"
|
||||
|
||||
Reference in New Issue
Block a user