0
我想使用Checkmarx CLI,並且有一些參數我真的不知道如何配置。如何配置runCxConsole.cmd文件
這是文件:
@echo off
pushd "%~dp0"
set JAVA_HOME=/usr/lib/jvm/jdk1.7.0_51
set PATH=%JAVA_HOME%/bin;%PATH%
set CPATH=.;../config/cx_console.properties;
java -Xmx1024m -cp %CPATH% -jar CxConsolePlugin-CLI-7.5.0-20160719-1414.jar %*
popd
我真的不知道什麼它與PUSHD,POPD和CPATH意味着想法。 當我運行ant命令我收到此:
CxScan:
[echo] Initiating Checkmarx Scan
[exec] /root/CxConsolePlugin-7.5.0-20160719-1414/runCxConsole.cmd: 3: /root/CxConsolePlugin-7.5.0-20160719-1414/runCxConsole.cmd: pushd: not found
[exec] /root/CxConsolePlugin-7.5.0-20160719-1414/runCxConsole.cmd: 5: /root/CxConsolePlugin-7.5.0-20160719-1414/runCxConsole.cmd: %PATH%: not found
[exec] /root/CxConsolePlugin-7.5.0-20160719-1414/runCxConsole.cmd: 6: /root/CxConsolePlugin-7.5.0-20160719-1414/runCxConsole.cmd: ../config/cx_console.properties: not found
[exec] Error: Unable to access jarfile CxConsolePlugin-CLI-7.5.0-20160719-1414.jar
[exec] /root/CxConsolePlugin-7.5.0-20160719-1414/runCxConsole.cmd: 11: /root/CxConsolePlugin-7.5.0-20160719-1414/runCxConsole.cmd: popd: not found
[exec] Result: 127
非常感謝
你用過它嗎?你介意幫我一下嗎?當然是 – Lost
。我用它所有的時間。 首先,請確認以下內容: - cxSAST版本 – bkl
cxsast版本,cli版本,cli環境(windows或unix) – bkl