1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 ~ Copyright (c) 2007, 2018, Oracle and/or its affiliates. All rights reserved.
4 ~ DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 ~
6 ~ This code is free software; you can redistribute it and/or modify it
7 ~ under the terms of the GNU General Public License version 2 only, as
8 ~ published by the Free Software Foundation. Oracle designates this
9 ~ particular file as subject to the "Classpath" exception as provided
10 ~ by Oracle in the LICENSE file that accompanied this code.
11 ~
12 ~ This code is distributed in the hope that it will be useful, but WITHOUT
13 ~ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 ~ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 ~ version 2 for more details (a copy is included in the LICENSE file that
16 ~ accompanied this code).
17 ~
18 ~ You should have received a copy of the GNU General Public License version
19 ~ 2 along with this work; if not, write to the Free Software Foundation,
20 ~ Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
21 ~
22 ~ Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
23 ~ or visit www.oracle.com if you need additional information or have any
83 <property name="build.bin" location="${build.dir}/bin"/>
84 <property name="build.jtreg" location="${build.dir}/jtreg"/>
85 <property name="build.prevsrc" location="${build.dir}/prevsrc"/>
86
87 <dirset id="src.module.dirset" dir="${src.dir}" includes="${module.names}"/>
88
89 <pathconvert pathsep="," property="src.module.dirs" refid="src.module.dirset"/>
90
91 <pathconvert property="xpatch.rest" pathsep=" --patch-module=" refid="src.module.dirset">
92 <regexpmapper from="^.*(/|\\)([^/\\]*)$" to='\2="${build.modules}\1\2"' />
93 </pathconvert>
94
95 <pathconvert property="xpatch.noquotes.rest" pathsep=" --patch-module=" refid="src.module.dirset">
96 <regexpmapper from="^([^/\\]*)(/|\\).*" to="\1=${build.modules}\2\1" />
97 </pathconvert>
98
99 <property name="xpatch.cmd" value="--patch-module=${xpatch.rest}"/>
100 <property name="xpatch.noquotes.cmd" value="--patch-module=${xpatch.noquotes.rest}"/>
101
102 <!-- java.marker is set to a marker file to check for within a Java install dir.
103 The best file to check for across Solaris/Linux/Windows/MacOS is one of the
104 executables; regrettably, that is OS-specific. -->
105 <condition property="java.marker" value="bin/java">
106 <os family="unix"/>
107 </condition>
108 <condition property="java.marker" value="bin/java.exe">
109 <os family="windows"/>
110 </condition>
111
112 <!-- Standard property values, if not overriden by earlier settings. -->
113 <property file="${make.dir}/build.properties"/>
114
115 <condition property="langtools.jdk.home" value="${jdk.home}">
116 <isset property="jdk.home" />
117 </condition>
118
119 <!-- launcher.java is used in the launcher scripts provided to run
120 the tools' jar files. If it has not already been set, then
121 default it to use ${langtools.jdk.home}, if available, otherwise
122 quietly default to simply use "java". -->
123 <condition property="launcher.java"
|
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 ~ Copyright (c) 2007, 2020, Oracle and/or its affiliates. All rights reserved.
4 ~ DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 ~
6 ~ This code is free software; you can redistribute it and/or modify it
7 ~ under the terms of the GNU General Public License version 2 only, as
8 ~ published by the Free Software Foundation. Oracle designates this
9 ~ particular file as subject to the "Classpath" exception as provided
10 ~ by Oracle in the LICENSE file that accompanied this code.
11 ~
12 ~ This code is distributed in the hope that it will be useful, but WITHOUT
13 ~ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 ~ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 ~ version 2 for more details (a copy is included in the LICENSE file that
16 ~ accompanied this code).
17 ~
18 ~ You should have received a copy of the GNU General Public License version
19 ~ 2 along with this work; if not, write to the Free Software Foundation,
20 ~ Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
21 ~
22 ~ Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
23 ~ or visit www.oracle.com if you need additional information or have any
83 <property name="build.bin" location="${build.dir}/bin"/>
84 <property name="build.jtreg" location="${build.dir}/jtreg"/>
85 <property name="build.prevsrc" location="${build.dir}/prevsrc"/>
86
87 <dirset id="src.module.dirset" dir="${src.dir}" includes="${module.names}"/>
88
89 <pathconvert pathsep="," property="src.module.dirs" refid="src.module.dirset"/>
90
91 <pathconvert property="xpatch.rest" pathsep=" --patch-module=" refid="src.module.dirset">
92 <regexpmapper from="^.*(/|\\)([^/\\]*)$" to='\2="${build.modules}\1\2"' />
93 </pathconvert>
94
95 <pathconvert property="xpatch.noquotes.rest" pathsep=" --patch-module=" refid="src.module.dirset">
96 <regexpmapper from="^([^/\\]*)(/|\\).*" to="\1=${build.modules}\2\1" />
97 </pathconvert>
98
99 <property name="xpatch.cmd" value="--patch-module=${xpatch.rest}"/>
100 <property name="xpatch.noquotes.cmd" value="--patch-module=${xpatch.noquotes.rest}"/>
101
102 <!-- java.marker is set to a marker file to check for within a Java install dir.
103 The best file to check for across Linux/Windows/MacOS is one of the
104 executables; regrettably, that is OS-specific. -->
105 <condition property="java.marker" value="bin/java">
106 <os family="unix"/>
107 </condition>
108 <condition property="java.marker" value="bin/java.exe">
109 <os family="windows"/>
110 </condition>
111
112 <!-- Standard property values, if not overriden by earlier settings. -->
113 <property file="${make.dir}/build.properties"/>
114
115 <condition property="langtools.jdk.home" value="${jdk.home}">
116 <isset property="jdk.home" />
117 </condition>
118
119 <!-- launcher.java is used in the launcher scripts provided to run
120 the tools' jar files. If it has not already been set, then
121 default it to use ${langtools.jdk.home}, if available, otherwise
122 quietly default to simply use "java". -->
123 <condition property="launcher.java"
|