sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #19173
[Bug 1199798] Re: [1.0] Command line arguments cut off
The problem is the implementation (quick and dirty ;-) of the Windows
command file sikuli-script.cmd, that allows only 9 entries after the
parameter -r (including script name).
A current workaround would be to use the generated java command directly or a stripped down command file version like this:
@echo off
SETLOCAL
IF "%SIKULIX_HOME%"=="" set SIKULIX_HOME=%~dp0
set JAVA=... path to the java.exe to be used
set PARMS=-Xms64M -Xmx512M -Dfile.encoding=UTF-8
%JAVA% %PARMS% -cp "%SIKULIX_HOME%sikuli-script.jar" org.sikuli.script.SikuliScript %*
ENDLOCAL
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1199798
Title:
[1.0] Command line arguments cut off
Status in Sikuli:
Fix Committed
Bug description:
Hello,
Sorry if this has been reported or fixed already, but it appears I am
having issues running scripts with a few command line parameters.
For instance:
C:\Windows\system32>c:\Sikuli\Sikuli\sikuli-script.cmd -j6 -r c:\Sikuli\test.sikuli --args -w 2 -it 2 -te Cash -sa -c -re
-Xms64M -Xmx512M -Dfile.encoding=UTF-8
-r c:\Sikuli\test.sikuli --args -w 2 -it 2 -te Cash -sa
+++ using as SIKULIX_HOME: c:\Sikuli\Sikuli\
Note the actual command I use is being truncated. This isn't a visual
thing only, those parameters actually were not passed.
What's interesting, is this seems like a maximum character thing, as
opposed to maximum arguments. For instance if I remove the "-te Cash"
part, I get "room" for two extra command line arguments:
C:\Windows\system32>c:\Sikuli\Sikuli\sikuli-script.cmd -j6 -r c:\Sikuli\test.sikuli --args -w 2 -it 2 -sa -c -re
-Xms64M -Xmx512M -Dfile.encoding=UTF-8
-r c:\Sikuli\test.sikuli --args -w 2 -it 2 -sa -c -re
+++ using as SIKULIX_HOME: c:\Sikuli\Sikuli\
+++ this Sikuli version is 32-Bit
Could this be fixed for 1.1? If a temporary fix or workaround is
available that I or others who stumble upon this issue have, that'd be
awesome too.
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1199798/+subscriptions
References