7a9e41
7a9e41
7a9e41
<project name="sac" default="all" basedir=".">
7a9e41
7a9e41
  
7a9e41
7a9e41
  <property name="name" value="sac"/>
7a9e41
  <property name="src" value="src"/>
7a9e41
  <property name="build" value="build"/>
7a9e41
  <property name="build.classes" value="${build}/classes"/>
7a9e41
  <property name="build.doc" value="${build}/api"/>
7a9e41
  <property name="build.lib" value="${build}/lib"/>
7a9e41
  <property name="packagenames" value="org.w3c.css.sac.*"/>
7a9e41
7a9e41
  
7a9e41
7a9e41
  
7a9e41
  <target name="prepare">
7a9e41
    <mkdir dir="${src}"/>
7a9e41
    <mkdir dir="${build}"/>
7a9e41
    <mkdir dir="${build.classes}"/>
7a9e41
    <mkdir dir="${build.lib}"/>
7a9e41
    <mkdir dir="${build.doc}"/>
7a9e41
    <copy todir="${src}/org">
7a9e41
      <fileset dir="org"/>
7a9e41
    </copy>
7a9e41
  </target>
7a9e41
7a9e41
  
7a9e41
  <target name="clean">
7a9e41
    <delete dir="${build}"/>
7a9e41
    <delete dir="${src}"/>
7a9e41
  </target>
7a9e41
7a9e41
  
7a9e41
  <target name="classes" depends="prepare">
7a9e41
    <javac srcdir="${src}" destdir="${build.classes}" debug="off" optimize="on"/>
7a9e41
    <copy todir="${build.classes}">
7a9e41
      <fileset dir="${src}">
7a9e41
        <include name="**/*.properties"/>
7a9e41
      </fileset>
7a9e41
    </copy>
7a9e41
  </target>
7a9e41
7a9e41
  
7a9e41
  <target name="jar" depends="classes">
7a9e41
    <jar jarfile="${build.lib}/${name}.jar" basedir="${build.classes}"/>
7a9e41
  </target>
7a9e41
7a9e41
  
7a9e41
  <target name="javadoc" depends="prepare">
7a9e41
    
7a9e41
            destdir="${build.doc}"
7a9e41
            doctitle="${name} JavaDoc"
7a9e41
            windowtitle="${name} JavaDoc"
7a9e41
            package="true"
7a9e41
            author="true"
7a9e41
            version="true"
7a9e41
            packagenames="${packagenames}"
7a9e41
    />
7a9e41
  </target>
7a9e41
7a9e41
  
7a9e41
  <target name="all" depends="jar,javadoc"/>
7a9e41
7a9e41
</project>