1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
|
<?xml version="1.0" encoding="utf-8"?>
<project name="jlhafrontend" default="compile" basedir=".">
<!-- ========== Component Declarations ==================================== -->
<!-- The name of this component -->
<property name="component.name" value="jlhafrontend"/>
<property name="component.version" value="0.1.6"/>
<!-- The base directory for compilation targets -->
<property name="build.home" value="${basedir}/target"/>
<!-- The base directory for component sources -->
<property name="source.home" value="${basedir}"/>
<property name="link.url" value="http://java.sun.com/j2se/1.4.2/docs/api/"/>
<property name="link.offline" value="false"/>
<property name="packagelist.loc" value="" />
<!-- ========== Compiler Defaults ========================================= -->
<!-- Should Java compilations set the 'debug' compiler option? -->
<property name="compile.debug" value="true"/>
<!-- Should Java compilations set the 'deprecation' compiler option? -->
<property name="compile.deprecation" value="false"/>
<!-- Should Java compilations set the 'optimize' compiler option? -->
<property name="compile.optimize" value="false"/>
<property name="compile.nowarn" value="no"/>
<!-- ========== Classpath ================================================= -->
<property name="jlha.jar" value="/usr/share/java/jlha.jar" />
<path id="jlhafrontend.classpath">
<pathelement path="${classpath}"/>
<pathelement path="${jlha.jar}"/>
</path>
<!-- ========== Executable Targets ======================================== -->
<target name="prepare" description="Prepare build directory">
<mkdir dir="${build.home}" />
<mkdir dir="${build.home}/classes" />
<mkdir dir="${build.home}/docs" />
<mkdir dir="${build.home}/docs/api" />
</target>
<target name="compile" depends="prepare">
<javac srcdir="${source.home}" destdir="${build.home}/classes"
debug="${compile.debug}" deprecation="${compile.deprecation}"
optimize="${compile.optimize}" verbose="no"
source="1.3" nowarn="${compile.nowarn}">
<classpath refid="jlhafrontend.classpath" />
</javac>
<jar jarfile="${build.home}/${component.name}.jar"
basedir="${build.home}/classes">
<manifest>
<attribute name="Built-By" value="${user.name}"/>
<attribute name="Main-Class" value="org.jlhafrontend.JLHAFrontEnd"/>
<attribute name="Class-Path" value="${jlha.jar}"/>
</manifest>
</jar>
</target>
<target name="clean"
description="Clean build and distribution directories">
<delete dir="${build.home}"/>
</target>
<target name="all" depends="clean,compile,javadoc"
description="Clean and compile all components"/>
<target name="javadoc" depends="prepare"
description="Create component Javadoc documentation">
<javadoc packagenames="org.jlhafrontend"
sourcepath="${source.home}"
version="true" author="true" use="true" access="package"
splitindex="true" nodeprecated="false" notree="false"
nodeprecatedlist="false" noindex="false" nonavbar="false"
doctitle="jLHA front-end document"
Windowtitle="jLHA front-end"
destdir="${build.home}/docs/api" defaultexcludes="yes"
classpath="${classpath}">
<link href="${link.url}" offline="${link.offline}"
packagelistLoc="${packagelist.loc}"/>
</javadoc>
</target>
<target name="dist" depends="prepare"
description="Make source package">
<tar destfile="${build.home}/${component.name}-${component.version}.tar.gz"
compression="gzip">
<tarfileset prefix="${component.name}-${component.version}/" dir="${basedir}" excludes="target/**, **/CVS">
</tarfileset>
</tar>
</target>
</project>
|