Rewrote the InvocationReceiver generation process in Java as an Ant task. I had

previously redone the InvocationService and DObject generation tools but not
the InvocationReceiver tool.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3913 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2006-03-06 21:50:23 +00:00
parent a75f496e76
commit 17fdaa7c0d
6 changed files with 284 additions and 384 deletions
+17 -9
View File
@@ -71,17 +71,25 @@
</service>
</target>
<!-- generates sender and decoder classes for all invocation
receiver declarations -->
<target name="genreceiver">
<apply executable="bin/genreceiver" failonerror="true" parallel="true">
<arg value="--classpath"/>
<arg value="${classes.dir}"/>
<arg value="--sourcedir"/>
<arg value="src/java"/>
<!-- generates sender and decoder classes for all invocation -->
<!-- receiver declarations -->
<target name="genreceiver">
<taskdef name="receiver"
classname="com.threerings.presents.tools.GenReceiverTask"
classpathref="classpath"/>
<!-- make sure the receiver class files are all compiled -->
<javac srcdir="src/java" destdir="${classes.dir}"
debug="on" optimize="${build.optimize}" deprecation="on"
source="1.4" target="1.4">
<classpath refid="classpath"/>
<include name="**/*Receiver.java"/>
<exclude name="**/InvocationReceiver.java"/>
</javac>
<!-- now generate the associated files -->
<receiver header="lib/SOURCE_HEADER" classpathref="classpath">
<fileset dir="src/java" includes="**/*Receiver.java"
excludes="**/InvocationReceiver.java"/>
</apply>
</receiver>
</target>
<!-- checks the availability of certain libraries -->