简体   繁体   English

Eclipse中的Java Project版本

[英]Java Project versions in Eclipse

When I program I often end up making 5 or 6 different versions so that way if I mess up I can return back to an older version. 编写程序时,我经常会制作5个或6个不同的版本,这样,如果我搞砸了,就可以返回较旧的版本。

In the Eclipse IDE, is there a way I can just click "create new version" or something so I don't have to make an entirely new project and copy and paste the previous source code to the new version I just made? 在Eclipse IDE中,是否可以单击“创建新版本”之类的方法,而不必创建一个全新的项目并将先前的源代码复制并粘贴到我刚创建的新版本中?

Is there any version manager for Eclipse? Eclipse是否有任何版本管理器? If so where can I get it? 如果可以,我在哪里可以得到它?

Have you considered using a version control system , such as Subversion , Mercurial , Git , or CVS ? 您是否考虑过使用SubversionMercurialGitCVS版本控制系统 They are designed for versioning projects without needing to make copies of them. 它们是专为版本控制项目而设计的,无需复制它们。 And to be honest, they do a much better job than any individual can (when used properly) at tracking what changes were made and when. 坦白说,在跟踪所做的更改以及更改的时间方面,他们做得比任何人(当使用得当时)都要好得多。

Something that can be a little quicker to set-up, but potentially less robust to long term use, is to use a service like Dropbox, and set a Dropbox directory as your workspace (provided you aren't working on sensitive code, with personal information, assorted caveats to apply to any cloud-style service). 设置起来可能会更快一些,但对于长期使用来说却可能不那么健壮,那就是使用诸如Dropbox之类的服务,并将Dropbox目录设置为您的工作区(前提是您不使用个人代码来处理敏感代码)信息,适用于任何云样式服务的各种警告)。

Dropbox does have revert options. Dropbox确实具有还原选项。 Of course, in Eclipse you can also copy and paste whole projects. 当然,在Eclipse中,您也可以复制和粘贴整个项目。

Long-term, if you have heavy version control/group work needs, I totally agree with Thomas's solution. 长期而言,如果您有繁重的版本控制/小组工作需求,我完全同意Thomas的解决方案。 But, as a quick and dirty, something like Dropbox works quite well. 但是,由于快捷又脏乱,Dropbox之类的工具效果很好。

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

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