Rewrote the code that generates InvocationService marshalling and

dispatching classes in Java to eliminate annoying dependency on the output
format of JDK 1.4.1's javap.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3238 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2004-11-25 04:46:19 +00:00
parent 90621e78de
commit a0d343ff04
6 changed files with 715 additions and 7 deletions
+8 -7
View File
@@ -30,21 +30,21 @@
<!-- generates marshaller and dispatcher classes for all invocation
service declarations -->
<target name="genservice">
<target name="genservice">
<taskdef name="service"
classname="com.threerings.presents.tools.GenServiceTask"/>
<!-- make sure the service class files are all compiled -->
<javac srcdir="src/java" destdir="${classes.dir}"
debug="on" optimize="${build.optimize}" deprecation="on">
<classpath refid="classpath"/>
<include name="**/*Service.java"/>
<exclude name="**/InvocationService.java"/>
</javac>
<apply executable="bin/genservice" failonerror="true" parallel="true">
<arg value="--classpath"/>
<arg value="${classes.dir}"/>
<arg value="--sourcedir"/>
<arg value="src/java"/>
<!-- now generate the associated files -->
<service header="lib/SOURCE_HEADER">
<fileset dir="src/java" includes="**/*Service.java"
excludes="**/InvocationService.java"/>
</apply>
</service>
</target>
<!-- generates sender and decoder classes for all invocation
@@ -68,6 +68,7 @@
<mkdir dir="${javadoc.home}"/>
<copy todir="${classes.dir}">
<fileset dir="src/java" includes="**/*.properties"/>
<fileset dir="src/java" includes="**/*.tmpl"/>
</copy>
<copy todir="${classes.dir}/rsrc">
<fileset dir="rsrc" includes="**/*" excludes="**/bundles/**"/>