<?xml version="1.0"?>
<project name="holidays" basedir="E:/" default="jar">
<property name="distributed.exts" value="**/*.au,**/*.asm,**/*.bat,**/*.btm,**/*.c,**/*.class,**/*.cpp,**/*.css,**/*.csv,**/*.dll,**/*.gif,**/*.h,**/*.hpp,**/*.htm,**/*.html,**/*.ico,**/*.ION,**/*.ion,**/*.jar,**/*.java,**/*.jnlp,**/*.jpg,**/*.look,**/*.png,**/*.properties,**/*.ser,**/*.sln,**/*.txt,**/*.use,**/*.vcproj,**/*.xml" />
<property name="nondistributed" value="**/jetpdb/**,**/Debug/**,**/Release/**" />
<target name="clean">
<echo message="::: holidays ::: deleting files to force regeneration" />
<delete>
<fileset dir="com/mindprod/holidays" includes="**/*.class" />
<fileset dir="com/mindprod/holidays" includes="**/*.jar" />
<fileset dir="com/mindprod/holidays" includes="holidays43.zip" />
</delete>
</target>
<target name="compile">
<echo message="::: holidays ::: compiling tree." />
<javac source="1.5" target="1.5" srcdir="com/mindprod/holidays" sourcepath="${basedir}" debug="on">
<compilerarg value="-Xlint:unchecked" />
<compilerarg value="-Xlint:fallthrough" />
<compilerarg value="-Xlint:deprecation" />
</javac>
</target>
<target name="javah" depends="compile">
</target>
<target name="gather" depends="compile">
</target>
<taskdef resource="genjar.properties" />
<target name="jar" depends="gather">
<echo message="::: holidays ::: genjar finding dependencies and creating jar." />
<genjar jarfile="com/mindprod/holidays/holidays.jar">
<class name="com.mindprod.holidays.Holidays" />
<class>
<fileset dir="${basedir}">
<include name="com/mindprod/holidays/*.class" />
</fileset>
</class>
<resource file="com/mindprod/holidays/Holiday.properties" package="com.mindprod.holidays" />
<manifest>
<attribute name="Main-Class" value="com.mindprod.holidays.Holidays" />
</manifest>
</genjar>
<genjar jarfile="com/mindprod/holidays/exportholidays.jar">
<class name="com.mindprod.holidays.ExportHolidays" />
<class>
<fileset dir="${basedir}">
<include name="com/mindprod/holidays/*.class" />
</fileset>
</class>
<resource file="com/mindprod/holidays/Holiday.properties" package="com.mindprod.holidays" />
<manifest>
<attribute name="Main-Class" value="com.mindprod.holidays.ExportHolidays" />
</manifest>
</genjar>
</target>
<target name="postjar" depends="jar">
</target>
<target name="prejet">
<echo message="::: holidays ::: avoid regenerating Jet executable if already done" />
<uptodate property="jet.uptodate" srcfile="com/mindprod/holidays/holidays.jar" targetfile="com/mindprod/holidays/holidays.exe" />
</target>
<target name="jet" depends="prejet" unless="jet.uptodate">
<echo message="::: holidays ::: jet compiling." />
<exec executable="jc.exe" dir="com/mindprod/holidays">
<arg value="-DECOR=" />
<arg value="holidays.jar" />
</exec>
<exec executable="jc.exe" dir="com/mindprod/holidays">
<arg value="-DECOR=" />
<arg value="exportholidays.jar" />
</exec>
</target>
<target name="prejavadoc">
<echo message="::: holidays ::: avoid regenerating Javadoc if already done" />
<uptodate property="javadoc.uptodate" targetfile="com/mindprod/holidays/javadoc/index.html">
<srcfiles dir="com/mindprod/holidays" includes="**/*.java" />
</uptodate>
</target>
<target name="javadoc" depends="prejavadoc" unless="javadoc.uptodate">
<echo message="::: holidays ::: generating Javadoc" />
<javadoc
author="true"
destdir="com/mindprod/holidays/javadoc"
packagenames="com.mindprod.holidays.*"
sourcepath="E:/"
use="true"
version="true" />
</target>
<target name="zip" depends="javadoc,jar">
<echo message="::: holidays ::: preparing zip distributable" />
<exec executable="prunefoot.exe" failifexecutionfails="false" dir="com/mindprod/holidays">
<arg value="holidays.html" />
<arg value="holidays.manual.html" />
</exec>
<zip destfile="com/mindprod/holidays/holidays43.zip" duplicate="preserve" filesonly="true" includes="${distributed.exts}" excludes="${nondistributed}">
<zipfileset dir="com/mindprod/holidays" prefix="com/mindprod/holidays" includes="${distributed.exts}" excludes="${nondistributed}" />
<zipfileset dir="com/mindprod/common11" prefix="com/mindprod/common11" includes="${distributed.exts}" excludes="${nondistributed}" />
<zipfileset dir="com/mindprod/ledatastream" prefix="com/mindprod/ledatastream" includes="${distributed.exts}" excludes="${nondistributed}" />
<zipfileset dir="com/mindprod/common13" prefix="com/mindprod/common13" includes="${distributed.exts}" excludes="${nondistributed}" />
<zipfileset dir="com/mindprod/common15" prefix="com/mindprod/common15" includes="${distributed.exts}" excludes="${nondistributed}" />
<zipfileset dir="com/mindprod/entities" prefix="com/mindprod/entities" includes="${distributed.exts}" excludes="${nondistributed}" />
</zip>
</target>
<target name="postzip" depends="zip,postjar">
</target>
</project>