author | coleenp |
Tue, 31 Oct 2017 11:55:09 -0400 | |
changeset 47765 | b7c7428eaab9 |
parent 47217 | 72e3ae9a25eb |
child 48667 | f2344724a475 |
permissions | -rw-r--r-- |
37861 | 1 |
<!-- importing.xml --> |
2 |
<project name="jdk" basedir=".."> |
|
3 |
||
4 |
<script language="javascript" classpath=".idea/classes"> |
|
5 |
var JdkLogger = Java.type("idea.JdkIdeaAntLogger"); |
|
6 |
new JdkLogger(project) |
|
7 |
</script> |
|
8 |
||
9 |
<!-- java.marker is set to a marker file to check for within a Java install dir. |
|
10 |
The best file to check for across Solaris/Linux/Windows/MacOS is one of the |
|
11 |
executables; regrettably, that is OS-specific. --> |
|
12 |
<condition property="java.marker" value="bin/java"> |
|
13 |
<os family="unix"/> |
|
14 |
</condition> |
|
15 |
<condition property="java.marker" value="bin/java.exe"> |
|
16 |
<os family="windows"/> |
|
17 |
</condition> |
|
18 |
||
37976
9cc5debe0f47
8157061: Add support for running jtreg tests from IntelliJ project
mcimadamore
parents:
37861
diff
changeset
|
19 |
<target name="-check-jtreg.home" depends="-def-check"> |
9cc5debe0f47
8157061: Add support for running jtreg tests from IntelliJ project
mcimadamore
parents:
37861
diff
changeset
|
20 |
<check name="jtreg" property="jtreg.home" marker="lib/jtreg.jar"/> |
9cc5debe0f47
8157061: Add support for running jtreg tests from IntelliJ project
mcimadamore
parents:
37861
diff
changeset
|
21 |
</target> |
9cc5debe0f47
8157061: Add support for running jtreg tests from IntelliJ project
mcimadamore
parents:
37861
diff
changeset
|
22 |
|
37861 | 23 |
<property name="test.dir" value="${basedir}/jdk/test"/> |
24 |
||
25 |
<macrodef name="call-make"> |
|
26 |
<attribute name="dir"/> |
|
27 |
<attribute name="args"/> |
|
28 |
<sequential> |
|
29 |
<exec executable="make" dir="@{dir}" failonerror="true"> |
|
30 |
<arg line="@{args}"/> |
|
31 |
<env key="CLASSPATH" value = ""/> |
|
32 |
</exec> |
|
33 |
</sequential> |
|
34 |
</macrodef> |
|
35 |
||
47217 | 36 |
<target name="cond-clean" unless="${intellij.ismake}"> |
37 |
<antcall target="clean"/> |
|
38 |
</target> |
|
39 |
||
40 |
<target name="post-make" depends="cond-clean, build-module"/> |
|
37861 | 41 |
|
42 |
<!-- |
|
43 |
**** Global JDK Build Targets |
|
44 |
--> |
|
45 |
||
46 |
<target name="clean" depends="-do-configure"> |
|
47 |
<echo message="base = ${basedir}"/> |
|
48 |
<call-make dir = "${build.target.dir}" args = "clean"/> |
|
49 |
</target> |
|
37976
9cc5debe0f47
8157061: Add support for running jtreg tests from IntelliJ project
mcimadamore
parents:
37861
diff
changeset
|
50 |
|
37861 | 51 |
<target name="-do-configure"> |
52 |
<echo message="base = ${basedir}"/> |
|
53 |
<fail message="Not part of a full JDK forest"> |
|
54 |
<condition> |
|
55 |
<not> |
|
56 |
<available file="${basedir}/configure" /> |
|
57 |
</not> |
|
58 |
</condition> |
|
59 |
</fail> |
|
60 |
<exec executable="sh" dir="${basedir}" failonerror="true"> |
|
61 |
<arg line="configure --with-boot-jdk=${boot.java.home}"/> |
|
62 |
</exec> |
|
63 |
</target> |
|
64 |
||
65 |
<target name="images"> |
|
66 |
<call-make dir = "${build.target.dir}" args = "images"/> |
|
67 |
</target> |
|
68 |
||
69 |
<target name="jimages"> |
|
70 |
<call-make dir = "${build.target.dir}" args = "jimages"/> |
|
71 |
</target> |
|
72 |
||
73 |
<target name="check-env"> |
|
74 |
<exec executable="env" dir="${basedir}"/> |
|
75 |
</target> |
|
76 |
||
77 |
<target name="build-module"> |
|
78 |
<call-make dir = "${build.target.dir}" args = "${module.name}"/> |
|
79 |
</target> |
|
80 |
||
81 |
<target name="-check-boot.java.home" depends="-def-check"> |
|
82 |
<check name="bootstrap java" property="boot.java.home" marker="${java.marker}"/> |
|
83 |
</target> |
|
84 |
||
85 |
<target name="-def-check"> |
|
86 |
<macrodef name="check"> |
|
87 |
<attribute name="name"/> |
|
88 |
<attribute name="property"/> |
|
89 |
<attribute name="marker" default=""/> |
|
90 |
<sequential> |
|
91 |
<fail message="Cannot locate @{name}: please set @{property} to its location"> |
|
92 |
<condition> |
|
93 |
<not> |
|
94 |
<isset property="@{property}"/> |
|
95 |
</not> |
|
96 |
</condition> |
|
97 |
</fail> |
|
98 |
<fail message="@{name} is not installed in ${@{property}}"> |
|
99 |
<condition> |
|
100 |
<and> |
|
101 |
<not> |
|
102 |
<equals arg1="@{marker}" arg2=""/> |
|
103 |
</not> |
|
104 |
<not> |
|
105 |
<available file="${@{property}}/@{marker}"/> |
|
106 |
</not> |
|
107 |
</and> |
|
108 |
</condition> |
|
109 |
</fail> |
|
110 |
</sequential> |
|
111 |
</macrodef> |
|
112 |
</target> |
|
113 |
</project> |