简体   繁体   English

在SVN仓库中运行项目

[英]Running a project in svn repository

a little newbie here. 一个小新手。 I just wonder when developing a big java project we always use a svn repository for code sharing but is it possible to run the project in that repository? 我只是想知道,在开发大型Java项目时,我们总是使用svn存储库进行代码共享,但是可以在该存储库中运行项目吗? Or is there any system for java that allows more than one user to develop and test same project in one place? 还是有Java系统允许一个以上的用户在一个地方开发和测试同一项目?

You're thinking about it the wrong way - when a developer works on a project they download what's called a "working copy" of that repository, then run it and make changes / test it on their local computer. 您正在以错误的方式思考-开发人员在项目上工作时,他们会下载该存储库的所谓“工作副本”,然后运行该存储库并在其本地计算机上进行更改/测试。 When they're done, they then "commit" the changes to the repository, where they become available to everyone else. 完成后,他们然后将更改“提交”到存储库,其他人都可以使用它们。

You don't run the project in the repository directly. 您不会直接在存储库中运行项目。

In major IDE's such as Eclipse, Jdeveloper, Netbeans, there is build in functionality for version control. 在主要的IDE(例如Eclipse,Jdeveloper,Netbeans)中,内置了用于版本控制的功能。

So you use your ide to build your app or make changes to it, and using update/commit functionality of the versioning system you have the desired outcome. 因此,您可以使用自己的想法来构建您的应用程序或对其进行更改,并使用版本控制系统的更新/提交功能来获得所需的结果。

The repository only stores your code you cannot run the code from the repository. 存储库仅存储您的代码,而您无法从存储库中运行代码。

If you want to build/test the code centrally then you need a Continuous Integration Server (CI) like Jenkins ( http://jenkins-ci.org/ ) 如果要集中构建/测试代码,则需要像Jenkins( http://jenkins-ci.org/ )这样的持续集成服务器(CI)。

This server can extract the project from svn build it, run the tests (if any) and even deploy it on a server. 该服务器可以从svn中提取项目以构建它,运行测试(如果有)甚至将其部署在服务器上。

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

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