blob: 7d417d85d4ad661fdc91bb0ab62ec8ea62ae3c05 [file] [log] [blame] [raw]
<?xml version="1.0" encoding="UTF-8"?>
<project name="lightstone" default="build" xmlns:ivy="antlib:org.apache.ivy.ant">
<property name="src" location="src" />
<property name="bin" location="bin" />
<property name="lib" location="lib" />
<path id="binaries">
<pathelement path="${bin}" />
</path>
<path id="libraries">
<fileset dir="${lib}">
<include name="*.jar" />
</fileset>
</path>
<path id="master">
<path refid="binaries" />
<path refid="libraries" />
</path>
<fileset id="sources" dir="${src}">
<include name="**/*.java" />
</fileset>
<target name="init">
<mkdir dir="${bin}" />
<mkdir dir="${lib}" />
</target>
<target name="resolve" depends="init">
<ivy:retrieve pattern="${lib}/[artifact].[ext]" sync="true" />
</target>
<target name="build" depends="init">
<javac srcdir="${src}" destdir="${bin}" includeantruntime="false">
<classpath refid="libraries" />
</javac>
</target>
<target name="clean">
<delete dir="${bin}" />
</target>
<target name="rebuild" depends="clean, build" />
<target name="run" depends="build">
<java classpathref="master" fork="true" classname="net.lightstone.Server" />
</target>
</project>