author | serb |
Sat, 01 Nov 2014 14:40:09 +0300 | |
changeset 27511 | 4b0eecf677c0 |
parent 25697 | b71804e27eb1 |
child 27548 | d3f506b108e5 |
permissions | -rw-r--r-- |
25282 | 1 |
<!-- importing.xml --> |
2 |
<project name="langtools" basedir=".."> |
|
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 ideaListener = project.getBuildListeners().firstElement(); |
b71804e27eb1
8049234: Add support for running/debugging bootstrap tools in IntelliJ
mcimadamore
parents:
25282
diff
changeset
|
6 |
var LangtoolsLogger = Java.type("idea.LangtoolsIdeaAntLogger"); |
b71804e27eb1
8049234: Add support for running/debugging bootstrap tools in IntelliJ
mcimadamore
parents:
25282
diff
changeset
|
7 |
project.removeBuildListener(ideaListener) |
b71804e27eb1
8049234: Add support for running/debugging bootstrap tools in IntelliJ
mcimadamore
parents:
25282
diff
changeset
|
8 |
project.addBuildListener(new LangtoolsLogger(ideaListener)) |
b71804e27eb1
8049234: Add support for running/debugging bootstrap tools in IntelliJ
mcimadamore
parents:
25282
diff
changeset
|
9 |
</script> |
b71804e27eb1
8049234: Add support for running/debugging bootstrap tools in IntelliJ
mcimadamore
parents:
25282
diff
changeset
|
10 |
|
b71804e27eb1
8049234: Add support for running/debugging bootstrap tools in IntelliJ
mcimadamore
parents:
25282
diff
changeset
|
11 |
<import file="../make/build.xml"/> |
25282 | 12 |
|
13 |
<macrodef name="exec-target"> |
|
14 |
<attribute name="antfile" default="${ant.file}" /> |
|
15 |
<attribute name="target" /> |
|
16 |
<sequential> |
|
17 |
<java classname="org.apache.tools.ant.Main" fork="true" spawn="true"> |
|
18 |
<arg value="-f"/> |
|
19 |
<arg value="@{antfile}"/> |
|
20 |
<arg value="-Dboot.java.home=${boot.java.home}"/> |
|
21 |
<arg value="-Dtarget.java.home=${target.java.home}"/> |
|
22 |
<arg value="-Djtreg.home=${jtreg.home}"/> |
|
23 |
<arg value="-Djtreg.tests=${jtreg.tests}"/> |
|
24 |
<arg value="-Djtreg.jpda.jvmargs=${jtreg.jpda.jvmargs}"/> |
|
25 |
<arg value="@{target}"/> |
|
26 |
<classpath> |
|
27 |
<pathelement path="${java.class.path}"/> |
|
28 |
</classpath> |
|
29 |
</java> |
|
30 |
</sequential> |
|
31 |
</macrodef> |
|
25697
b71804e27eb1
8049234: Add support for running/debugging bootstrap tools in IntelliJ
mcimadamore
parents:
25282
diff
changeset
|
32 |
|
b71804e27eb1
8049234: Add support for running/debugging bootstrap tools in IntelliJ
mcimadamore
parents:
25282
diff
changeset
|
33 |
<target name="post-make" depends="build-all-tools"/> |
b71804e27eb1
8049234: Add support for running/debugging bootstrap tools in IntelliJ
mcimadamore
parents:
25282
diff
changeset
|
34 |
|
b71804e27eb1
8049234: Add support for running/debugging bootstrap tools in IntelliJ
mcimadamore
parents:
25282
diff
changeset
|
35 |
<target name="jtreg-debug" depends="build-all-tools,-def-jtreg"> |
b71804e27eb1
8049234: Add support for running/debugging bootstrap tools in IntelliJ
mcimadamore
parents:
25282
diff
changeset
|
36 |
<exec-target target="jtreg-debug-internal"/> |
b71804e27eb1
8049234: Add support for running/debugging bootstrap tools in IntelliJ
mcimadamore
parents:
25282
diff
changeset
|
37 |
</target> |
b71804e27eb1
8049234: Add support for running/debugging bootstrap tools in IntelliJ
mcimadamore
parents:
25282
diff
changeset
|
38 |
|
b71804e27eb1
8049234: Add support for running/debugging bootstrap tools in IntelliJ
mcimadamore
parents:
25282
diff
changeset
|
39 |
<target name="jtreg-debug-internal" depends="-def-jtreg"> |
b71804e27eb1
8049234: Add support for running/debugging bootstrap tools in IntelliJ
mcimadamore
parents:
25282
diff
changeset
|
40 |
<jtreg-tool name="all" tests="${jtreg.tests}" jpda.jvmargs="${jtreg.jpda.jvmargs}"/> |
b71804e27eb1
8049234: Add support for running/debugging bootstrap tools in IntelliJ
mcimadamore
parents:
25282
diff
changeset
|
41 |
</target> |
25282 | 42 |
</project> |
43 |