我正在尝试使用 Checkmarx CLI,但有些参数我真的不知道如何配置。
这是文件:
@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
非常感谢