Move our EHCache peer coordinator down here where other projects can use it.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5835 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2009-06-22 22:10:34 +00:00
parent fcda0f3156
commit 2c2e28f5ed
3 changed files with 212 additions and 1 deletions
+9 -1
View File
@@ -20,6 +20,13 @@
<fileset dir="${deploy.dir}/lib" includes="**/*.jar"/>
</path>
<!-- checks the availability of certain libraries -->
<target name="check-available" depends="prepare">
<available property="ehcache.present" classpathref="classpath"
classname="net.sf.ehcache.CacheManager"/>
<echo level="info" message="EHCache: ${ehcache.present}"/>
</target>
<!-- generates fields for persistent record classes -->
<target name="genrecord" depends="prepare">
<taskdef name="grecord" classname="com.samskivert.depot.tools.GenRecordTask"
@@ -155,12 +162,13 @@
</target>
<!-- build the java class files -->
<target name="compile" depends="prepare">
<target name="compile" depends="prepare,check-available">
<javac srcdir="src/java" destdir="${classes.dir}" includeAntRuntime="false"
debug="on" optimize="{$build.optimize}" deprecation="on" source="1.5" target="1.5">
<classpath refid="classpath"/>
<compilerarg value="-Xlint"/>
<compilerarg value="-Xlint:-serial"/>
<exclude name="com/threerings/presents/peer/server/EHCache*" unless="ehcache.present"/>
</javac>
</target>