-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.xml
103 lines (82 loc) · 3.27 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
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<project name="soar-visualsoar" default="build" basedir=".">
<property name="manifest.classpath" value="java/sml.jar bin/java/sml.jar lib/sml.jar" />
<property name="jar.main.class" value="edu.umich.soar.visualsoar.VisualSoar" />
<property name="version" value="snapshot" />
<property name="manifest.vendor" value="University of Michigan"/>
<property name="copyright" value="(c) The Regents of the University of Michigan, 2024"/>
<property name="src" location="src/main/java" />
<property name="lib" location="lib" />
<property name="doc" location="doc" />
<property name="target" location="target" />
<property name="target.classes" location="${target}/classes" />
<property name="main.resources" location="src/main/resources" />
<property name="java.source.level" value="11"/>
<property name="java.target.level" value="11"/>
<property name="jar.name" value="VisualSoar.jar"/>
<property name="manifest.classpath" value=""/>
<property name="doc.packagenames" value="edu.umich.soar.*"/>
<property name="doc.sourcepath" location="${src}"/>
<property name="doc.excludepackagenames" value="edu.umich.demos.*"/>
<property name="doc.destdir" location="${doc}/${ant.project.name}/api"/>
<property name="doc.windowtitle" value="${ant.project.name} ${version}"/>
<presetdef name="javac">
<javac includeantruntime="false" />
</presetdef>
<target name="init" >
<mkdir dir="${target}" />
<mkdir dir="${target.classes}" />
<path id="compile.libs">
<fileset dir="lib">
<include name="*.jar" />
</fileset>
</path>
</target>
<target name="compile" depends="init">
<javac destdir="${target.classes}" debug="on" optimize="on" target="${java.target.level}" source="${java.source.level}" >
<!-- <compilerarg value="-Xlint:all" /> -->
<src path="${src}" />
<classpath refid="compile.libs"/>
</javac>
<copy todir="${target.classes}">
<fileset dir="${main.resources}">
<exclude name="**/.svn"/>
</fileset>
</copy>
</target>
<target name="jar" depends="compile">
<tstamp />
<jar destfile="${jar.name}">
<fileset dir="${target.classes}"/>
<manifest>
<attribute name="Title" value="${ant.project.name} ${version}" />
<attribute name="Vendor" value="${manifest.vendor}" />
<attribute name="Date" value="${TODAY} ${TSTAMP}" />
<attribute name="Version" value="${version}" />
<attribute name="Built-By" value="${user.name}" />
<attribute name="Copyright" value="${copyright}" />
<attribute name="Main-Class" value="${jar.main.class}" />
<attribute name="Class-Path" value=". ${manifest.classpath}" />
</manifest>
</jar>
</target>
<target name="clean">
<delete dir="${target}" />
<delete file="java/${jar.name}" />
</target>
<target name="doc" depends="init" description="Generate API documentation">
<javadoc packagenames="${doc.packagenames}"
sourcepath="${src}"
classpathref="compile.libs"
excludepackagenames="${doc.excludepackagenames}"
defaultexcludes="yes"
destdir="${doc.destdir}"
author="true"
version="true"
use="true"
windowtitle="${doc.windowtitle}">
<doctitle><![CDATA[<h1><a href="http://sitemaker.umich.edu/soar">Soar</a> ${version}</h1>]]></doctitle>
<bottom><![CDATA[<i>${copyright}</i>]]></bottom>
</javadoc>
</target>
<target name="build" depends="jar" />
</project>