mirror of
https://github.com/bdnugget/APOS.git
synced 2026-11-07 08:47:27 +00:00
75 lines
2.6 KiB
XML
75 lines
2.6 KiB
XML
<project name="APOS" default="run-bot" basedir=".">
|
|
<property name="build" location="build"/>
|
|
<property name="scripts" location="script/out"/>
|
|
<property name="clientsrc" location="client/src/main/java"/>
|
|
<property name="scriptsrc" location="script/src/main/java"/>
|
|
<property name="jar" location="bot.jar"/>
|
|
<property name="javac.source" value="1.8"/>
|
|
<property name="javac.target" value="1.8"/>
|
|
|
|
<path id="compile.path">
|
|
<file file="${jar}"/>
|
|
<fileset dir="lib">
|
|
<include name="rsclassic.jar"/>
|
|
</fileset>
|
|
</path>
|
|
|
|
<target name="clean">
|
|
<delete file="${jar}"/>
|
|
<delete>
|
|
<fileset dir="${scripts}">
|
|
<include name="*.class"/>
|
|
</fileset>
|
|
</delete>
|
|
</target>
|
|
|
|
<target name="compile-bot">
|
|
<delete file="${jar}"/>
|
|
<delete dir="${build}"/>
|
|
<mkdir dir="${build}"/>
|
|
<javac srcdir="${clientsrc}" destdir="${build}" debug="on" includeantruntime="false" target="${javac.target}" encoding="UTF-8"
|
|
source="${javac.source}" classpathref="compile.path">
|
|
<compilerarg line="-Xlint:unchecked"/>
|
|
</javac>
|
|
<jar basedir="${build}" destfile="${jar}">
|
|
<manifest>
|
|
<attribute name="Main-Class" value="ClientInit"/>
|
|
<attribute name="Class-Path" value="lib/rsclassic.jar"/>
|
|
</manifest>
|
|
</jar>
|
|
<delete dir="${build}"/>
|
|
</target>
|
|
|
|
<target name="compile-scripts">
|
|
<fail message="Error: must compile bot before compiling scripts!">
|
|
<condition>
|
|
<not>
|
|
<available file="${jar}"/>
|
|
</not>
|
|
</condition>
|
|
</fail>
|
|
<javac srcdir="${scriptsrc}" destdir="${scripts}" debug="on" includeantruntime="false" target="${javac.target}" encoding="UTF-8"
|
|
source="${javac.source}" classpathref="compile.path">
|
|
<compilerarg line="-Xlint:unchecked -Xlint:deprecation"/>
|
|
</javac>
|
|
</target>
|
|
|
|
<target name="compile-all">
|
|
<antcall target="compile-bot"/>
|
|
<antcall target="compile-scripts"/>
|
|
</target>
|
|
|
|
<target name="run-bot">
|
|
<fail message="Error: must compile bot first!">
|
|
<condition>
|
|
<not>
|
|
<available file="${jar}"/>
|
|
</not>
|
|
</condition>
|
|
</fail>
|
|
<java classname="ClientInit" fork="true" classpathref="compile.path">
|
|
<jvmarg line="-Xms312m -Dsun.java2d.opengl=true"/>
|
|
</java>
|
|
</target>
|
|
</project>
|