langtools/make/intellij/build.xml
author hb
Thu, 05 May 2016 01:52:03 -0700
changeset 38346 5ed176fa7d97
parent 36526 3b41f1c69604
child 40510 722c82994682
permissions -rw-r--r--
8154166: java/lang/management/MemoryMXBean/ResetPeakMemoryUsage.java fails with RuntimeException Summary: Fix the RuntimeException issue Reviewed-by: jbachorik
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
25282
d49c47cad9f0 8046451: Add basic IntelliJ support for langtools
mcimadamore
parents:
diff changeset
     1
<!-- importing.xml -->
d49c47cad9f0 8046451: Add basic IntelliJ support for langtools
mcimadamore
parents:
diff changeset
     2
<project name="langtools" basedir="..">
d49c47cad9f0 8046451: Add basic IntelliJ support for langtools
mcimadamore
parents:
diff changeset
     3
25697
b71804e27eb1 8049234: Add support for running/debugging bootstrap tools in IntelliJ
mcimadamore
parents: 25282
diff changeset
     4
    <script language="javascript" classpath=".idea/classes">
b71804e27eb1 8049234: Add support for running/debugging bootstrap tools in IntelliJ
mcimadamore
parents: 25282
diff changeset
     5
        var LangtoolsLogger = Java.type("idea.LangtoolsIdeaAntLogger");
27548
d3f506b108e5 8064367: Fix IntelliJ langtools support to use new dev build
mcimadamore
parents: 25697
diff changeset
     6
        new LangtoolsLogger(project)
25697
b71804e27eb1 8049234: Add support for running/debugging bootstrap tools in IntelliJ
mcimadamore
parents: 25282
diff changeset
     7
    </script>
b71804e27eb1 8049234: Add support for running/debugging bootstrap tools in IntelliJ
mcimadamore
parents: 25282
diff changeset
     8
b71804e27eb1 8049234: Add support for running/debugging bootstrap tools in IntelliJ
mcimadamore
parents: 25282
diff changeset
     9
    <import file="../make/build.xml"/>
25282
d49c47cad9f0 8046451: Add basic IntelliJ support for langtools
mcimadamore
parents:
diff changeset
    10
d49c47cad9f0 8046451: Add basic IntelliJ support for langtools
mcimadamore
parents:
diff changeset
    11
    <macrodef name="exec-target">
d49c47cad9f0 8046451: Add basic IntelliJ support for langtools
mcimadamore
parents:
diff changeset
    12
        <attribute name="antfile" default="${ant.file}" />
d49c47cad9f0 8046451: Add basic IntelliJ support for langtools
mcimadamore
parents:
diff changeset
    13
        <attribute name="target" />
d49c47cad9f0 8046451: Add basic IntelliJ support for langtools
mcimadamore
parents:
diff changeset
    14
        <sequential>
d49c47cad9f0 8046451: Add basic IntelliJ support for langtools
mcimadamore
parents:
diff changeset
    15
            <java classname="org.apache.tools.ant.Main" fork="true" spawn="true">
d49c47cad9f0 8046451: Add basic IntelliJ support for langtools
mcimadamore
parents:
diff changeset
    16
                <arg value="-f"/>
27996
4ae3503fd196 8067006: Tweak IntelliJ langtools project to show jtreg report directory
mcimadamore
parents: 27548
diff changeset
    17
                <arg value="@{antfile}"/>
36526
3b41f1c69604 8142968: Module System implementation
alanb
parents: 29294
diff changeset
    18
                <arg value="-Dlangtools.jdk.home=${langtools.jdk.home}"/>
25282
d49c47cad9f0 8046451: Add basic IntelliJ support for langtools
mcimadamore
parents:
diff changeset
    19
                <arg value="-Djtreg.home=${jtreg.home}"/>
d49c47cad9f0 8046451: Add basic IntelliJ support for langtools
mcimadamore
parents:
diff changeset
    20
                <arg value="-Djtreg.tests=${jtreg.tests}"/>
d49c47cad9f0 8046451: Add basic IntelliJ support for langtools
mcimadamore
parents:
diff changeset
    21
                <arg value="-Djtreg.jpda.jvmargs=${jtreg.jpda.jvmargs}"/>
d49c47cad9f0 8046451: Add basic IntelliJ support for langtools
mcimadamore
parents:
diff changeset
    22
                <arg value="@{target}"/>
27996
4ae3503fd196 8067006: Tweak IntelliJ langtools project to show jtreg report directory
mcimadamore
parents: 27548
diff changeset
    23
                <classpath>
25282
d49c47cad9f0 8046451: Add basic IntelliJ support for langtools
mcimadamore
parents:
diff changeset
    24
                    <pathelement path="${java.class.path}"/>
d49c47cad9f0 8046451: Add basic IntelliJ support for langtools
mcimadamore
parents:
diff changeset
    25
                </classpath>
d49c47cad9f0 8046451: Add basic IntelliJ support for langtools
mcimadamore
parents:
diff changeset
    26
            </java>
d49c47cad9f0 8046451: Add basic IntelliJ support for langtools
mcimadamore
parents:
diff changeset
    27
        </sequential>
d49c47cad9f0 8046451: Add basic IntelliJ support for langtools
mcimadamore
parents:
diff changeset
    28
    </macrodef>
25697
b71804e27eb1 8049234: Add support for running/debugging bootstrap tools in IntelliJ
mcimadamore
parents: 25282
diff changeset
    29
28334
1633de6070ae 8058542: Devise scheme for better diagnostic creation
mcimadamore
parents: 27996
diff changeset
    30
    <target name="post-make" depends="clean, build-all-tools"/>
25697
b71804e27eb1 8049234: Add support for running/debugging bootstrap tools in IntelliJ
mcimadamore
parents: 25282
diff changeset
    31
36526
3b41f1c69604 8142968: Module System implementation
alanb
parents: 29294
diff changeset
    32
    <target name="jtreg-debug" depends="build-all-tools, -def-jtreg">
25697
b71804e27eb1 8049234: Add support for running/debugging bootstrap tools in IntelliJ
mcimadamore
parents: 25282
diff changeset
    33
        <exec-target target="jtreg-debug-internal"/>
b71804e27eb1 8049234: Add support for running/debugging bootstrap tools in IntelliJ
mcimadamore
parents: 25282
diff changeset
    34
    </target>
b71804e27eb1 8049234: Add support for running/debugging bootstrap tools in IntelliJ
mcimadamore
parents: 25282
diff changeset
    35
b71804e27eb1 8049234: Add support for running/debugging bootstrap tools in IntelliJ
mcimadamore
parents: 25282
diff changeset
    36
    <target name="jtreg-debug-internal" depends="-def-jtreg">
36526
3b41f1c69604 8142968: Module System implementation
alanb
parents: 29294
diff changeset
    37
        <jtreg-tool name="all" tests="${jtreg.tests}" options="-conc:1" jpda.jvmargs="${jtreg.jpda.jvmargs}"/>
25697
b71804e27eb1 8049234: Add support for running/debugging bootstrap tools in IntelliJ
mcimadamore
parents: 25282
diff changeset
    38
    </target>
25282
d49c47cad9f0 8046451: Add basic IntelliJ support for langtools
mcimadamore
parents:
diff changeset
    39
</project>