make/idea/template/build.xml
author igerasim
Mon, 12 Feb 2018 21:06:06 -0800
changeset 48853 84b4ffbba8b0
parent 48667 f2344724a475
child 51266 f8696e0ab9b7
permissions -rw-r--r--
8197462: Inconsistent exception messages for invalid capturing group names 8179608: Error in comment in Pattern.java Reviewed-by: sherman

<!-- importing.xml -->
<project name="jdk" basedir="..">

    <script language="javascript" classpath=".idea/classes">
        var JdkLogger = Java.type("idea.JdkIdeaAntLogger");
        new JdkLogger(project)
    </script>

    <macrodef name="call-make">
        <attribute name="dir"/>
        <attribute name="args"/>
        <sequential>
            <exec executable="make" dir="@{dir}" failonerror="true">
                <arg line="@{args}"/>
                <env key="CLASSPATH" value = ""/>
            </exec>
        </sequential>
    </macrodef>

    <target name="cond-clean" unless="${intellij.ismake}">
        <antcall target="clean"/>
    </target>

    <target name="post-make" depends="cond-clean, build-module"/>

    <!--
        **** Global JDK Build Targets
    -->

    <target name="clean">
        <echo message="base = ${basedir}"/>
        <call-make dir = "${build.target.dir}" args = "reconfigure"/>
        <call-make dir = "${build.target.dir}" args = "clean"/>
    </target>

    <target name="images">
        <call-make dir = "${build.target.dir}" args = "images"/>
    </target>

    <target name="build-module">
        <call-make dir = "${build.target.dir}" args = "${module.name}"/>
    </target>
</project>