1

如何集成 CVS 和 OpenCMS,特别是维护属性和元数据?

我在本地机器上设置了 OpenCMS 进行开发,以及连接到 CVS 的 Eclipse。我可以在 OpenCMS 和 Eclipse 之间同步文件并将它们签入 CVS,效果很好——除了我不知道有任何方法可以对属性和其他元数据进行版本控制。

4

2 回答 2

0

One question: how do you sync the OpenCms files? Are you talking about the VFS (virtual file system = mysql data files)? Because in OpenCms, all content files reside in the VFS, not on the real file system (RFS).

You are talking about the content files of your OpenCms site, right? Not the OpenCms core source files that you're using to recompile the OpenCms core jar, I assume.

One idea is to map a drive to the VFS using WebDAV, but I found it's not very stable and reliable. With that, you would usually also get the properties in a separate folder.

于 2011-09-02T00:09:48.887 回答
0

如果您使用 maven,则可以使用该org.synyx:maven-opencms插件。使用它,您可以在 IDE 中开发模块的 VFS 内容,包括属性,而不是直接在 OpenCms 中。该插件使您能够将其导入到具有 maven 目标的 OpenCms 中。如果你不在 VF 中开发,你可以把你的东西放到 CVS 中。

maven 插件基于一些 ant 任务,所以如果你不喜欢 maven,也可以使用 ant。该任务可以从http://www.eurelis.com/fr/downloads/opencms-ant-task/下载

于 2012-09-23T23:32:55.483 回答