build.xml:
<?xml version="1.0"?>
<!--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-->
<!--  Mac Java!                                      -->
<!--  Show Time Tutorial                             -->
<!--  Ant Build File (build.xml)                     -->
<!--  Command line (unix prompt) usage:              -->
<!--     $ ant build                                 -->
<!--     $ ant run                                   -->
<!--  The first command creates the executable jar   -->
<!--  and second command launches the program.       -->
<!--  Tutorial: http://centerkey.com/mac/java        -->
<!--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-->
<project>
   <target name="build">
      <javac srcdir="." />
      <jar destfile="ShowTime.jar">
         <fileset dir="." includes="*.class" />
         <manifest>
            <attribute name="Main-Class" value="ShowTime" />
         </manifest>
      </jar>
   </target>
   <target name="run">
      <java jar="ShowTime.jar" fork="true" />
   </target>
</project>