<project name="build.compile">
    <import file="properties.xml" />
    <import file="preset-defs.xml" />
    <import file="../../build.xml" />

<!-- Compiles the Flying Saucer browser along with the main codebase -->
	<target name="compile.browser" depends="compile,resources.browser">
		<javac-full srcdir="${src.browser.java.dir}"/>
	</target>

    <!-- Compile log4j support -->
    <target name="compile.log4j" depends="compile">
      <javac-full srcdir="${src.log4j.dir}" classpath="${lib.log4j}">
      </javac-full>
    </target>

    <!-- Compiles the Flying Saucer SVG sample along with the main codebase -->
    <target name="compile.svg" depends="compile,resources.svg">
        <javac-full srcdir="${src.svg.java.dir}"/>
    </target>

    <!-- Compiles the Flying Saucer SVG sample along with the main codebase -->
    <target name="compile.docbook" depends="compile,resources.docbook">
        <javac-full srcdir="${src.docbook.java.dir}"/>
    </target>

    <!-- Compiles the eeze tool -->
	<target name="compile.eeze" depends="init">
		<javac-full srcdir="${src.java.dir}/eeze"/>
		<copy todir="build/classes/eeze" file="${src.java.dir}/eeze/eeze_help.html" />
	</target>

	<target name="compile.samples" depends="compile,resources.browser">
		<javac-full srcdir="${src.samples.java.dir}"/>
	</target>

    <!-- Cleans all build files, then recompiles. -->
	<target name="compile.demo" description="Rebuilds demo apps--browser, about" depends="clean,compile,compile.browser,compile.about">
		<antcall target="clean" />
		<antcall target="compile" />
		<antcall target="compile.browser" />
		<antcall target="compile.about" />
	</target>
    
    <!-- Compiles the Help/About Box demo along with the main codebase -->
	<target name="compile.about" depends="compile">
		<javac-full srcdir="${src.about.java.dir}"/>
	</target>

    <!-- Compiles the JUnit tests along with the main codebase -->
	<target name="compile.junit" depends="compile">
		<javac-full srcdir="${src.junit-test.java.dir}"/>
	</target>

    <!-- Compiles main codebase, browser and about box -->
	<target name="compile.all" depends="compile, compile.browser, compile.about, compile.samples"></target>

</project>
