Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
casperjs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
03af9603
...
03af9603622236da1c8376bffc88b61047dcf17c
authored
2012-11-13 22:49:16 -0800
by
Elmar Langholz
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
refs #269 - Fixing unsupported spaces in path and argument splitting
1 parent
c00068c7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
24 deletions
batchbin/casperjs.bat
batchbin/casperjs.bat
View file @
03af960
@ECHO OFF
@setlocal EnableDelayedExpansion
set CASPER_PATH=%~dp0..
set CASPER_BIN=%CASPER_PATH%\bin\
set PHANTOMJS_NATIVE_ARGS=(--cookies-file --config --debug --disk-cache --ignore-ssl-errors --load-images --load-plugins --local-storage-path --local-storage-quota --local-to-remote-url-access --max-disk-cache-size --output-encoding --proxy --proxy-auth --proxy-type --remote-debugger-port --remote-debugger-autorun --script-encoding --web-security)
set PHANTOM_ARGS=
set CASPER_ARGS=
set ARGV=%*
for %%a in ("%ARGV: =" "%") do (
set IS_PHANTOM_ARG=0
set arg=%%~a
for %%i in %PHANTOMJS_NATIVE_ARGS% do (
for %%x in (!arg!) do (
if "%%x"=="%%i" (
set IS_PHANTOM_ARG=1
goto :EndOfCheck
)
)
)
:EndOfCheck
if !IS_PHANTOM_ARG!==0 set CASPER_ARGS=!CASPER_ARGS! !arg!
if !IS_PHANTOM_ARG!==1 set PHANTOM_ARGS=!PHANTOM_ARGS! !arg!
)
call phantomjs%PHANTOM_ARGS% "%CASPER_BIN%bootstrap.js" --casper-path="%CASPER_PATH%" --cli%CASPER_ARGS%
\ No newline at end of file
call phantomjs "%CASPER_BIN%bootstrap.js" --casper-path="%CASPER_PATH%" --cli %ARGV%
\ No newline at end of file
...
...
Please
register
or
sign in
to post a comment