4ef589
4ef589
4ef589
<project name="antlr" default="all" basedir=".">
4ef589
4ef589
  
4ef589
4ef589
  <property name="name" value="antlr"/>
4ef589
  <property name="src" value="src"/>
4ef589
  <property name="build" value="work"/>
4ef589
  <property name="build.classes" value="${build}/classes"/>
4ef589
  <property name="build.doc" value="${build}/api"/>
4ef589
  <property name="build.lib" value="${build}/lib"/>
4ef589
  <property name="packagenames" value="antlr.*"/>
4ef589
  <property name="j2se.apidoc" value="http://java.sun.com/j2se/1.4/docs/api/"/>
4ef589
4ef589
  
4ef589
4ef589
  
4ef589
  <target name="prepare">
4ef589
    <mkdir dir="${src}"/>
4ef589
    <mkdir dir="${build}"/>
4ef589
    <mkdir dir="${build.classes}"/>
4ef589
    <mkdir dir="${build.lib}"/>
4ef589
    <mkdir dir="${build.doc}"/>
4ef589
    <copy todir="${src}/antlr">
4ef589
      <fileset dir="antlr"/>
4ef589
    </copy>
4ef589
  </target>
4ef589
4ef589
  
4ef589
  <target name="clean">
4ef589
    <delete dir="${build}"/>
4ef589
    <delete dir="${src}"/>
4ef589
  </target>
4ef589
4ef589
  
4ef589
  <target name="classes" depends="prepare">
4ef589
    
4ef589
      debug="off" optimize="on" deprecation="on"/>
4ef589
  </target>
4ef589
4ef589
  
4ef589
  <target name="jar" depends="classes">
4ef589
    
4ef589
      index="true">
4ef589
      <manifest>
4ef589
        <attribute name="Main-Class" value="antlr.Tool"/>
4ef589
      </manifest>
4ef589
    </jar>
4ef589
  </target>
4ef589
4ef589
  
4ef589
  <target name="javadoc" depends="prepare">
4ef589
    
4ef589
      destdir="${build.doc}"
4ef589
      doctitle="${name} Javadoc"
4ef589
      windowtitle="${name} Javadoc"
4ef589
      package="true"
4ef589
      author="true"
4ef589
      version="true"
4ef589
      packagenames="${packagenames}"
4ef589
      splitindex="true"
4ef589
      use="true">
4ef589
      <link href="${j2se.apidoc}"/>
4ef589
    </javadoc>
4ef589
  </target>
4ef589
4ef589
  
4ef589
  <target name="all" depends="jar,javadoc"/>
4ef589
4ef589
</project>