Widgets: fix Z-Order on up/down mouse events
[fanfix.git] / build.xml
1 <!--
2
3 Jexer - Java Text User Interface - Ant build
4
5 The MIT License (MIT)
6
7 Copyright (C) 2017 Kevin Lamonte
8
9 Permission is hereby granted, free of charge, to any person
10 obtaining a copy of this software and associated documentation
11 files (the "Software"), to deal in the Software without
12 restriction, including without limitation the rights to use, copy,
13 modify, merge, publish, distribute, sublicense, and/or sell copies
14 of the Software, and to permit persons to whom the Software is
15 furnished to do so, subject to the following conditions:
16
17 The above copyright notice and this permission notice shall be
18 included in all copies or substantial portions of the Software.
19
20 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
24 BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
25 ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
26 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27 SOFTWARE.
28
29 -->
30
31 <project name="jexer" basedir="." default="jar">
32
33 <!--
34 I am using GCJ deliberately to test against Java 1.5 features.
35 -->
36 <property name="build.compiler" value="gcj"/>
37
38 <property name="version" value="0.0.5"/>
39 <property name="src.dir" value="src"/>
40 <property name="resources.dir" value="resources"/>
41 <property name="build.dir" value="build"/>
42 <property name="classes.dir" value="${build.dir}/classes"/>
43 <property name="jar.dir" value="${build.dir}/jar"/>
44 <property name="apidocs.dir" value="docs/api"/>
45
46 <target name="clean">
47 <delete dir="${build.dir}"/>
48 <delete dir="${apidocs.dir}"/>
49 </target>
50
51 <target name="compile">
52 <mkdir dir="${classes.dir}"/>
53 <javac srcdir="${src.dir}" destdir="${classes.dir}"
54 includeantruntime="false"
55 debug="on"
56 debuglevel="lines,vars,source"
57 />
58 </target>
59
60 <target name="jar" depends="compile">
61 <mkdir dir="${jar.dir}"/>
62 <jar destfile="${jar.dir}/${ant.project.name}.jar"
63 basedir="${classes.dir}">
64 <fileset dir="${resources.dir}"/>
65 <!-- Include source by default. -->
66 <fileset dir="${src.dir}"/>
67 <manifest>
68 <attribute name="Main-Class" value="jexer.demos.Demo1"/>
69 <attribute name="Implementation-Version" value="${version}"/>
70 </manifest>
71 </jar>
72 </target>
73
74 <target name="run" depends="jar">
75 <java jar="${jar.dir}/${ant.project.name}.jar" fork="true">
76 <arg value="-Djexer.Swing=true"/>
77 </java>
78 </target>
79
80 <target name="clean-build" depends="clean,jar"/>
81
82 <target name="build" depends="jar"/>
83
84 <target name="doc" depends="docs"/>
85
86 <target name="docs" depends="jar">
87 <javadoc
88 destdir="${apidocs.dir}"
89 author="true"
90 version="true"
91 use="true"
92 access="protected"
93 failonwarning="true"
94 windowtitle="Jexer - Java Text User Interface - API docs">
95
96 <fileset dir="${src.dir}" defaultexcludes="yes">
97 <include name="jexer/**"/>
98 </fileset>
99
100 <doctitle>
101 <![CDATA[<h1>Jexer - Java Text User Interface Library</h1>]]>
102 </doctitle>
103 <bottom>
104 <![CDATA[<i>Copyright &#169; 2017 Kevin Lamonte. Licensed MIT.</i>]]>
105 </bottom>
106 <!--
107 <tag name="todo" scope="all" description="To do:"/>
108 <group title="Group 1 Packages" packages="com.dummy.test.a*"/>
109 <group title="Group 2 Packages" packages="com.dummy.test.b*:com.dummy.test.c*"/>
110 <link offline="true"
111 href="http://docs.oracle.com/javase/7/docs/api/"
112 packagelistLoc="C:\tmp"/>
113 <link href="http://docs.oracle.com/javase/7/docs/api/"/>
114 -->
115 </javadoc>
116 </target>
117
118 </project>