简体   繁体   English

如何实现版本控制客户端说svn作为Java Web服务?

[英]how to implement version-control client say svn as java web-service?

how can I implement SVN/CVS/Mercurial/Git/TFS client as java web-service? 如何将SVN / CVS / Mercurial / Git / TFS客户端实现为Java Web服务? any pointers? 有指针吗? basically I am developing a CMS in which i want to support version controlling. 基本上,我正在开发要支持版本控制的CMS。 But instead of new VC system, i want to support SVC/GIT/Mercurial/CVS/TFS so that it can be used with the existing plug-ins. 但是我想支持SVC / GIT / Mercurial / CVS / TFS,而不是新的VC系统,以便可以与现有插件一起使用。

EDIT: to make it more clear, I am developing an online VCS-client as a part of CMS. 编辑:为了更加清楚,我正在开发在线VCS客户端作为CMS的一部分。 Which should support uploading from popular VCS like SVN/GIT/TFS/CVS. 它应该支持从流行的VCS(例如SVN / GIT / TFS / CVS)上传。 I guess, I need to implement different handlers for different VCS-client. 我想,我需要为不同的VCS客户端实现不同的处理程序。 but the same data should be accessible from supported clients (SVN/GIT...) 但应从受支持的客户端(SVN / GIT ...)访问相同的数据

OK, so I misunderstood your question. 好,所以我误会了你的问题。 To achieve this you have to use one library for each VCS you want to support. 为此,您必须为每个要支持的VCS使用一个库。 For SVN this will be SVNKit , for Git JGit or gitblit (I don't know those two, they are just an example). 对于SVN,这将是SVNKit ,对于Git JGitgitblit (我不知道这两个,它们只是一个例子)。 You have to learn each API to get the data from every VCS. 您必须学习每个API才能从每个VCS获取数据。

In your Java application (website) the UI should provide a browser like component to select a file in the repository. 在Java应用程序(网站)中,UI应提供类似于浏览器的组件,以在存储库中选择文件。 Dependent of the VCS the user choose the appropriate library will be used to interact with the repository. 取决于VCS,用户将选择适当的库与存储库进行交互。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM