<project name="proposal" default="create" basedir=".">


<!--
        "Proposal Generator" component of the Jakarta Commons Subproject
        $Id: build.xml,v 1.2 2002/02/22 17:41:44 sanders Exp $
-->


  <target name="init"
   description="Initialize and evaluate conditionals">
    <filter  token="package"                  value="${package}"/>
  </target>

  <target name="check" depends="init" unless="package">
    <echo message="property 'package' not set.  Please run Ant as: 'ant -Dpackage=foo' to create a new package."/>
    <fail/>
  </target>

  <target name="create" depends="init,check" description="Create a new package" if="package">
    <echo message="-------- Creating package ${package} --------"/>
    <property name="package.home" value="${basedir}/../${package}"/>
    <mkdir dir="${package.home}"/>
    <copy  todir="${package.home}" filtering="on" includeEmptyDirs="yes">
      <fileset dir="${basedir}" includes="build.properties.sample,PROPOSAL.html,STATUS.html,RELEASE-NOTES.txt,src/**"/>
    </copy>
    <copy  file="sample.build.xml" tofile="${package.home}/build.xml" filtering="on"/>
    <copy  file="MANIFEST.MF" todir="${package.home}/src/conf"/>
    <mkdir dir="${package.home}/src/java/org/apache/commons/${package}"/>
    <mkdir dir="${package.home}/src/test/org/apache/commons/${package}"/>
  </target>

</project>
