-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
40 lines (35 loc) · 1.19 KB
/
build.xml
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
<project name="rpg-core" default="dist" basedir=".">
<!--
PROPERTIES
-->
<property name="project.name" value="${ant.project.name}"/>
<property name="src.dir" value="src"/>
<property name="build.dir" value="build"/>
<property name="build.classes.dir" value="${build.dir}/classes"/>
<property name="dist.dir" value="dist"/>
<!--
BASE TARGETS
-->
<target name="dist" depends="compile, dist-main"/>
<target name="compile" depends="compile-main"/>
<!--
MAIN TARGETS
-->
<target name="dist-main" depends="compile-main">
<jar destfile="${dist.dir}/${project.name}.jar" basedir="${build.classes.dir}"/>
</target>
<target name="compile-main" depends="clean">
<mkdir dir="${build.dir}"/>
<mkdir dir="${build.classes.dir}"/>
<javac srcdir="${src.dir}" destdir="${build.classes.dir}" includeantruntime="false"/>
</target>
<!--
CLEAN TARGETS
-->
<target name="clean">
<delete dir="${build.dir}" failonerror="false"/>
</target>
<target name="clean-all" depends="clean">
<delete dir="${dist.dir}" failonerror="false"/>
</target>
</project>