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