0

我们公司可能很快就会从 CVS 迁移到 Subversion。这给我们带来了一个问题,我正在努力解决这个问题。

对于 CVS 和 Eclipse,我们能够使用团队项目集文件来收集各种模块并一起检查它们 (http://vpms.de.csc.com/projectset/)。这使得管理项目变得非常容易,因为不需要记住项目中的每个模块。

但是,项目集不支持 SVN。我知道 SVN 有一个“外部”属性,它几乎(或可能完全)做同样的事情。我试过这个。现在,对于问题:

当我在 eclipse 中使用 externals 属性和 checkout 2 个模块时,它们的 C/C++ 项目属性丢失了,所以我不能右键单击它们说“构建项目”或“清理项目”。在 Eclipse 中,它们似乎是包含文件的文件夹。

我在这里缺少什么吗?

编辑 当我分别签出每个模块时,它们会作为项目签出,因此它们确实有单独的 .project/.cproject/settings 东西

4

3 回答 3

1

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.

于 2011-03-29T02:11:03.263 回答
1

您忘记将 Eclipse 项目元数据放入源代码控制系统。确保所有以“.”开头的文件 在项目根目录中将其与 .settings 目录的全部内容一起放入。

于 2011-03-28T21:37:02.723 回答
0

如果有人需要这个,这就是我发现的:

http://vpms.de.csc.com/projectset/

&

http://www.polarion.org/index.php?page=download&project=subversive

或者

http://www.giniality.com/old/update/projectset/

用于 Subversion + Project Set 集成。

无需破坏您的项目集。一旦您在 Eclipse 中安装了集成插件,您所需要做的就是将源代码从 CVS 服务器更改为 SVN。

于 2011-05-02T19:32:09.400 回答