1 <project name="sac" default="all" basedir=".">
5 <property name="name" value="sac"/>
6 <property name="src" value="src"/>
7 <property name="build" value="build"/>
8 <property name="build.classes" value="${build}/classes"/>
9 <property name="build.doc" value="${build}/api"/>
10 <property name="build.lib" value="${build}/lib"/>
11 <property name="packagenames" value="org.w3c.css.sac.*"/>
15 <!-- Prepare build directories -->
16 <target name="prepare">
18 <mkdir dir="${build}"/>
19 <mkdir dir="${build.classes}"/>
20 <mkdir dir="${build.lib}"/>
21 <mkdir dir="${build.doc}"/>
22 <copy todir="${src}/org">
27 <!-- Kill all the created directories -->
29 <delete dir="${build}"/>
30 <delete dir="${src}"/>
33 <!-- Build classes -->
34 <target name="classes" depends="prepare">
35 <javac srcdir="${src}" destdir="${build.classes}" debug="off" optimize="on"/>
36 <copy todir="${build.classes}">
37 <fileset dir="${src}">
38 <include name="**/*.properties"/>
43 <!-- Build jar archives -->
44 <target name="jar" depends="classes">
45 <jar jarfile="${build.lib}/${name}.jar" basedir="${build.classes}"/>
48 <!-- Build the full JavaDocs -->
49 <target name="javadoc" depends="prepare">
50 <javadoc sourcepath="${src}"
51 destdir="${build.doc}"
52 doctitle="${name} JavaDoc"
53 windowtitle="${name} JavaDoc"
57 packagenames="${packagenames}"
61 <!-- Build everything -->
62 <target name="all" depends="jar,javadoc"/>