Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » buckminster.bat only passes max 9 vmargs
buckminster.bat only passes max 9 vmargs [message #383518] Fri, 20 March 2009 15:35 Go to next message
John is currently offline JohnFriend
Messages: 107
Registered: July 2009
Senior Member
Hi!


While trouble shooting why some of the system properties I pass to
headless Buckminster seem to disappear, I finally discovered that only the
first 9 vmargs are being passed on in the buckminster.bat file.

The last part of the file looks like this:

:parseargs
rem ------------------------------------------------------------ ----
rem Split the arguments into vm, vmargs and common args
rem ------------------------------------------------------------ ----
set VM=java
set ARGS=
set VMARGS=
:loop
if [%1] == [] goto endloop
if [%1] == [-vm] goto vm
if [%1] == [-vmargs] goto vmargs
set ARGS=%ARGS% %1
shift
goto loop
:vm
shift
set VM=%1
shift
goto loop

:vmargs
shift

:endloop

rem ------------------------------------------------------------ ----
rem Invoke
rem ------------------------------------------------------------ ----
%VM% %1 %2 %3 %4 %5 %6 %7 %8 %9 -jar "%EXE_DIR%startup.jar" %ARGS%

The precense of the VMARGS variable indicates an intent to pass all
vmargs, but as seen only %1 %2 %3 %4 %5 %6 %7 %8 %9 are passed.

With the following script changes it now passes them all:

:vmargs
shift
:vmargs_loop
if [%1] == [] goto endloop
set VMARGS=%VMARGS% %1
shift
goto vmargs_loop

:endloop

rem ------------------------------------------------------------ ----
rem Invoke
rem ------------------------------------------------------------ ----
%VM% %VMARGS% -jar "%EXE_DIR%startup.jar" %ARGS%


/John
Re: buckminster.bat only passes max 9 vmargs [message #383519 is a reply to message #383518] Fri, 20 March 2009 15:41 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
Hi John,
I suggest you write a bugzilla for this and include the modified script
as an attachment (patch or in full).

Regards,
Thomas Hallgren


John wrote:
> Hi!
>
>
> While trouble shooting why some of the system properties I pass to
> headless Buckminster seem to disappear, I finally discovered that only
> the first 9 vmargs are being passed on in the buckminster.bat file.
>
> The last part of the file looks like this:
>
> :parseargs
> rem ------------------------------------------------------------ ----
> rem Split the arguments into vm, vmargs and common args
> rem ------------------------------------------------------------ ----
> set VM=java
> set ARGS=
> set VMARGS=
> :loop
> if [%1] == [] goto endloop
> if [%1] == [-vm] goto vm
> if [%1] == [-vmargs] goto vmargs
> set ARGS=%ARGS% %1
> shift
> goto loop
> :vm
> shift
> set VM=%1
> shift
> goto loop
>
> :vmargs
> shift
>
> :endloop
>
> rem ------------------------------------------------------------ ----
> rem Invoke
> rem ------------------------------------------------------------ ----
> %VM% %1 %2 %3 %4 %5 %6 %7 %8 %9 -jar "%EXE_DIR%startup.jar" %ARGS%
>
> The precense of the VMARGS variable indicates an intent to pass all
> vmargs, but as seen only %1 %2 %3 %4 %5 %6 %7 %8 %9 are passed.
>
> With the following script changes it now passes them all:
>
> :vmargs
> shift
> :vmargs_loop
> if [%1] == [] goto endloop
> set VMARGS=%VMARGS% %1
> shift
> goto vmargs_loop
>
> :endloop
>
> rem ------------------------------------------------------------ ----
> rem Invoke
> rem ------------------------------------------------------------ ----
> %VM% %VMARGS% -jar "%EXE_DIR%startup.jar" %ARGS%
>
>
> /John
>
Re: buckminster.bat only passes max 9 vmargs [message #383523 is a reply to message #383519] Sun, 22 March 2009 20:36 Go to previous message
John is currently offline JohnFriend
Messages: 107
Registered: July 2009
Senior Member
Hi Thomas!


The bugzilla id is 269629


/John
Previous Topic:Headless cross platform product builds
Next Topic:Can I pass parameters to Buckminster?
Goto Forum:
  


Current Time: Thu Apr 25 19:44:47 GMT 2024

Powered by FUDForum. Page generated in 0.02990 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top