2011-05-13 04:24:42 -04:00
|
|
|
<project name="GameServer" default="build" basedir=".">
|
|
|
|
|
2011-04-27 01:44:26 -04:00
|
|
|
<property name="src" location="src" />
|
|
|
|
<property name="build" location="build" />
|
|
|
|
<property name="doc" location="../doc" />
|
|
|
|
<property name="lib" location="lib" />
|
|
|
|
<property name="jar" location="rscd.jar" />
|
|
|
|
<property name="settings" location="settings.ini" />
|
|
|
|
<property name="quests" location="conf/server/quests" />
|
2011-06-21 19:22:37 -04:00
|
|
|
<property name="scala-library.jar" value="lib/scala-library.jar" />
|
2011-05-13 04:24:42 -04:00
|
|
|
|
|
|
|
<target name="build">
|
2011-04-27 01:44:26 -04:00
|
|
|
<delete file="${jar}" />
|
|
|
|
<delete dir="${build}" />
|
|
|
|
<mkdir dir="${build}" />
|
2011-06-21 19:22:37 -04:00
|
|
|
<taskdef resource="scala/tools/ant/antlib.xml">
|
|
|
|
<classpath>
|
|
|
|
<pathelement location="lib/scala-compiler.jar" />
|
|
|
|
<pathelement location="${scala-library.jar}" />
|
|
|
|
</classpath>
|
|
|
|
</taskdef>
|
|
|
|
<scalac srcdir="${src}" destdir="${build}">
|
|
|
|
<classpath>
|
|
|
|
<pathelement location="${scala-library.jar}" />
|
|
|
|
<pathelement location="${lib}/mina.jar" />
|
|
|
|
<pathelement location="${lib}/xpp3.jar" />
|
|
|
|
<pathelement location="${lib}/slf4j.jar" />
|
|
|
|
<pathelement location="${lib}/pircbot.jar" />
|
|
|
|
<pathelement location="${lib}/bsh.jar" />
|
|
|
|
<pathelement location="${lib}/commons-collections-3.2.1.jar" />
|
|
|
|
<pathelement location="${lib}/xstream.jar" />
|
|
|
|
<pathelement location="${lib}/mysql-connector.jar" />
|
|
|
|
<pathelement location="${lib}/hex-string.jar" />
|
|
|
|
<pathelement location="${lib}/jmf.jar" />
|
|
|
|
<pathelement path="${java.class.path}/" />
|
|
|
|
</classpath>
|
|
|
|
<include name="**/*.scala" />
|
|
|
|
</scalac>
|
2011-05-13 06:22:12 -04:00
|
|
|
<javac srcdir="${src}" destdir="${build}" debug="on" target="1.6">
|
2011-04-27 01:44:26 -04:00
|
|
|
<classpath>
|
2011-06-21 19:22:37 -04:00
|
|
|
<pathelement location="${scala-library.jar}" />
|
2011-04-27 01:44:26 -04:00
|
|
|
<pathelement location="${lib}/mina.jar" />
|
|
|
|
<pathelement location="${lib}/xpp3.jar" />
|
|
|
|
<pathelement location="${lib}/slf4j.jar" />
|
|
|
|
<pathelement location="${lib}/pircbot.jar" />
|
2011-05-13 04:24:42 -04:00
|
|
|
<pathelement location="${lib}/bsh.jar" />
|
2011-05-13 06:22:12 -04:00
|
|
|
<pathelement location="${lib}/commons-collections-3.2.1.jar" />
|
2011-04-27 01:44:26 -04:00
|
|
|
<pathelement location="${lib}/xstream.jar" />
|
|
|
|
<pathelement location="${lib}/mysql-connector.jar" />
|
|
|
|
<pathelement location="${lib}/hex-string.jar" />
|
2011-05-13 04:24:42 -04:00
|
|
|
<pathelement location="${lib}/jmf.jar" />
|
|
|
|
<pathelement path="${java.class.path}/" />
|
2011-04-27 01:44:26 -04:00
|
|
|
</classpath>
|
2011-05-13 04:24:42 -04:00
|
|
|
</javac>
|
|
|
|
<jar basedir="${build}" destfile="${jar}" />
|
|
|
|
|
2011-04-27 01:44:26 -04:00
|
|
|
</target>
|
2011-05-13 04:24:42 -04:00
|
|
|
|
|
|
|
<target name="doc" depends="build">
|
|
|
|
<javadoc sourcepath="${src}" destdir="${doc}" verbose="on" />
|
2011-04-27 01:44:26 -04:00
|
|
|
</target>
|
|
|
|
|
2011-05-13 04:24:42 -04:00
|
|
|
<target name="runf2p" depends="build">
|
|
|
|
<java classname="org.moparscape.msc.gs.Server" fork="true">
|
2011-04-27 01:44:26 -04:00
|
|
|
<jvmarg value="-Xms128m" />
|
|
|
|
<jvmarg value="-Xmx512m" />
|
|
|
|
<arg value="world.xml" />
|
|
|
|
<arg value="f2p" />
|
|
|
|
<arg value="no" />
|
|
|
|
<classpath>
|
|
|
|
<pathelement location="${lib}/mysql-connector.jar" />
|
|
|
|
<pathelement location="${lib}/mina.jar" />
|
|
|
|
<pathelement location="${lib}/xpp3.jar" />
|
|
|
|
<pathelement location="${lib}/bsh.jar" />
|
2011-05-13 06:22:12 -04:00
|
|
|
<pathelement location="${lib}/commons-collections-3.2.1.jar" />
|
2011-05-13 04:24:42 -04:00
|
|
|
<pathelement location="${lib}/pircbot.jar" />
|
2011-04-27 01:44:26 -04:00
|
|
|
<pathelement location="${lib}/slf4j.jar" />
|
|
|
|
<pathelement location="${lib}/xstream.jar" />
|
|
|
|
<pathelement location="${lib}/hex-string.jar" />
|
|
|
|
<pathelement location="quests/" />
|
|
|
|
<pathelement path="${jar}/" />
|
|
|
|
</classpath>
|
|
|
|
</java>
|
|
|
|
</target>
|
|
|
|
</project>
|