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