<?xml version="1.0"?>
<project name="holidays" basedir="E:/" default="jar">
<property name="project" value="holidays" />
<property name="package.name" value="com.mindprod.holidays" />
<property name="package.dir" value="com/mindprod/holidays" />
<property name="main.class" value="com.mindprod.holidays.Holidays" />
<property name="jar.name" value="holidays.jar" />
<property name="jar.file" value="com/mindprod/holidays/holidays.jar" />
<property name="exe.file" value="com/mindprod/holidays/holidays.exe" />
<property name="icon16.dir" value="E:/mindprod/image/icon16" />
<property name="icon32.dir" value="E:/mindprod/image/icon32" />
<property name="ico.dir" value="E:/mindprod/image/ico" />
<property name="icon48.dir" value="E:/mindprod/image/icon48" />
<property name="icon64.dir" value="E:/mindprod/image/icon64" />
<property name="icon128.dir" value="E:/mindprod/image/icon128" />
<property name="pad.dir" value="E:/mindprod/pad" />
<property name="precis.dir" value="E:/mindprod/precis" />
<property name="screenshot.dir" value="E:/mindprod/image/screenshot" />
<property name="splash.dir" value="E:/mindprod/image/splash" />
<property name="distributable.exts" value="**/*.au,**/*.bat,**/*.btm,**/*.c*,**/*.class,**/*.dll,**/*.gif,**/*.h,**/*.hpp,**/*.htm,**/*.html,**/*.jar,**/*.ico,**/*.ION,**/*.ion,**/*.java,**/*.jnlp,**/*.jpg,**/*.look,**/*.png,**/*.properties,**/*.ser,**/*.txt,**/*.use,**/*.xml" />
<target name="clean">
<echo message="deleting all class, jar and zip files in ${package.dir} tree" />
<delete>
<fileset dir="${package.dir}" includes="**/*.class" />
<fileset dir="${package.dir}" includes="**/*.jar" />
<fileset dir="${package.dir}" includes="${zip.name}" />
</delete>
</target>
<target name="compile">
<echo message="compiling ${package.dir} tree." />
<javac source="1.5" target="1.5" srcdir="${package.dir}" sourcepath="${basedir}" debug="on">
<compilerarg value="-Xlint:unchecked" />
<compilerarg value="-Xlint:fallthrough" />
</javac>
</target>
<target name="javah" depends="compile">
</target>
<taskdef resource="genjar.properties" />
<target name="jar" depends="compile">
<genjar jarfile="${jar.file}">
<class name="${main.class}" />
<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="${main.class}" />
</manifest>
</genjar>
</target>
<target name="prejet">
<uptodate property="jet.uptodate" srcfile="${jar.file}" targetfile="${exe.file}" />
</target>
<target name="jet" depends="prejet" unless="jet.uptodate">
<exec executable="jc.exe" dir="${package.dir}">
<arg value="-DECOR=" />
<arg value="${jar.name}" />
</exec>
</target>
<target name="zip" depends="jar">
<javadoc
author="true"
destdir="${package.dir}/javadoc"
packagenames="${package.name}.*"
sourcepath="E:/"
use="true"
version="true"
/>
<zip destfile="${zip.file}" duplicate="preserve" filesonly="true">
<zipfileset dir="${package.dir}" prefix="${package.dir}" includes="${distributable.exts}" />
<zipfileset dir="com/mindprod/common11" prefix="com/mindprod/common11" includes="${distributable.exts}" />
<zipfileset dir="com/mindprod/ledatastream" prefix="com/mindprod/ledatastream" includes="${distributable.exts}" />
<zipfileset dir="com/mindprod/common13" prefix="com/mindprod/common13" includes="${distributable.exts}" />
</zip>
</target>
</project>