jexer/build.xml

120 lines
3.9 KiB
XML
Raw Normal View History

2015-03-08 04:57:55 -06:00
<!--
Jexer - Java Text User Interface - Ant build
2016-01-28 06:00:14 -07:00
The MIT License (MIT)
2019-02-14 20:17:16 -07:00
Copyright (C) 2019 Kevin Lamonte
2016-01-28 06:00:14 -07:00
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use, copy,
modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
2015-03-08 04:57:55 -06:00
-->
2015-03-21 20:54:29 -06:00
<project name="jexer" basedir="." default="jar">
2015-03-08 04:57:55 -06:00
2019-02-14 20:17:16 -07:00
<property name="version" value="0.3.0"/>
2016-01-28 06:00:14 -07:00
<property name="src.dir" value="src"/>
<property name="resources.dir" value="resources"/>
<property name="build.dir" value="build"/>
<property name="classes.dir" value="${build.dir}/classes"/>
<property name="jar.dir" value="${build.dir}/jar"/>
<property name="apidocs.dir" value="docs/api"/>
<target name="clean">
<delete dir="${build.dir}"/>
<delete dir="${apidocs.dir}"/>
</target>
<target name="compile">
<mkdir dir="${classes.dir}"/>
<javac srcdir="${src.dir}" destdir="${classes.dir}"
2017-07-28 19:37:33 -06:00
includeantruntime="false"
debug="on"
debuglevel="lines,vars,source"
2019-02-21 18:53:52 -07:00
target="1.6"
source="1.6"
2017-07-28 19:37:33 -06:00
/>
2016-01-28 06:00:14 -07:00
</target>
<target name="jar" depends="compile">
<mkdir dir="${jar.dir}"/>
<jar destfile="${jar.dir}/${ant.project.name}.jar"
2017-07-28 19:37:33 -06:00
basedir="${classes.dir}">
2016-01-28 06:00:14 -07:00
<fileset dir="${resources.dir}"/>
2017-08-19 12:36:43 -06:00
<!-- Include properties files. -->
<fileset dir="${src.dir}" includes="**/*.properties"/>
2016-01-28 06:00:14 -07:00
<!-- Include source by default. -->
<!-- <fileset dir="${src.dir}"/> -->
2017-08-19 12:36:43 -06:00
2016-01-28 06:00:14 -07:00
<manifest>
2017-07-28 19:37:33 -06:00
<attribute name="Main-Class" value="jexer.demos.Demo1"/>
<attribute name="Implementation-Version" value="${version}"/>
2016-01-28 06:00:14 -07:00
</manifest>
</jar>
</target>
<target name="run" depends="jar">
<java jar="${jar.dir}/${ant.project.name}.jar" fork="true">
<arg value="-Djexer.Swing=true"/>
</java>
</target>
<target name="clean-build" depends="clean,jar"/>
<target name="build" depends="jar"/>
<target name="doc" depends="docs"/>
<target name="docs" depends="jar">
<javadoc
2017-07-28 19:37:33 -06:00
destdir="${apidocs.dir}"
author="true"
version="true"
use="true"
access="protected"
windowtitle="Jexer - Java Text User Interface - API docs">
2016-01-28 06:00:14 -07:00
<fileset dir="${src.dir}" defaultexcludes="yes">
2017-08-19 12:36:43 -06:00
<include name="jexer/**/*.java"/>
2016-01-28 06:00:14 -07:00
</fileset>
<doctitle>
2017-07-28 19:37:33 -06:00
<![CDATA[<h1>Jexer - Java Text User Interface Library</h1>]]>
2016-01-28 06:00:14 -07:00
</doctitle>
<bottom>
2019-02-14 20:17:16 -07:00
<![CDATA[<i>Copyright &#169; 2019 Kevin Lamonte. Licensed MIT.</i>]]>
2016-01-28 06:00:14 -07:00
</bottom>
<!--
2017-07-28 19:37:33 -06:00
<tag name="todo" scope="all" description="To do:"/>
<group title="Group 1 Packages" packages="com.dummy.test.a*"/>
<group title="Group 2 Packages" packages="com.dummy.test.b*:com.dummy.test.c*"/>
<link offline="true"
href="http://docs.oracle.com/javase/7/docs/api/"
packagelistLoc="C:\tmp"/>
<link href="http://docs.oracle.com/javase/7/docs/api/"/>
2016-01-28 06:00:14 -07:00
-->
</javadoc>
</target>
2015-03-15 12:02:37 -06:00
2015-03-08 04:57:55 -06:00
</project>