|
Re: buckminster.bat only passes max 9 vmargs [message #383519 is a reply to message #383518] |
Fri, 20 March 2009 15:41 |
|
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
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.02990 seconds