# HG changeset patch # User mcimadamore # Date 1491219641 -3600 # Node ID 8e5061e5b34b029ad76abaac9cfc26a2adff730f # Parent 9adfc635dd7be1db2aadd45c88f5802b5c06f615 8177667: Langtools ant build has issues with Windows file separators Summary: Replace complex, non-portable regex logic for generating --patch-module option with a script mapper Reviewed-by: jjg, ksrini diff -r 9adfc635dd7b -r 8e5061e5b34b langtools/make/build.properties --- a/langtools/make/build.properties Fri Mar 31 07:38:34 2017 -0700 +++ b/langtools/make/build.properties Mon Apr 03 12:40:41 2017 +0100 @@ -56,7 +56,7 @@ tool.javap.main.class=com.sun.tools.javap.Main tool.javah.main.class=com.sun.tools.javah.Main tool.sjavac.main.class=com.sun.tools.sjavac.Main -tool.jshell.main.class=jdk.internal.jshell.tool.JShellTool +tool.jshell.main.class=jdk.internal.jshell.tool.JShellToolProvider #test configuration: jtreg.tests= diff -r 9adfc635dd7b -r 8e5061e5b34b langtools/make/build.xml --- a/langtools/make/build.xml Fri Mar 31 07:38:34 2017 -0700 +++ b/langtools/make/build.xml Mon Apr 03 12:40:41 2017 +0100 @@ -89,16 +89,22 @@ - + + fs = project.getProperty("file.separator"); + path = project.getProperty("build.modules"); + mod = source.substr(source.lastIndexOf(fs)+1); + self.addMappedName(mod + "=\"" + path + fs + mod + "\""); + - + + fs = project.getProperty("file.separator"); + path = project.getProperty("build.modules"); + mod = source.substr(source.lastIndexOf(fs)+1); + self.addMappedName(mod + "=" + path + fs + mod); + @@ -341,7 +347,7 @@ - + @@ -360,7 +366,7 @@ failonerror="false" resultproperty="jtreg.@{name}.result" vmoptions="${coverage.options} @{extra.jvmargs} ${xpatch.noquotes.cmd}"> - + diff -r 9adfc635dd7b -r 8e5061e5b34b langtools/make/intellij/runConfigurations/javadoc.xml --- a/langtools/make/intellij/runConfigurations/javadoc.xml Fri Mar 31 07:38:34 2017 -0700 +++ b/langtools/make/intellij/runConfigurations/javadoc.xml Mon Apr 03 12:40:41 2017 +0100 @@ -1,8 +1,8 @@ -