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