95 lines
3.1 KiB
XML
95 lines
3.1 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
<!--
|
|
-->
|
|
|
|
<project name="JLex" default="all" basedir=".">
|
|
|
|
<!-- =================================================================== -->
|
|
<!-- Initialization target -->
|
|
<!-- =================================================================== -->
|
|
<target name="init">
|
|
<tstamp/>
|
|
<property name="Name" value="JLex"/>
|
|
<property name="name" value="jlex"/>
|
|
<property name="version" value="1.2.5"/>
|
|
<property name="year" value="2001-2002"/>
|
|
|
|
<echo message=" ------------------- ${Name} ${version} [${year}] ---------"/>
|
|
|
|
<property name="compile.debug" value="on"/>
|
|
<property name="compile.optimize" value="true"/>
|
|
<property name="compile.deprecation" value="off"/>
|
|
<property name="build.dir" value="build"/>
|
|
<property name="dist.dir" value="dist"/>
|
|
<property name="bin.dir" value="lib"/>
|
|
<property name="lib.dir" value="lib"/>
|
|
|
|
</target>
|
|
|
|
<!-- ===================== Prepare Directories ========================= -->
|
|
<target name="prepare" depends="init">
|
|
<!-- "Build" Hierarchy -->
|
|
<mkdir dir="${build.dir}"/>
|
|
<mkdir dir="${build.dir}/src"/>
|
|
<mkdir dir="${build.dir}/classes"/>
|
|
<mkdir dir="${build.dir}/docs"/>
|
|
<mkdir dir="${build.dir}/docs/api"/>
|
|
<!-- "Dist" Hierarchy -->
|
|
<mkdir dir="${dist.dir}"/>
|
|
<mkdir dir="${dist.dir}/docs"/>
|
|
<mkdir dir="${dist.dir}/docs/api"/>
|
|
<mkdir dir="${dist.dir}/lib"/>
|
|
</target>
|
|
|
|
<!-- ======================== Compile Classes ========================== -->
|
|
<target name="package" depends="prepare">
|
|
|
|
<copy todir="${build.dir}/src/JLex" file="Main.java"/>
|
|
|
|
<javac srcdir="${build.dir}/src"
|
|
includes="JLex/**"
|
|
destdir="${build.dir}/classes"
|
|
debug="${compile.debug}"
|
|
deprecation="${compile.deprecation}"
|
|
optimize="${compile.optimize}" />
|
|
|
|
|
|
</target>
|
|
|
|
<!-- ======================== Build JavaDoc =========================== -->
|
|
<target name="javadoc" depends="prepare">
|
|
<javadoc packagenames="JLex.*" sourcepath="${build.dir}/src"
|
|
destdir="${build.dir}/docs/api"
|
|
use="true"
|
|
windowtitle="JLex v${version} API Documentation"
|
|
doctitle="JLex v${version} API Documentation"
|
|
bottom="Written by Elliot Berk ejberk@cs.princeton.edu. Copyright 1996." />
|
|
</target>
|
|
|
|
|
|
<!-- ===================== Distribution Files ========================= -->
|
|
<target name="dist" depends="package">
|
|
<copy todir="${dist.dir}/docs/api">
|
|
<fileset dir="${build.dir}/docs/api"/>
|
|
</copy>
|
|
|
|
<jar jarfile="${dist.dir}/lib/${name}.jar">
|
|
<fileset dir="${build.dir}/classes">
|
|
</fileset>
|
|
</jar>
|
|
|
|
</target>
|
|
|
|
<!-- ====================== Clean Generated Files ===================== -->
|
|
<target name="clean" depends="init">
|
|
<delete dir="${build.dir}"/>
|
|
<delete dir="${dist.dir}"/>
|
|
</target>
|
|
|
|
<!-- ========================= All In One Build ======================= -->
|
|
<target name="all" depends="clean,dist"/>
|
|
|
|
|
|
</project>
|