Subclipse - 将 SVN 存储库检出到非根文件夹中
有什么方法可以使 subclipse 将存储库检出到项目的非根文件夹中。特别是,我想检出文件夹 src/wavedev 而不仅仅是项目根目录。
Is there any way to make subclipse checkout a repository into a non-root folder of a project. In particular, I want to checkout into folder src/wavedev rather than just to the project root.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
不确定这是否适合您的情况,但您可以使用 SVN:Externals
SVN:Externals 属性允许您检出当前存储库中的外部存储库。更改此外部存储库中的代码将在您当前的项目中更新,并且从外部存储库更改当前项目中的代码将提交到该存储库。
要在 subclipse 中设置外部属性:
将值设置为:
据我所知,subclipse 使用与 svn 命令行工具或例如 tortoisesvn 相同的 .svn 文件夹。因此,如果您无法让它与 subclipse 一起使用,您可以尝试此解决方法
Not sure if this is a solution to your situation, but you could use SVN:Externals
The SVN:Externals property lets you checkout an external repository within your current repository. Changing code in this external repository will update in your current project and changing code in your current project from the external repository will commit to that repository.
To set the external property in subclipse:
set the value to:
As far as I know subclipse uses the same .svn folders as the svn commandline tool or for instance tortoisesvn. So if you can't get it to work with subclipse you could try this workaround
如果您的顶级项目不受版本控制,那么您可能无法执行 svn:externals 技巧。
但是,您可以解决这个问题:
将所需的代码检出到一个新项目(我们称之为项目 B)中。
在您工作的项目(我们称之为项目 A)中,创建一个新文件夹 (src/wavedev),但在“新建文件夹”对话框中,使用“高级”按钮将其链接到文件系统中的外部文件夹。您可以将其指向项目 B 的位置。
不过,将项目 B 添加到项目 A 的构建路径可能更有意义...?
If your top level project isn't under version control, then you probably can't do the svn:externals trick.
However, you could work your way around it:
Check out the code you want into a new project (let's call this Project B).
In the project your working in (let's call it Project A), create a new folder (src/wavedev), but in the New Folder Dialogue, use the Advanced button to link it to an external folder in the filesystem. You can point it to the location of Project B.
It might make more sense, though, to add Project B to the build path of Project A...?
如果您的顶级项目不受版本控制,
1. 您可以签出其他目录中的 src 树,并建立从源到签出文件夹的软链接。
2. 或者,您可以在其他位置签出 src 树,并配置 Eclipse 在新签出的文件夹中查找源代码。
上面的答案是完全有效的解决方法,但这些只是列表中的几个。!
If your top level project isn't under version control,
1. You could checkout the src tree in some other directory and make a soft link from your source to the checked out folder.
2. Alternatively, You can checkout the src tree in some other location and configure eclipse to look for source in the newly checked out folder.
The answers above are perfectly valid work arounds, but these are just few more to the list.!