-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
28 lines (28 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="BrainJuck" default="build" basedir=".">
<description>
BrainJuck Ant Build File - Copyright (c) 2016 Anar Software LLC. (http://anars.com)
</description>
<property name="source.dir" location="source"/>
<property name="classes.dir" location="classes"/>
<property name="release.dir" location="release"/>
<target name="build" description="compile the source code">
<mkdir dir="${classes.dir}"/>
<javac includeantruntime="false" srcdir="${source.dir}" destdir="${classes.dir}" source="1.2" target="1.2" debug="off" debuglevel="none" optimize="on"/>
<mkdir dir="${release.dir}"/>
<jar jarfile="${release.dir}/BrainJuck.jar" basedir="${classes.dir}" level="9">
<manifest>
<attribute name="Main-Class" value="com.anars.brainjuck.Main"/>
</manifest>
</jar>
<checksum file="${release.dir}/BrainJuck.jar" forceOverwrite="yes"/>
<move verbose="true" todir="${release.dir}">
<fileset dir="${release.dir}">
<include name="**MD5"/>
</fileset>
<mapper type="regexp" from="(.*)jar.MD5" to="\1md5"/>
</move>
<copy file="license.txt" tofile="${release.dir}/BrainJuck.license"/>
<delete dir="${classes.dir}"/>
</target>
</project>