make/idea/template/build.xml
author mli
Fri, 16 Mar 2018 18:15:31 +0800
changeset 49255 acdb8531cc8b
parent 48667 f2344724a475
child 51266 f8696e0ab9b7
permissions -rw-r--r--
8199215: Re-examine getFreePort method in test infrastructure library Reviewed-by: alanb
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
37861
53d85619d7fe 8074716: IntelliJ IDEA project support
chegar
parents:
diff changeset
     1
<!-- importing.xml -->
53d85619d7fe 8074716: IntelliJ IDEA project support
chegar
parents:
diff changeset
     2
<project name="jdk" basedir="..">
53d85619d7fe 8074716: IntelliJ IDEA project support
chegar
parents:
diff changeset
     3
53d85619d7fe 8074716: IntelliJ IDEA project support
chegar
parents:
diff changeset
     4
    <script language="javascript" classpath=".idea/classes">
53d85619d7fe 8074716: IntelliJ IDEA project support
chegar
parents:
diff changeset
     5
        var JdkLogger = Java.type("idea.JdkIdeaAntLogger");
53d85619d7fe 8074716: IntelliJ IDEA project support
chegar
parents:
diff changeset
     6
        new JdkLogger(project)
53d85619d7fe 8074716: IntelliJ IDEA project support
chegar
parents:
diff changeset
     7
    </script>
53d85619d7fe 8074716: IntelliJ IDEA project support
chegar
parents:
diff changeset
     8
53d85619d7fe 8074716: IntelliJ IDEA project support
chegar
parents:
diff changeset
     9
    <macrodef name="call-make">
48667
f2344724a475 8196081: Add support for customized intellij project templates
mcimadamore
parents: 47217
diff changeset
    10
        <attribute name="dir"/>
f2344724a475 8196081: Add support for customized intellij project templates
mcimadamore
parents: 47217
diff changeset
    11
        <attribute name="args"/>
f2344724a475 8196081: Add support for customized intellij project templates
mcimadamore
parents: 47217
diff changeset
    12
        <sequential>
f2344724a475 8196081: Add support for customized intellij project templates
mcimadamore
parents: 47217
diff changeset
    13
            <exec executable="make" dir="@{dir}" failonerror="true">
f2344724a475 8196081: Add support for customized intellij project templates
mcimadamore
parents: 47217
diff changeset
    14
                <arg line="@{args}"/>
f2344724a475 8196081: Add support for customized intellij project templates
mcimadamore
parents: 47217
diff changeset
    15
                <env key="CLASSPATH" value = ""/>
f2344724a475 8196081: Add support for customized intellij project templates
mcimadamore
parents: 47217
diff changeset
    16
            </exec>
f2344724a475 8196081: Add support for customized intellij project templates
mcimadamore
parents: 47217
diff changeset
    17
        </sequential>
f2344724a475 8196081: Add support for customized intellij project templates
mcimadamore
parents: 47217
diff changeset
    18
    </macrodef>
37861
53d85619d7fe 8074716: IntelliJ IDEA project support
chegar
parents:
diff changeset
    19
47217
72e3ae9a25eb 8187444: Forest Consolidation: Make build work
erikj
parents: 37976
diff changeset
    20
    <target name="cond-clean" unless="${intellij.ismake}">
72e3ae9a25eb 8187444: Forest Consolidation: Make build work
erikj
parents: 37976
diff changeset
    21
        <antcall target="clean"/>
72e3ae9a25eb 8187444: Forest Consolidation: Make build work
erikj
parents: 37976
diff changeset
    22
    </target>
72e3ae9a25eb 8187444: Forest Consolidation: Make build work
erikj
parents: 37976
diff changeset
    23
72e3ae9a25eb 8187444: Forest Consolidation: Make build work
erikj
parents: 37976
diff changeset
    24
    <target name="post-make" depends="cond-clean, build-module"/>
37861
53d85619d7fe 8074716: IntelliJ IDEA project support
chegar
parents:
diff changeset
    25
53d85619d7fe 8074716: IntelliJ IDEA project support
chegar
parents:
diff changeset
    26
    <!--
53d85619d7fe 8074716: IntelliJ IDEA project support
chegar
parents:
diff changeset
    27
        **** Global JDK Build Targets
53d85619d7fe 8074716: IntelliJ IDEA project support
chegar
parents:
diff changeset
    28
    -->
53d85619d7fe 8074716: IntelliJ IDEA project support
chegar
parents:
diff changeset
    29
48667
f2344724a475 8196081: Add support for customized intellij project templates
mcimadamore
parents: 47217
diff changeset
    30
    <target name="clean">
37861
53d85619d7fe 8074716: IntelliJ IDEA project support
chegar
parents:
diff changeset
    31
        <echo message="base = ${basedir}"/>
48667
f2344724a475 8196081: Add support for customized intellij project templates
mcimadamore
parents: 47217
diff changeset
    32
        <call-make dir = "${build.target.dir}" args = "reconfigure"/>
f2344724a475 8196081: Add support for customized intellij project templates
mcimadamore
parents: 47217
diff changeset
    33
        <call-make dir = "${build.target.dir}" args = "clean"/>
37861
53d85619d7fe 8074716: IntelliJ IDEA project support
chegar
parents:
diff changeset
    34
    </target>
53d85619d7fe 8074716: IntelliJ IDEA project support
chegar
parents:
diff changeset
    35
53d85619d7fe 8074716: IntelliJ IDEA project support
chegar
parents:
diff changeset
    36
    <target name="images">
53d85619d7fe 8074716: IntelliJ IDEA project support
chegar
parents:
diff changeset
    37
        <call-make dir = "${build.target.dir}" args = "images"/>
53d85619d7fe 8074716: IntelliJ IDEA project support
chegar
parents:
diff changeset
    38
    </target>
53d85619d7fe 8074716: IntelliJ IDEA project support
chegar
parents:
diff changeset
    39
53d85619d7fe 8074716: IntelliJ IDEA project support
chegar
parents:
diff changeset
    40
    <target name="build-module">
53d85619d7fe 8074716: IntelliJ IDEA project support
chegar
parents:
diff changeset
    41
        <call-make dir = "${build.target.dir}" args = "${module.name}"/>
53d85619d7fe 8074716: IntelliJ IDEA project support
chegar
parents:
diff changeset
    42
    </target>
53d85619d7fe 8074716: IntelliJ IDEA project support
chegar
parents:
diff changeset
    43
</project>