-
Notifications
You must be signed in to change notification settings - Fork 150
Expand file tree
/
Copy pathbuild.xml
More file actions
52 lines (48 loc) Β· 1.82 KB
/
build.xml
File metadata and controls
52 lines (48 loc) Β· 1.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<project default="compile" basedir=".">
<property name="src" location="src"/>
<property name="pc_client" location="../PC_Client/src"/>
<property name="build" location="build"/>
<property name="lib" location="../PC_Client/lib"/>
<property name="jar" location="Open_RSC_Client.jar"/>
<property name="javac.source" value="1.8"/>
<property name="javac.target" value="1.8"/>
<target name="clean">
<delete dir="${build}" />
<delete file="${jar}" />
</target>
<target name="compile">
<echo message="Using Java version ${ant.java.version}."/>
<delete file="${jar}"/>
<delete dir="${build}"/>
<mkdir dir="${build}"/>
<copy todir="${build}/res">
<fileset dir="src/res"/>
</copy>
<javac srcdir="${src}:${pc_client}" destdir="${build}" debug="on" target="${javac.target}" source="${javac.source}"
includeantruntime="false">
<classpath>
<pathelement path="${java.class.path}/"/>
<pathelement location="${lib}/discord-rpc.jar"/>
</classpath>
<compilerarg line="-Xlint:unchecked"/>
</javac>
<jar basedir="${build}" destfile="${jar}">
<zipgroupfileset dir="${lib}" includes="*.jar"/>
<manifest>
<attribute name="Main-Class" value="orsc.OpenRSC"/>
</manifest>
</jar>
</target>
<target name="runclient">
<java classname="orsc.OpenRSC" fork="true">
<jvmarg line="-Xms312m -Dsun.java2d.opengl=true"/>
<classpath>
<pathelement path="${jar}:${lib}/discord-rpc.jar"/>
</classpath>
</java>
</target>
<target name="compile-and-run">
<antcall target="compile"/>
<antcall target="runclient"/>
</target>
</project>