简体   繁体   English

比较Java项目的版本

[英]Comparing versions of a java project

My developer sent me the source code to the new version of an application that he updated for me. 我的开发人员将源代码发送给了他为我更新的应用程序的新版本。 Is it possible for me to compare the source code from a previous version with this one to see what changes were made? 我是否可以将先前版本的源代码与此版本进行比较,以查看进行了哪些更改? I'm using Eclipse and OSX. 我正在使用Eclipse和OSX。 Thanks in advance. 提前致谢。

In the future, you should look into using a version control system, like SVN (SmartSVN, TortoiseSVN, etc. etc...) This usually has an integrated tool to see differences from one version to the next. 将来,您应该考虑使用版本控制系统,例如SVN(SmartSVN,TortoiseSVN等)。该系统通常具有集成的工具,可以查看一个版本与另一个版本之间的差异。 For now, something like BeyondCompare, WinDiff, UNIX command line diff , etc. 现在,像BeyondCompare,WinDiff,UNIX命令行diff等。

要在Eclipse上比较两个文件(或文件夹),请选择两个文件(或文件夹),右键单击任意一个,然后从上下文菜单中选择“ Compare With选项。

You can use a "diff tool" to generate a nicely readable report of differences for you. 您可以使用“差异工具”为您生成清晰易读的差异报告。 See some examples here: http://www.git-tower.com/blog/diff-tools-mac/ 在此处查看一些示例: http : //www.git-tower.com/blog/diff-tools-mac/

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

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