外部结帐时项目属性丢失
我们公司可能很快就会从 CVS 迁移到 Subversion。这给我们带来了一个问题,我正在努力解决这个问题。
对于 CVS 和 Eclipse,我们能够使用团队项目集文件来收集各种模块并一起检查它们 (http://vpms.de.csc.com/projectset/)。这使得管理项目变得非常容易,因为无需记住项目中的每个模块。
但是,项目集不支持 SVN。我知道 SVN 有一个“外部”属性,可以做大约(或可能完全相同)相同的事情。我试过这个。现在,针对问题:
当我在 eclipse 中使用 externals 属性并签出 2 个模块时,它们的 C/C++ 项目属性丢失,因此我无法右键单击它们来说“构建项目”或“清理项目”。它们对于 Eclipse 来说就像是包含文件的文件夹。
我在这里缺少什么吗?
编辑 当我单独签出每个模块时,它们会作为项目签出,因此它们确实有单独的 .project/.cproject/settings 内容
Our company might be moving from CVS to Subversion soon. This has brought about an issue for us, which I am trying to solve.
For CVS and Eclipse, we were able to use team project set files to gather various modules and check them out together (http://vpms.de.csc.com/projectset/). This made it very easy to manage projects, since there was no need to remember each module in the project.
However, project sets do not support SVN. I know there is an 'externals' property for SVN that does approximately (or possible exactly) the same thing. I tried this. Now, for the problem:
When I use the externals property and checkout 2 modules in eclipse, their C/C++ project properties are lost, and so I cannot right click on them to say "build project" or "clean project". They appear to Eclipse to be folders with files in them.
Is there something I am missing here?
EDIT
When I check out each module separately, they check out as projects, so they do have the individual .project/.cproject/settings stuff
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您忘记将 Eclipse 项目元数据放入源代码控制系统中。确保所有文件都以“.”开头在项目根目录中,将其与 .settings 目录的全部内容一起放入。
You forgot to place Eclipse project metadata into your source control system. Make sure all files starting with '.' in project root make it in along with the entire contents of the .settings directory.
Subversion 外部仅允许您从存储库的一部分获取文件并将它们放入本地签出的文件夹下。在我的上一家公司,我们有一个名为“commonSrc”的java源目录,它是另一个项目的主“src”目录的SVN外部目录,但在它被引入的项目中,它只是充当另一个文件夹(正如您所经历的那样) )。
我从来没有真正喜欢过这种方法,并且不会推荐它,除非您只有一个/两个模块。
为了执行您尝试使用 SVN 执行的操作,您可能必须单独签出每个项目,并使用项目属性中的“模块依赖项”在 Eclipse 中创建正确的依赖项。您也许能够提交这些项目文件,以便下一个人不必重新链接它们。
Subversion externals simply allows you to take files from one part of the repository and bring them in under a folder in your local checkout. At my last company, we had a java source directory that called "commonSrc" that was an SVN External for another project's main "src" directory, but in the project it was brought into, it simply acted as another folder (as you are experiencing).
I never really liked that method and wouldn't recommend it unless you have only one/two modules.
In order to do what you are trying to do with SVN, you might have to checkout each project separately, and use "Module Dependencies" in the project's properties to create the proper dependencies in Eclipse. You might be able to commit these project files so that the next person doesn't have to re-link them.
如果有人需要这个,这是我发现的:
http://vpms.de.csc.com/projectset /
&
http://www.polarion.org/index.php?page=download& ;project=subversive
或
http://www.giniality.com/old/update /projectset/
用于 Subversion + 项目集集成。
无需破坏您的项目集。在 Eclipse 中安装集成插件后,您所需要做的就是将源从 CVS 服务器更改为 SVN。
In case anyone needs this, here's what I found:
http://vpms.de.csc.com/projectset/
&
http://www.polarion.org/index.php?page=download&project=subversive
OR
http://www.giniality.com/old/update/projectset/
for Subversion + Project Set integration.
There is no need to break your project set. Once you have the integration plugins installed in Eclipse, all you need to do is change the source from the CVS server to SVN.