<?xml version="1.0" encoding="ISO-8859-1"?>
<project name="ant-import-sample" default="package" basedir=".">
    <property name="src.dir" value="src"/>
    <property name="build.dir" value="target"/>
    <property name="classes.dir" value="${build.dir}/classes"/>

    <target name="cleanAll">
        <delete dir="${build.dir}"/>
    </target>

    <target name="prepare">
        <tstamp>
            <format property="now" pattern="yyyy-MM-dd hh:mm:ss"/>
        </tstamp>
    </target>

    <target name="build" depends="prepare">
        <mkdir dir="${classes.dir}"/>
        <javac srcdir="${src.dir}" destdir="${classes.dir}" debug="true"/>
        <propertyfile file="${build.dir}/build-info.properties">
            <entry key="last.compile" value="${now}"/>
        </propertyfile>
    </target>

    <target name="package" depends="build">
        <jar destfile="${build.dir}/lib/hello-app.jar" basedir="${classes.dir}"/>
    </target>
</project>
