view combo-tests/build.xml @ 7280:a4f32e60635c

properly disable doclint now that it is integrated into langtools
author mduigou
date Tue, 05 Feb 2013 09:31:37 -0800
parents 5e95936891d2
children 61c8d9f1c754
line wrap: on
line source
<?xml version="1.0" encoding="UTF-8"?>
<project name="jdk" default="test">

    <property name="build.dir" value="../../build/combo-tests" />
    <property name="gen.dir" value="${build.dir}/gen" />
    <property name="test.classes.dir" value="${build.dir}/test-classes"/>
    <property name="test.reports.dir" value="${build.dir}/test-reports"/>
    <property name="test.src.dir" value="tests"/>
    <property name="lib.dir" location="lib" />
    <property name="test.pattern" value="*Test" />
    <property name="lambda.metafactory" value="" />
    <property name="combo.debug" value="" />

    <property name="lib.testng.jar" value="${lib.dir}/testng-6.7.jar"/>
    <property name="lib.tools.jar" value="${java.home}/../lib/tools.jar"/>

    <path id="test.class.path">
        <pathelement path="${sun.boot.class.path}" />
        <pathelement location="${test.classes.dir}" />
        <pathelement location="${lib.testng.jar}"/>
        <pathelement location="${lib.tools.jar}"/>
    </path>

    <taskdef name="testng" classpathref="test.class.path" classname="org.testng.TestNGAntTask" />

    <target name="prepare">
        <mkdir dir="${build.dir}"/>
        <mkdir dir="${lib.dir}"/>
        <mkdir dir="${test.classes.dir}"/>
        <mkdir dir="${test.reports.dir}"/>
    </target>

    <target name="test-compile" depends="prepare">
        <javac destdir="${test.classes.dir}" debug="on" srcdir="${test.src.dir}" fork="true"
               classpathref="test.class.path">
            <compilerarg value="-XDlambdaToMethod"/>
        </javac>
    </target>

    <target name="test" depends="test-compile" >
        <delete dir="${gen.dir}" />
        <testng outputdir="${test.reports.dir}" usedefaultlisteners="false"
                listeners="org.testng.reporters.FailedReporter,org.testng.reporters.XMLReporter">
            <classpath refid="test.class.path" />
            <classfileset dir="${test.classes.dir}" includes="**/${test.pattern}.class"/>
            <jvmarg value="-Xms1G" />
            <jvmarg value="-Xmx4G" />
            <jvmarg value="-XX:+UseNUMA" />
            <jvmarg value="-XX:+UseG1GC" />
            <jvmarg value="-ea" />
            <jvmarg value="-esa" />
            <jvmarg value="-Xverify:all" />
            <sysproperty key="lambda.metafactory" value="${lambda.metafactory}" />
            <sysproperty key="combo.debug" value="${combo.debug}" />
        </testng>
    </target>

    <target name="clean">
        <delete dir="${build.dir}" />
        <delete dir="${gen.dir}" />
    </target>
</project>