使用 subclipse 检查 svn 存储库时出现问题
我有一个 svn 存储库,如下所示:
TRUNK/
trials/ <- this is a java package
<a bunch of java files>
当我通过 subclipse 使用 eclipse 检查此项目时,我最终得到一个带有空 src 目录和旁边一个名为 Trials
的文件夹的项目,其中这不是我想要的。是否可以通过 subclipse 进行检查,以便项目中的 src 目录包含包含 java 文件的试验?
I have an svn repo that looks something like the following:
TRUNK/
trials/ <- this is a java package
<a bunch of java files>
When I check this out with eclipse through subclipse, I end up with a project with an empty src directory and a folder next to it called trials
, which is not what I want. Is it possible to check it out through subclipse such that the src directory in the project contains trials which contains the java files?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试使用 New > 从 Subeclipse 中签出其他> SVN>从 SVN 签出项目,然后使用“作为工作区中的项目签出”选项。
您可以使用 SVN 存储库透视图查看存储库,看看它是否包含您需要的文件。
Try to check-out from Subeclipse using the use New > Other > SVN > Checkout Projects from SVN, and then use the "Checkout as a project in the workspace" option.
You can use the SVN Repository perspective to look at the repository to see if it has the files you need.
我们最终通过稍微重新安排存储库的布局来解决这个问题(只需将所有内容放在名为“src”的目录下),然后 subclipse 就做了正确的事情(正是这样的事情让我更喜欢命令行客户端,其中有魔法较少,但并非团队中的每个人都有这种感觉,因此必须找到中间立场)。
We ended up solving this by rearranging the layout of the repository slightly (just put everything under a directory called "src") and after that subclipse just did the right thing (it's things like this that make me prefer a command line client where there is less magic, but not everyone on the team feels that way, so middle ground must be found).