Commit | Line | Data |
---|---|---|
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 | ||
31 | <project name="jexer" basedir="." default="run"> | |
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"/> | |
7d4115a5 | 38 | |
7d4115a5 | 39 | <target name="clean"> |
70f5b2bb | 40 | <delete dir="${build.dir}"/> |
7d4115a5 KL |
41 | </target> |
42 | ||
43 | <target name="compile"> | |
70f5b2bb KL |
44 | <mkdir dir="${classes.dir}"/> |
45 | <javac srcdir="${src.dir}" destdir="${classes.dir}" | |
7d4115a5 KL |
46 | includeantruntime="false"/> |
47 | </target> | |
48 | ||
49 | <target name="jar" depends="compile"> | |
70f5b2bb KL |
50 | <mkdir dir="${jar.dir}"/> |
51 | <jar destfile="${jar.dir}/${ant.project.name}.jar" | |
52 | basedir="${classes.dir}"> | |
84614868 | 53 | <fileset dir="${resources.dir}"/> |
70f5b2bb KL |
54 | <manifest> |
55 | <attribute name="Main-Class" value="jexer.demos.Demo1"/> | |
56 | </manifest> | |
57 | </jar> | |
7d4115a5 KL |
58 | </target> |
59 | ||
70f5b2bb | 60 | <target name="run" depends="jar"> |
1ac2ccb1 KL |
61 | <java jar="${jar.dir}/${ant.project.name}.jar" fork="true"> |
62 | <arg value="-Djexer.AWT=true"/> | |
63 | </java> | |
7d4115a5 KL |
64 | </target> |
65 | ||
66 | <target name="clean-build" depends="clean,jar"/> | |
67 | ||
68 | <target name="main" depends="clean,run"/> | |
70f5b2bb | 69 | |
05dbb28d KL |
70 | <target name="docs" depends="jar"> |
71 | <javadoc | |
70f5b2bb KL |
72 | destdir="docs/api" |
73 | author="true" | |
74 | version="true" | |
75 | use="true" | |
05dbb28d KL |
76 | access="private" |
77 | failonwarning="true" | |
70f5b2bb | 78 | windowtitle="Jexer - Java Text User Interface - API docs"> |
05dbb28d KL |
79 | |
80 | <fileset dir="${src.dir}" defaultexcludes="yes"> | |
81 | <include name="jexer/**"/> | |
05dbb28d KL |
82 | </fileset> |
83 | ||
84 | <doctitle> | |
7b5261bc | 85 | <![CDATA[<h1>Jexer - Java Text User Interface Library</h1>]]> |
05dbb28d KL |
86 | </doctitle> |
87 | <bottom> | |
88 | <![CDATA[<i>Copyright © 2015 Kevin Lamonte. Licensed LGPLv3+</i>]]> | |
89 | </bottom> | |
90 | <!-- | |
91 | <tag name="todo" scope="all" description="To do:"/> | |
92 | <group title="Group 1 Packages" packages="com.dummy.test.a*"/> | |
93 | <group title="Group 2 Packages" packages="com.dummy.test.b*:com.dummy.test.c*"/> | |
94 | <link offline="true" | |
95 | href="http://docs.oracle.com/javase/7/docs/api/" | |
96 | packagelistLoc="C:\tmp"/> | |
97 | <link href="http://docs.oracle.com/javase/7/docs/api/"/> | |
98 | --> | |
99 | </javadoc> | |
100 | </target> | |
70f5b2bb | 101 | |
7d4115a5 | 102 | </project> |