我正在尝试运行构建脚本,并且在特定的 svn 任务期间不断收到错误。当我尝试从命令行构建目标时,出现身份验证错误。当我从 flex builder 运行构建时,我收到一条错误消息,提示“请获取更新的 Subversion 客户端”。据我所知,在执行 ant -verbose 时可以在这里看到一个根本问题:
svn_update:
[echo] Updating the project source...
[svn] Using javahl
[svn] <Update> started ...
[svn] update /Users/dave/Documents/Flex Builder 3/AssetLibrary -r HEAD --force
[svn] At revision 373.
[svn] <Update> finished.
[ant] Exiting /Users/dave/Documents/Flex Builder 3/Simulation/build-template/commonbuild.xml.
[ant] Exiting /Users/dave/Documents/Flex Builder 3/AssetLibrary/build.xml.
[echo] Updating DataService Source
...
svn_update:
[echo] Updating the project source...
[svn] Using command line
[svn] <Update> started ...
[svn] up -r HEAD /Users/dave/Documents/Flex Builder 3/DataService --non-interactive
[svn] svn: OPTIONS of 'https://svn.example.com/{redacted}': authorization failed: Could not authenticate to server: ignored NTLM challenge, rejected Basic challenge (https://svn.example.com)
[svn] <Update> failed !
[ant] Exiting /Users/dave/Documents/Flex Builder 3/Simulation/build-template/commonbuild.xml.
[ant] Exiting /Users/dave/Documents/Flex Builder 3/DataService/build.xml.
[ant] Exiting /Users/dave/Documents/Flex Builder 3/Simulation/build.xml.
如您所见,第二个(失败的)svn_update 目标正在使用命令行,而第一个(工作)更新正在使用 javahl。我使用的是svn的默认属性,所以应该默认使用javahl。
我将我的 svnant jar 更新到 1.3.0。
希望对这个有帮助!
戴夫