Commit | Line | Data |
---|---|---|
7d4115a5 KL |
1 | <!-- |
2 | ||
3 | Jexer - Java Text User Interface - Ant build | |
4 | ||
e16dda65 KL |
5 | The MIT License (MIT) |
6 | ||
7 | Copyright (C) 2016 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. | |
7d4115a5 KL |
28 | |
29 | --> | |
30 | ||
8caf0d51 | 31 | <project name="jexer" basedir="." default="jar"> |
7d4115a5 | 32 | |
5dfd1c11 | 33 | <!-- <property name="build.compiler" value="gcj"/> --> |
e16dda65 KL |
34 | |
35 | <property name="src.dir" value="src"/> | |
36 | <property name="resources.dir" value="resources"/> | |
37 | <property name="build.dir" value="build"/> | |
38 | <property name="classes.dir" value="${build.dir}/classes"/> | |
39 | <property name="jar.dir" value="${build.dir}/jar"/> | |
40 | <property name="apidocs.dir" value="docs/api"/> | |
41 | ||
42 | <target name="clean"> | |
43 | <delete dir="${build.dir}"/> | |
44 | <delete dir="${apidocs.dir}"/> | |
45 | </target> | |
46 | ||
47 | <target name="compile"> | |
48 | <mkdir dir="${classes.dir}"/> | |
49 | <javac srcdir="${src.dir}" destdir="${classes.dir}" | |
50 | includeantruntime="false" | |
51 | debug="on" | |
52 | debuglevel="lines,vars,source" | |
53 | /> | |
54 | </target> | |
55 | ||
56 | <target name="jar" depends="compile"> | |
57 | <mkdir dir="${jar.dir}"/> | |
58 | <jar destfile="${jar.dir}/${ant.project.name}.jar" | |
59 | basedir="${classes.dir}"> | |
60 | <fileset dir="${resources.dir}"/> | |
61 | <!-- Include source by default. --> | |
62 | <fileset dir="${src.dir}"/> | |
63 | <manifest> | |
64 | <attribute name="Main-Class" value="jexer.demos.Demo1"/> | |
65 | </manifest> | |
66 | </jar> | |
67 | </target> | |
68 | ||
69 | <target name="run" depends="jar"> | |
70 | <java jar="${jar.dir}/${ant.project.name}.jar" fork="true"> | |
71 | <arg value="-Djexer.Swing=true"/> | |
72 | </java> | |
73 | </target> | |
74 | ||
75 | <target name="clean-build" depends="clean,jar"/> | |
76 | ||
77 | <target name="build" depends="jar"/> | |
78 | ||
79 | <target name="doc" depends="docs"/> | |
80 | ||
81 | <target name="docs" depends="jar"> | |
82 | <javadoc | |
83 | destdir="${apidocs.dir}" | |
84 | author="true" | |
85 | version="true" | |
86 | use="true" | |
87 | access="protected" | |
88 | failonwarning="true" | |
89 | windowtitle="Jexer - Java Text User Interface - API docs"> | |
90 | ||
91 | <fileset dir="${src.dir}" defaultexcludes="yes"> | |
92 | <include name="jexer/**"/> | |
93 | </fileset> | |
94 | ||
95 | <doctitle> | |
96 | <![CDATA[<h1>Jexer - Java Text User Interface Library</h1>]]> | |
97 | </doctitle> | |
98 | <bottom> | |
99 | <![CDATA[<i>Copyright © 2016 Kevin Lamonte. Licensed MIT.</i>]]> | |
100 | </bottom> | |
101 | <!-- | |
102 | <tag name="todo" scope="all" description="To do:"/> | |
103 | <group title="Group 1 Packages" packages="com.dummy.test.a*"/> | |
104 | <group title="Group 2 Packages" packages="com.dummy.test.b*:com.dummy.test.c*"/> | |
105 | <link offline="true" | |
106 | href="http://docs.oracle.com/javase/7/docs/api/" | |
107 | packagelistLoc="C:\tmp"/> | |
108 | <link href="http://docs.oracle.com/javase/7/docs/api/"/> | |
109 | --> | |
110 | </javadoc> | |
111 | </target> | |
70f5b2bb | 112 | |
7d4115a5 | 113 | </project> |