diff --git a/docs/content/pages/iblog.md b/docs/content/pages/iblog.md index 771fb474..82a9de5d 100644 --- a/docs/content/pages/iblog.md +++ b/docs/content/pages/iblog.md @@ -15,9 +15,14 @@ http://www.scala-lang.org/. # Introduction -Start the BLOG interactive shell using the `iblog` command. In the examples -below, lines prefixed with `scala>` are what you type into the shell. Lines -without that prefix are output printed by the shell. +Start the BLOG interactive shell using the `iblog` command. You could change the maximum Java heap size by typing `iblog -J-Xmx`. For example, if you type + +```text +iblog -J-Xmx1024M +``` + +Then the maximum Java heap size will be set to 1024M. +In the examples below, lines prefixed with `scala>` are what you type into the shell. Lines without that prefix are output printed by the shell. # Example: Debugging Likelihood Weighting diff --git a/iblog.bat b/iblog.bat index 4fc34709..38b26644 100644 --- a/iblog.bat +++ b/iblog.bat @@ -1,13 +1,17 @@ @echo off -if "%1"=="" set JAVA_OPTS=-Xmx4096M +set Param1=%1 +if "%Param1:~0,6%"=="-J-Xmx" ( + set JAVA_OPTS=%Param1:~2% + set Param1= +) set BLOG_HOME=%~dp0.. echo Starting Interative Shell for BLOG if exist "%BLOG_HOME%\bin\iblog.scala" ( set CPATH="%BLOG_HOME%\lib\java-cup-11b.jar;%BLOG_HOME%\lib\*" - scala -cp %CPATH% -i "%BLOG_HOME%\bin\iblog.scala" -J%JAVA_OPTS% %* + scala -cp %CPATH% -i "%BLOG_HOME%\bin\iblog.scala" -J%JAVA_OPTS% %Param1% %2 %3 %4 %5 %6 %7 %8 %9 ) else ( set BLOG_DEVELOP_HOME=%~dp0 if NOT exist "%BLOG_DEVELOP_HOME%target\universal\stage\" (sbt\sbt.bat stage) set CPATH="%BLOG_DEVELOP_HOME%target\universal\stage\lib\java-cup-11b.jar;%BLOG_DEVELOP_HOME%target\universal\stage\lib\*" - scala -cp %CPATH% -i "%BLOG_DEVELOP_HOME%src\main\scala\iblog.scala" -J%JAVA_OPTS% %* + scala -cp %CPATH% -i "%BLOG_DEVELOP_HOME%src\main\scala\iblog.scala" -J%JAVA_OPTS% %Param1% %2 %3 %4 %5 %6 %7 %8 %9 )