Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我svn checkout在批处理文件中使用命令从 SVN 签出我的源代码文件夹,然后构建代码。
svn checkout
但有时检出失败,因此代码构建失败,因为所有文件夹都没有检出。那么如何知道结帐是否失败,以便我可以重新开始结帐过程。
svn如果发生故障,应该以非零退出代码退出,所以
svn
svn checkout ... if errorlevel 1 ( echo something failed )
要构建更健壮的东西,只需尝试结帐直到成功,您可以使用以下内容:
:l rem reset errorlevel to 0 ver > nul if exist foo rd /s /q foo > nul svn checkout http://... foo || goto l
应该尝试直到成功。
我用 JSON 创建了一个 web 服务,我想解析它然后把它们放在 listview 上。但是当我运行应用程序时,它会强制关闭并显示错误消息。请检查我的代码,有什么问题吗?
这是我尝试运行我的应用程序时的错误消息:
org.json.JSONEx