File: build.xml

package info (click to toggle)
jta 2.6%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,384 kB
  • sloc: java: 12,691; ansic: 1,066; makefile: 243; xml: 72; sh: 7
file content (112 lines) | stat: -rw-r--r-- 3,933 bytes parent folder | download | duplicates (3)
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
103
104
105
106
107
108
109
110
111
112
<?xml version="1.0" encoding="UTF-8"?>
<!--
 * This file is part of "JTA - Telnet/SSH for the JAVA(tm) platform".
 *
 * (c) Matthias L. Jugel, Marcus Meißner 1996-2005. All Rights Reserved.
 *
 * Please visit http://javatelnet.org/ for updates and contact.
 *
 * LICENSE NOTICE
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 *
-->

<project name="jta" basedir="." default="build">

  <target name="init">
    <property name="name" value="jta"/>
    <property name="version" value="26"/>
    <property name="target.dir" value="jar"/>
    <property name="debug" value="true"/>
    <tstamp>
      <format property="BUILD" pattern="yyyyMMdd-hhmm" locale="en"/>
    </tstamp>
  </target>

  <target name="all" depends="build,doc,bin-jar,src-jar"/>

  <target name="dist" depends="clean,version,all" description="builds a distribution"/>

  <target name="build" depends="compile" description="build binaries"/>

  <target name="version" depends="init">
    <filter token="date" value="${BUILD}"/>
    <delete file="de/mud/jta/Build.java"/>
    <copy file="de/mud/jta/Build.java.tmpl" tofile="de/mud/jta/Build.java" filtering="true"/>
  </target>

  <target name="compile">
    <javac srcdir="." includes="de/mud/**" excludes="de/mud/flash/**" debug="${debug}"/>
  </target>

  <target name="compile-contrib">
    <javac srcdir="contrib" includes="**" debug="${debug}">
      <classpath>
        <pathelement location="."/>
        <pathelement location="jar/gnu-regexp-1.0.8.jar"/>
      </classpath>
    </javac>
  </target>

  <target name="clean" depends="init" description="clean up">
    <delete>
      <fileset dir="." includes="**/*.class"/>
      <fileset dir="." includes="doc/source/**"/>
    </delete>
    <delete dir="${name}${version}"/>
  </target>

  <target name="doc" depends="init" description="create java documentation">
    <javadoc sourcepath="." destdir="doc/source" packagenames="de.*"
      author="true"
      version="true"
      use="true"
      windowtitle="JTA - Telnet/SSH for the JAVA(tm) platform (${name}${version})"/>
  </target>

  <target name="bin-jar" depends="init,build" description="package binaries">
    <jar jarfile="${target.dir}/${name}${version}.jar"
      manifest="jta.manifest">
      <fileset dir="." includes="de/**/*.class"/>
      <fileset dir="." includes="de/**/*.conf"/>
      <fileset dir="." includes="license/**" excludes="license/CVS"/>
      <fileset dir="." includes="index.html"/>
    </jar>
  </target>

  <target name="src-jar" depends="init,clean" description="package the sources">
    <mkdir dir="${name}${version}"/>
    <!-- copy sources -->
    <copy todir="${name}${version}">
      <fileset dir=".">
        <exclude name="**/*.class"/>
        <exclude name="**/CVS"/>
        <exclude name="**/.*"/>
        <exclude name="jar/**"/>
        <exclude name="tmp/**"/>
        <exclude name="bin/dist.sh"/>
        <exclude name="${name}${version}"/>
      </fileset>
    </copy>
    <!-- copy changes, ignore errors -->
    <exec executable="rcs2log" failonerror="false" 
          output="${name}${version}/CHANGES"/>
    <!-- package sources -->
    <jar basedir="." includes="${name}${version}/**" jarfile="${target.dir}/jta${version}-src.jar"/>
    <delete dir="${name}${version}"/>
  </target>


</project>