<project name="test" default="run">
<!-- The value of the property below needs to be changed to
the name of the class containing the method public static void main( String args[] )
-->
<property name="runClass" value="RTestStudent"/>
<!-- To run this build file, click on the right hand button on the tool bar -->
<property name="docClass" value="RTestStudent"/>
<!-- To produce JavaDoc documentation for a specific class
(a) change the value of the property docClass (above) to the name of your class
(b) type "ant.bat doc" in the command box (below) and hit return
-->
<!-- ********************************************************************
For a simple project, there will be no need to change any text below,
but there are many features in Ant which can be used to enhance the
development process
-->
<property name="homedir" value="${user.dir}"/>
<path id="project.class.path">
<pathelement path="${homedir}"/>
<fileset dir="${javalib}">
<include name = "uwejava.jar"/>
<include name = "glos.jar"/>
</fileset>
</path>
<target name="compile">
<echo message="Library = ${javalib}"/>
<echo message="Compiling in directory ${homedir}"/>
<javac srcdir = "${homedir}"
includes = "*.java"
classpathref = "project.class.path"
debug = "true"
listfiles = "true"/>
</target>
<target name="run" depends="compile">
<echo message = "Running class ${homedir}/${runClass}"/>
<java classname = "${runClass}"
classpathref = "project.class.path"/>
</target>
<target name="doc">
<echo message = "generating javadoc in $(homedir)\docs"/>
<javadoc
sourcefiles="${docClass}.java"
sourcepath="${homedir}"
destdir="docs"
author="true"
version="true"
classpathref = "project.class.path"
windowtitle="${docClass}">
<doctitle> ${docClass} </doctitle>
</javadoc>
</target>
</project>