[jboss-cvs] JBossAS SVN: r70910 - trunk/main/src/bin.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Mar 17 10:37:20 EDT 2008


Author: mladen.turk at jboss.com
Date: 2008-03-17 10:37:20 -0400 (Mon, 17 Mar 2008)
New Revision: 70910

Modified:
   trunk/main/src/bin/run.bat
Log:
Check if java.exe supports -server option by passing that option to java. JRE will probably not support server unless someone manually copies server/jvm.dll to JRE location. However HotSpot will be always shown, but not in case if the -server option is not supported

Modified: trunk/main/src/bin/run.bat
===================================================================
--- trunk/main/src/bin/run.bat	2008-03-17 14:07:50 UTC (rev 70909)
+++ trunk/main/src/bin/run.bat	2008-03-17 14:37:20 UTC (rev 70910)
@@ -46,7 +46,7 @@
 )
 
 rem Add -server to the JVM options, if supported
-"%JAVA%" -version 2>&1 | findstr /I hotspot > nul
+"%JAVA%" -server -version 2>&1 | findstr /I hotspot > nul
 if not errorlevel == 1 (
   set "JAVA_OPTS=%JAVA_OPTS% -server"
 )




More information about the jboss-cvs-commits mailing list