Thanks for the update.
Unix is not affected as it uses a different script (and I'm pretty sure
it works as we have mostly Unix users ;)).
I gonna create a Jira to apply this.
Thanks,
Regards
JB
On 09/25/2014 10:26 AM, j3rem1e wrote:
Hello,
Some options from the JAVA_OPTS are ignored by the jvm on windows. by
example, the KARAF_DEBUG doesn't work, or "derby.system.home" is ignored.
I managed to make it work with the following patch. I didn't test on linux
for now !
--- ../../apache-karaf-2.4.0/bin/karaf.bat Wed Sep 17 08:00:08 2014
+++ karaf.bat Thu Sep 25 08:06:06 2014
@@ -233,7 +233,7 @@
if "%JAVA_OPTS%" == "" set JAVA_OPTS=%DEFAULT_JAVA_OPTS%
if "%EXTRA_JAVA_OPTS%" == "" goto :KARAF_EXTRA_JAVA_OPTS_END
- set JAVA_OPTS="%JAVA_OPTS% %EXTRA_JAVA_OPTS%"
+ set JAVA_OPTS=%JAVA_OPTS% %EXTRA_JAVA_OPTS%
:KARAF_EXTRA_JAVA_OPTS_END
if "%KARAF_DEBUG%" == "" goto :KARAF_DEBUG_END
@@ -242,8 +242,9 @@
rem Use the defaults if JAVA_DEBUG_OPTS was not set
if "%JAVA_DEBUG_OPTS%" == "" set
JAVA_DEBUG_OPTS=%DEFAULT_JAVA_DEBUG_OPTS%
- set JAVA_OPTS="%JAVA_DEBUG_OPTS% %JAVA_OPTS%"
+ set JAVA_OPTS=%JAVA_DEBUG_OPTS% %JAVA_OPTS%
call :warn Enabling Java debug options: %JAVA_DEBUG_OPTS%
+ echo %JAVA_OPTS%
:KARAF_DEBUG_END
if "%KARAF_PROFILER%" == "" goto :KARAF_PROFILER_END
@@ -320,7 +321,7 @@
:EXECUTE_DEBUG
if "%JAVA_DEBUG_OPTS%" == "" set
JAVA_DEBUG_OPTS=%DEFAULT_JAVA_DEBUG_OPTS%
- set "JAVA_OPTS=%JAVA_DEBUG_OPTS% %JAVA_OPTS%"
+ set JAVA_OPTS=%JAVA_DEBUG_OPTS% %JAVA_OPTS%
shift
goto :RUN_LOOP
--
View this message in context:
http://karaf.922171.n3.nabble.com/Karaf-2-4-0-Invalid-JVM-Options-tp4035513.html
Sent from the Karaf - User mailing list archive at Nabble.com.
--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com