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
733c925a
...
733c925abed8edf388c4d505d95d279edb7d2153
authored
2012-09-10 17:57:31 -0700
by
Reina Sweet
Committed by
Nicolas Perriault
2012-10-23 19:32:55 +0200
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
A windows specific loader for casperjs
1 parent
b4330f53
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
bin/casperjs.bat
bin/casperjs.bat
0 → 100644
View file @
733c925
@ECHO OFF
set CASPER_BIN=%~dp0
set CASPER_PATH=%~dp0..\
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=
:Loop
if "%1"=="" goto Continue
set IS_PHANTOM_ARG=0
for %%i in %PHANTOMJS_NATIVE_ARGS% do (
if "%%i"=="%1" set IS_PHANTOM_ARG=1
)
if %IS_PHANTOM_ARG%==0 set CASPER_ARGS=%CASPER_ARGS% %1
if %IS_PHANTOM_ARG%==1 set PHANTOM_ARGS=%PHANTOM_ARGS% %1
shift
goto Loop
:Continue
call phantomjs%PHANTOM_ARGS% %CASPER_BIN%bootstrap.js --casper-path=%CASPER_PATH% --cli%CASPER_ARGS%
\ No newline at end of file
Please
register
or
sign in
to post a comment