-
Notifications
You must be signed in to change notification settings - Fork 0
/
ant_build.xml
73 lines (58 loc) · 2.06 KB
/
ant_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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?xml version="1.0" encoding="UTF-8" ?>
<project basedir="." default="compile" name="LitM">
<description> LitM - IJA Project 2014 </description>
<property name="src" location="src"/>
<property name="build" location="build/classes"/>
<property name="lib" location="lib"/>
<property name="doc" location="doc"/>
<property name="dest" location="dest"/>
<property name="destLib" location="dest/lib"/>
<!-- CLEAN -->
<target name="clean">
<delete dir="${build}" />
<delete dir="${doc}" />
<delete dir="${dest}" />
</target>
<target name="init">
<mkdir dir="${build}" />
<mkdir dir="${doc}" />
<mkdir dir="${dest}" />
<mkdir dir="${destLib}" />
</target>
<path id="classpath">
<fileset dir="${lib}">
<include name="*.jar"/>
</fileset>
<pathelement path="${build}"/>
</path>
<pathconvert property="manifest.classpath" pathsep=" ">
<path refid="classpath"/>
<mapper>
<chainedmapper>
<flattenmapper/>
<globmapper from="*.jar" to="lib/*.jar"/>
</chainedmapper>
</mapper>
</pathconvert>
<!-- COMPILE -->
<target name="compile" depends="init" description="Compile">
<javac srcdir="${src}" destdir="${build}" includeantruntime="false" encoding="UTF-8" classpathref="classpath" />
<!-- JAR -->
<jar destfile="${dest}/Pd_corp.jar" basedir="${build}">
<manifest>
<attribute name="Main-Class" value="local.Main"/>
<attribute name="Class-Path" value="${manifest.classpath}"/>
</manifest>
</jar>
<copy todir="${destLib}">
<fileset dir="${lib}">
<include name="*.jar" />
</fileset>
</copy>
</target>
<target name = "javadoc">
<!-- DOC -->
<javadoc access="private" sourcepath="${src}" destdir="${doc}" encoding="UTF-8" charset="UTF-8">
</javadoc>
</target>
</project>