You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Dan DeRobertis (Jira)" <ji...@apache.org> on 2022/03/08 15:21:00 UTC
[jira] [Commented] (GROOVY-10526) groovyConsole.bat has incorrect JAVA_OPTS from sdkman
[ https://issues.apache.org/jira/browse/GROOVY-10526?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17503015#comment-17503015 ]
Dan DeRobertis commented on GROOVY-10526:
-----------------------------------------
Try this
{code:java}
SET "JAVA_OPTS=-Dhttp.nonProxyHosts=localhost^|127.*^|[::1]"
ECHO %JAVA_OPTS%
SET "JAVA_OPTS=-Dsun.awt.keepWorkingSetOnMinimize=true %JAVA_OPTS%"
ECHO %JAVA_OPTS%{code}
> groovyConsole.bat has incorrect JAVA_OPTS from sdkman
> -----------------------------------------------------
>
> Key: GROOVY-10526
> URL: https://issues.apache.org/jira/browse/GROOVY-10526
> Project: Groovy
> Issue Type: Bug
> Reporter: Aleks Tamarkin
> Priority: Major
>
> When installing groovy 4.0.0 or 4.0.1 with sdkman on windows the script `groovyConsole.bat` has a line that looks like
> {code:java}
> set "JAVA_OPTS=-Dsun.awt.keepWorkingSetOnMinimize=true %JAVA_OPTS%"{code}
> This breaks for some values of JAVA_OPTS for example
> {code:java}
> PS> echo $env:JAVA_OPTS
> "-Dhttp.nonProxyHosts=localhost|127.*|[::1]"{code}
> Example error:
> {code:java}
> '127.*' is not recognized as an internal or external command,
> operable program or batch file.{code}
> The correct line should be
>
> {code:java}
> set JAVA_OPTS="-Dsun.awt.keepWorkingSetOnMinimize=true" %JAVA_OPTS%{code}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)