<!-- Common properties/tasks that are shared by all projects

However, for possible overrides, these are all prefixed by
"_shared.common."

 -->
    
    <!-- Compiling tasks
        * Requires 'classpath.base' path reference to be defined in build.
        -->
    <target name="_shared.common.javac-dev" depends="init" >
        <mkdir dir="${dirs.classes.dev}" />
        <property name="build.compiler" value="modern" />
        <javac srcdir="${dirs.sources.dev}"
                destdir="${dirs.classes.dev}"
                deprecation="on"
                debug="on"
                >
            <classpath>
                <pathelement location="${dirs.classes.dev}" />
                <path refid="classpath.base" />
            </classpath>
            <include name="**/*.java" />
            
            <!-- JDK conditional compilation must be done
                on a per-project basis -->
        </javac>
    </target>
    
    <target name="_shared.common.javac-eut" >
        <mkdir dir="${dirs.classes.eut}" />
        <property name="build.compiler" value="modern" />
        <javac srcdir="${dirs.sources.eut}"
                destdir="${dirs.classes.eut}"
                deprecation="on"
                debug="on"
                >
            <classpath>
                <pathelement location="${dirs.classes.dev}" />
                <path refid="classpath.tests" />
            </classpath>
            <include name="**/*.java" />
            
            <!-- exclude JDK 1.2 specific tests unless we're running
                JDK 1.2 compatible JVM -->
            <patternset refid="codeset.jdk12"/>
            
            <!-- exclude JDK 1.3 specific tests unless we're running
                JDK 1.3 compatible JVM -->
            <patternset refid="codeset.jdk13"/>
            
            <!-- exclude JDK 1.4 specific tests unless we're running
                JDK 1.4 compatible JVM -->
            <patternset refid="codeset.jdk14"/>
        </javac>
    </target>
    
    <target name="_shared.common.javac-ut" >
        <mkdir dir="${dirs.classes.ut}" />
        <property name="build.compiler" value="modern" />
        <javac srcdir="${dirs.sources.ut}"
                destdir="${dirs.classes.ut}"
                deprecation="on"
                debug="on"
                >
            <classpath>
                <pathelement location="${dirs.classes.dev}" />
                <pathelement location="${dirs.classes.eut}" />
                <path refid="classpath.tests" />
            </classpath>
            <include name="**/*.java" />
            
            <!-- exclude JDK 1.2 specific tests unless we're running
                JDK 1.2 compatible JVM -->
            <patternset refid="codeset.jdk12"/>
            
            <!-- exclude JDK 1.3 specific tests unless we're running
                JDK 1.3 compatible JVM -->
            <patternset refid="codeset.jdk13"/>
            
            <!-- exclude JDK 1.4 specific tests unless we're running
                JDK 1.4 compatible JVM -->
            <patternset refid="codeset.jdk14"/>
        </javac>
    </target>
    
    <target name="_shared.common.javac-iut" >
        <mkdir dir="${dirs.classes.iut}" />
        <property name="build.compiler" value="modern" />
        <javac srcdir="${dirs.sources.iut}"
                destdir="${dirs.classes.iut}"
                deprecation="on"
                debug="on"
                >
            <classpath>
                <pathelement location="${dirs.classes.dev}" />
                <pathelement location="${dirs.classes.ut}" />
                <pathelement location="${dirs.classes.eut}" />
                <path refid="classpath.tests" />
            </classpath>
            <include name="**/*.java" />
            
            <!-- exclude JDK 1.2 specific tests unless we're running
                JDK 1.2 compatible JVM -->
            <patternset refid="codeset.jdk12"/>
            
            <!-- exclude JDK 1.3 specific tests unless we're running
                JDK 1.3 compatible JVM -->
            <patternset refid="codeset.jdk13"/>
            
            <!-- exclude JDK 1.4 specific tests unless we're running
                JDK 1.4 compatible JVM -->
            <patternset refid="codeset.jdk14"/>
        </javac>
    </target>
    
    <target name="_shared.common.javac-ait" >
        <mkdir dir="${dirs.classes.ait}" />
        <property name="build.compiler" value="modern" />
        <javac srcdir="${dirs.sources.ait}"
                destdir="${dirs.classes.ait}"
                deprecation="on"
                debug="on"
                >
            <classpath>
                <pathelement location="${dirs.classes.dev}" />
                <pathelement location="${dirs.classes.iut}" />
                <pathelement location="${dirs.classes.ut}" />
                <pathelement location="${dirs.classes.eut}" />
                <path refid="classpath.tests" />
            </classpath>
            <include name="**/*.java" />
            
            <!-- exclude JDK 1.2 specific tests unless we're running
                JDK 1.2 compatible JVM -->
            <patternset refid="codeset.jdk12"/>
            
            <!-- exclude JDK 1.3 specific tests unless we're running
                JDK 1.3 compatible JVM -->
            <patternset refid="codeset.jdk13"/>
            
            <!-- exclude JDK 1.4 specific tests unless we're running
                JDK 1.4 compatible JVM -->
            <patternset refid="codeset.jdk14"/>
        </javac>
    </target>
    

