-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathbuild.xml
More file actions
78 lines (65 loc) · 2.25 KB
/
build.xml
File metadata and controls
78 lines (65 loc) · 2.25 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
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
<?xml version="1.0" encoding="UTF-8"?>
<!--
This is an ANT script for building TACACS+.
Just run 'ant' in the directory containing this build.xml.
ANT will compile and jar the results into ../dist/tacacs.jar
-->
<project basedir="." default="build" name="TACACS">
<description>
API for TACACS+ clients or servers
</description>
<!-- MANIFEST Properties... -->
<property name ="Created-By" value="Augur Systems, Inc."/>
<property name ="Product-Name" value="TACACS+"/>
<!--property name ="Product-Version" value="1.0.0"/-->
<property name ="javacVersion" value="1.8"/>
<property name ="distDir" value="dist"/>
<property name ="src" value="src/main/java"/>
<property name ="classes" value="build/classes"/>
<property name ="tacacsJar" value="${distDir}/tacacs.jar"/>
<target name="build" description="Build tacacs.jar">
<antcall target="clean"/>
<antcall target="env"/>
<antcall target="compile+jar"/>
</target>
<target name="clean">
<delete failonerror="false" includeEmptyDirs="true" verbose="false">
<fileset dir="${distDir}" includes="*.jar"/>
<fileset dir="${classes}" includes="**/*"/>
</delete>
</target>
<target name="env" description="Create directories, copy libs, etc.">
<mkdir dir="${classes}"/>
<mkdir dir="${distDir}"/>
</target>
<target name="compile+jar">
<javac
debug="true"
debuglevel="lines,source"
deprecation="false"
destdir="${classes}"
source="${javacVersion}"
srcdir="${src}"
target="${javacVersion}"
verbose="false"
includeAntRuntime="false"
>
<include name="com/augur/tacacs/*.java"/>
<exclude name="com/augur/tacacs/ExampleClient.java"/>
</javac>
<tstamp><format property="timestamp" pattern="MMMM dd, yyyy hh:mm:ss aa z"/></tstamp>
<echo>About to jar...</echo>
<jar compress="true" destfile="${tacacsJar}">
<manifest>
<attribute name="Created-By" value="${Created-By}"/>
<attribute name="Product-Name" value="${Product-Name}"/>
<!--attribute name="Product-Version" value="${Product-Version}"/-->
<attribute name="Product-Build" value="${timestamp}"/>
<attribute name="Main-Class" value="com.augur.tacacs.TacacsClient"/>
</manifest>
<fileset dir="${classes}">
<include name="**/*.class"/>
</fileset>
</jar>
</target>
</project>