我使用Silk4J,在我的构建中,我必须启动代理。我使用的命令是:
<exec spawn="true" executable="${env.OPEN_AGENT_HOME}/agent/openAgent.exe" />
Run Code Online (Sandbox Code Playgroud)
它给我这个错误
The ' characters around the executable and arguments are not part of the command.
Run Code Online (Sandbox Code Playgroud)
我需要更改吗?
该消息并不表示错误。
当-v,-verbose,-d,或-debug选项分配给蚂蚁,所述<exec>任务输出其沿与所述消息执行命令:
[exec] Current OS is Windows 7
[exec] Executing 'cmd' with arguments:
[exec] '/c'
[exec] '@for %a in (C:\src\ant\ant-dir-file-local) do @echo %~ta'
[exec]
[exec] The ' characters around the executable and arguments are
[exec] not part of the command.
[exec] 10/23/2013 02:36 AM
Run Code Online (Sandbox Code Playgroud)
分解上面的示例...
[exec] Executing 'cmd' with arguments:
^ ^
[exec] '/c'
^ ^
[exec] '@for %a in (C:\src\ant\ant-dir-file-local) do @echo %~ta'
^ ^
Run Code Online (Sandbox Code Playgroud)
在这种情况下,'每个引号上方的单引号()^都不是命令的一部分。Ant将可执行文件的名称和每个参数都用单引号引起来,以明确命令的内容和不的含义。Ant这样做是为了帮助用户在<exec>行为异常时调试其Ant脚本。该消息纯粹是信息性的。
| 归档时间: |
|
| 查看次数: |
9091 次 |
| 最近记录: |