mirror of
https://github.com/moparisthebest/MoparClassic
synced 2024-11-14 13:15:01 -05:00
57 lines
1.4 KiB
XML
57 lines
1.4 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project name="MySQL Data Service" default="build" basedir="../../../">
|
|
<property name="name" value="MySQLDataService" />
|
|
<property name="package" value="DataService" />
|
|
<property name="base" location="Modules/${package}/${name}" />
|
|
<property name="src" location="${base}/src" />
|
|
<property name="bin" location="${base}/bin" />
|
|
<property name="common-lib" location="${base}/../MySQLCommon" />
|
|
<property name="jar" value="${base}/${name}.jar" />
|
|
|
|
<fileset id="mopar" dir="GameServer">
|
|
<include name="moparclassic.jar" />
|
|
</fileset>
|
|
|
|
<fileset id="common-libraries" dir="${common-lib}">
|
|
<include name="*.jar" />
|
|
</fileset>
|
|
|
|
<fileset id="production-classes" dir="${bin}">
|
|
<include name="**/*.class" />
|
|
</fileset>
|
|
|
|
<path id="binary-path">
|
|
<pathelement path="${bin}" />
|
|
</path>
|
|
|
|
<path id="library-path">
|
|
<fileset refid="common-libraries" />
|
|
<fileset refid="mopar" />
|
|
</path>
|
|
|
|
<path id="master-path">
|
|
<path refid="binary-path" />
|
|
<path refid="library-path" />
|
|
</path>
|
|
|
|
<target name="init">
|
|
<mkdir dir="${bin}" />
|
|
</target>
|
|
|
|
<target name="build" depends="init">
|
|
<javac destdir="${bin}" includeantruntime="false">
|
|
<src path="${src}" />
|
|
<classpath refid="library-path" />
|
|
</javac>
|
|
<jar destfile="${jar}">
|
|
<fileset refid="production-classes" />
|
|
</jar>
|
|
<delete dir="${bin}"/>
|
|
</target>
|
|
|
|
<target name="clean">
|
|
<delete dir="${bin}" />
|
|
<delete file="${jar}" />
|
|
</target>
|
|
</project>
|