You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2021/12/05 07:10:43 UTC

[groovy] branch master updated: GROOVY-10401: Prevents paging out the groovy console when minimized

This is an automated email from the ASF dual-hosted git repository.

sunlan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/master by this push:
     new 2840156  GROOVY-10401: Prevents paging out the groovy console when minimized
2840156 is described below

commit 2840156f724e9b8cf05b5f09515f52541b5ad7f7
Author: Daniel Sun <su...@apache.org>
AuthorDate: Sun Dec 5 15:09:42 2021 +0800

    GROOVY-10401: Prevents paging out the groovy console when minimized
---
 src/bin/groovyConsole     | 1 +
 src/bin/groovyConsole.bat | 1 +
 2 files changed, 2 insertions(+)

diff --git a/src/bin/groovyConsole b/src/bin/groovyConsole
index b4fe404..4fd32b0 100644
--- a/src/bin/groovyConsole
+++ b/src/bin/groovyConsole
@@ -43,4 +43,5 @@ DIRNAME="$(dirname "$PRG")"
 
 . "$DIRNAME/startGroovy"
 
+export JAVA_OPTS="-Dsun.awt.keepWorkingSetOnMinimize=true $JAVA_OPTS"
 startGroovy groovy.console.ui.Console "$@"
diff --git a/src/bin/groovyConsole.bat b/src/bin/groovyConsole.bat
index 7709102..04fc3e9 100644
--- a/src/bin/groovyConsole.bat
+++ b/src/bin/groovyConsole.bat
@@ -27,6 +27,7 @@ if "%OS%"=="Windows_NT" setlocal
 set DIRNAME=%~dp0
 if "%DIRNAME%" == "" set DIRNAME=.\
 
+set "JAVA_OPTS=-Dsun.awt.keepWorkingSetOnMinimize=true %JAVA_OPTS%"
 "%DIRNAME%\startGroovy.bat" "%DIRNAME%" groovy.console.ui.Console %*
 
 @rem End local scope for the variables with windows NT shell