gpt4 book ai didi

java - ant 目标 vssget 不起作用

转载 作者:行者123 更新时间:2023-12-01 15:50:07 24 4
gpt4 key购买 nike

当我运行 ant 目标 vssbuild 时,它给出以下错误。

D:\release>ant vssbuild Buildfile:
build.xml

vssbuild: [vssget] 'ss' is not
recognized as an internal or external
command, [vssget] operable program
or batch file.

BUILD FAILED
D:\release\build.xml:141:
Failed executi ng: ss Get $(project)
-GLD:\release\$(lo
calpath) -I- -R
-Y$(vssusername),************** With a return code of 1

我已将系统路径设置为 ss.exe。

下面我展示了我的 Ant 目标。

<property name="localpath" value="checkout" />
<property name="project" value="$/NewGen/NextGenComm" />
<property name="vssusername" value ="ganukep" />
<property name="vsspassword" value ="123"/>
<property name="projectlabel" value = "2011.05.20_V1.0.0" />
<target name="vssbuild">
<vssget vsspath="$(project)"
localpath="$(localpath)"
recursive="true"
login="$(vssusername),$(vsspassword)"
/>
</target>

有人可以帮我解决这个问题吗

最佳答案

If you get a CreateProcesss IOError=2 when running these, it means that ss.exe was not found. Check to see if you can run it from the command line -you may need to alter your path, or set the ssdir property.

这可能不是同一个错误,但它显示了需要做什么才能让 ant 找到 ss.exe 。我会尝试设置ssdir接下来的属性(如果系统路径技巧没有帮助)。

您可能想要 <echo> PATH构建脚本中的变量 - 也许 ant看到一些不同的内容。

关于java - ant 目标 vssget 不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6250918/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com