make/idea/build.xml
author mbaesken
Wed, 10 Apr 2019 08:51:38 +0200
changeset 54485 ddc19ea5059c
parent 51565 7e5f08c619e3
permissions -rw-r--r--
8219241: Provide basic virtualization related info in the hs_error file on linux/windows x86_64 Reviewed-by: dholmes, mdoerr
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
37861
53d85619d7fe 8074716: IntelliJ IDEA project support
chegar
parents:
diff changeset
     1
<!-- importing.xml -->
51565
7e5f08c619e3 8209064: Make intellij support more robust after changes for 2018.2
mcimadamore
parents: 51266
diff changeset
     2
<project name="jdk">
37861
53d85619d7fe 8074716: IntelliJ IDEA project support
chegar
parents:
diff changeset
     3
51565
7e5f08c619e3 8209064: Make intellij support more robust after changes for 2018.2
mcimadamore
parents: 51266
diff changeset
     4
    <script language="javascript" classpath="${idea.dir}/classes">
37861
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>