forked from ctran/TinyRadius
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
91 lines (80 loc) · 2.92 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
<?xml version="1.0"?>
<!--
$Id: build.xml,v 1.17 2010/02/03 15:56:54 wuttke Exp $
created 11.04.2005 18:05:36
TinyRadius build file
-->
<project name="TinyRadius" default="compile">
<property name="src" location="src"/>
<property name="build" location="build"/>
<property name="dist" location="dist"/>
<property name="version" value="1.0"/>
<property name="classpath" value="lib/commons-logging.jar"/>
<target name="init">
<tstamp/>
<mkdir dir="${build}"/>
</target>
<target name="compile" depends="init">
<javac srcdir="${src}"
destdir="${build}"
classpath="${classpath}"
debug="true"
source="1.2"
target="1.1"/>
</target>
<target name="jar" depends="compile">
<mkdir dir="${dist}"/>
<copy file="${src}/org/tinyradius/dictionary/default_dictionary" todir="${build}/org/tinyradius/dictionary"/>
<jar jarfile="${dist}/TinyRadius-${version}.jar" basedir="${build}"/>
</target>
<target name="clean">
<delete dir="${build}"/>
<delete dir="${dist}"/>
<delete dir="doc/apidoc"/>
</target>
<target name="javadoc" depends="compile">
<javadoc destdir="doc/apidoc"
access="protected"
use="true" notree="false" nonavbar="false" noindex="false"
splitindex="true" author="true" version="true"
nodeprecatedlist="false" nodeprecated="false"
packagenames="org.tinyradius.packet,org.tinyradius.util,org.tinyradius.test,org.tinyradius.attribute,org.tinyradius.dictionary"
sourcepath="${src}" classpath="${build}:${classpath}"
doctitle="TinyRadius: Java Radius Library"
additionalparam=" -encoding iso-8859-1 -docencoding iso-8859-1 -charset iso-8859-1"/>
</target>
<target name="dist" depends="jar,javadoc">
<delete file="${dist}/TinyRadius-${version}.tar.gz"/>
<tar tarfile="${dist}/TinyRadius-${version}.tar">
<tarfileset dir=".">
<exclude name="build/"/>
<exclude name="bin/"/>
</tarfileset>
</tar>
<gzip zipfile="${dist}/TinyRadius-${version}.tar.gz" src="${dist}/TinyRadius-${version}.tar"/>
<delete file="${dist}/TinyRadius-${version}.tar"/>
</target>
<target name="sourceforge" depends="dist">
<ftp server="upload.sourceforge.net"
remotedir="incoming"
userid="anonymous"
password=""
verbose="yes"
passive="yes">
<fileset file="${dist}/TinyRadius-${version}.tar.gz"/>
</ftp>
</target>
<!-- requires the passphrase of the SSH private key
to be cached in the SSH agent -->
<target name="website" depends="javadoc">
<exec executable="scp">
<arg line="-r"/>
<arg line="doc/apidoc"/>
<arg line="[email protected]:/home/groups/t/ti/tinyradius/htdocs"/>
</exec>
<exec executable="scp">
<arg line="doc/tinyradius.html"/>
<arg line="[email protected]:/home/groups/t/ti/tinyradius/htdocs/index.html"/>
</exec>
</target>
</project>