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