forked from OWASP-Benchmark/BenchmarkJava
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrunCrawler.bat
More file actions
executable file
·17 lines (17 loc) · 815 Bytes
/
runCrawler.bat
File metadata and controls
executable file
·17 lines (17 loc) · 815 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
@echo off
REM source "scripts/verifyBenchmarkPluginAvailable.sh" - Don't have .bat version of this (yet)
set /A args_count=0
for %%A in (%*) do set /A args_count+=1
if %args_count% NEQ 0 (
if %args_count% EQU 2 (
CALL mvn org.owasp:benchmarkutils-maven-plugin:run-crawler -DcrawlerFile=data/benchmark-crawler-http.xml -DproxyHost="%1" -DproxyPort="%2"
) else (
echo Error!!
echo -------
echo To run the Crawler for localhost, execute runCrawler.bat with no arguments.
echo To run the Crawler for remote host, execute runCrawler.bat with only 2 arguments, proxy-host and proxy-port.
echo Example: runCrawler.bat 192.168.0.1 53452
)
) else (
CALL mvn org.owasp:benchmarkutils-maven-plugin:run-crawler -DcrawlerFile=data/benchmark-crawler-http.xml
)