telnet daemon working
[nikiroo-utils.git] / build.xml
CommitLineData
7d4115a5
KL
1<!--
2
3 Jexer - Java Text User Interface - Ant build
4
5 $Id$
6
7 This program is licensed under the GNU Lesser General Public License
8 Version 3. Please see the file "COPYING" in this directory for more
9 information about the GNU Lesser General Public License Version 3.
10
11 Copyright (C) 2015 Kevin Lamonte
12
13 This library is free software; you can redistribute it and/or modify
14 it under the terms of the GNU Lesser General Public License as
15 published by the Free Software Foundation; either version 3 of the
16 License, or (at your option) any later version.
17
18 This program is distributed in the hope that it will be useful,
19 but WITHOUT ANY WARRANTY; without even the implied warranty of
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 GNU General Public License for more details.
22
23 You should have received a copy of the GNU Lesser General Public
24 License along with this program; if not, see
25 http://www.gnu.org/licenses/, or write to the Free Software
26 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
27 USA
28
29-->
30
8caf0d51 31<project name="jexer" basedir="." default="jar">
7d4115a5 32
84614868
KL
33 <property name="src.dir" value="src"/>
34 <property name="resources.dir" value="resources"/>
35 <property name="build.dir" value="build"/>
36 <property name="classes.dir" value="${build.dir}/classes"/>
37 <property name="jar.dir" value="${build.dir}/jar"/>
a4406f4e 38 <property name="apidocs.dir" value="docs/api"/>
7d4115a5 39
7d4115a5 40 <target name="clean">
70f5b2bb 41 <delete dir="${build.dir}"/>
a4406f4e 42 <delete dir="${apidocs.dir}"/>
7d4115a5
KL
43 </target>
44
45 <target name="compile">
70f5b2bb
KL
46 <mkdir dir="${classes.dir}"/>
47 <javac srcdir="${src.dir}" destdir="${classes.dir}"
9b1afdde
KL
48 includeantruntime="false"
49 debug="on"
50 debuglevel="lines,vars,source"
51 />
7d4115a5
KL
52 </target>
53
54 <target name="jar" depends="compile">
70f5b2bb
KL
55 <mkdir dir="${jar.dir}"/>
56 <jar destfile="${jar.dir}/${ant.project.name}.jar"
57 basedir="${classes.dir}">
84614868 58 <fileset dir="${resources.dir}"/>
5e9795db
KL
59 <!-- By including Jexer's source, the LGPL terms are
60 automatically satisfied. -->
61 <fileset dir="${src.dir}"/>
70f5b2bb
KL
62 <manifest>
63 <attribute name="Main-Class" value="jexer.demos.Demo1"/>
64 </manifest>
65 </jar>
7d4115a5
KL
66 </target>
67
70f5b2bb 68 <target name="run" depends="jar">
1ac2ccb1 69 <java jar="${jar.dir}/${ant.project.name}.jar" fork="true">
a4406f4e 70 <arg value="-Djexer.Swing=true"/>
1ac2ccb1 71 </java>
7d4115a5
KL
72 </target>
73
74 <target name="clean-build" depends="clean,jar"/>
75
76 <target name="main" depends="clean,run"/>
70f5b2bb 77
cf9af8df
KL
78 <target name="doc" depends="docs"/>
79
05dbb28d
KL
80 <target name="docs" depends="jar">
81 <javadoc
a4406f4e 82 destdir="${apidocs.dir}"
70f5b2bb
KL
83 author="true"
84 version="true"
85 use="true"
cf9af8df 86 access="protected"
05dbb28d 87 failonwarning="true"
70f5b2bb 88 windowtitle="Jexer - Java Text User Interface - API docs">
05dbb28d
KL
89
90 <fileset dir="${src.dir}" defaultexcludes="yes">
91 <include name="jexer/**"/>
05dbb28d
KL
92 </fileset>
93
94 <doctitle>
7b5261bc 95 <![CDATA[<h1>Jexer - Java Text User Interface Library</h1>]]>
05dbb28d
KL
96 </doctitle>
97 <bottom>
98 <![CDATA[<i>Copyright &#169; 2015 Kevin Lamonte. Licensed LGPLv3+</i>]]>
99 </bottom>
100 <!--
101 <tag name="todo" scope="all" description="To do:"/>
102 <group title="Group 1 Packages" packages="com.dummy.test.a*"/>
103 <group title="Group 2 Packages" packages="com.dummy.test.b*:com.dummy.test.c*"/>
104 <link offline="true"
105 href="http://docs.oracle.com/javase/7/docs/api/"
106 packagelistLoc="C:\tmp"/>
107 <link href="http://docs.oracle.com/javase/7/docs/api/"/>
108 -->
109 </javadoc>
110 </target>
70f5b2bb 111
7d4115a5 112</project>