将目录与 Netbeans 中的内容进行比较

发布于 2024-08-30 01:36:09 字数 172 浏览 5 评论 0原文

几天前,我将一些包含项目配置的文件夹复制到一个新项目中,并进行了一些修改(项目名称、路径等)。 几天后,源配置目录发生了变化,我想知道如何在两个项目中区分该文件夹以在新项目中应用该更改。

如果我选择源文件,然后选择新文件并在 Netbeans 中选择 diff 选项 - 它可以工作。但是可以在整个文件夹中制作吗?

I duplicated some folder with project's config to a new project a few days ago and made there some modifications (project name, paths, etc).
After few days a source config dir has changed and I am wondering how to diff that folders in 2 projects to apply that changes in new project.

If I select source file and then new file and select diff option in Netbeans - it works. But is it possible to make in on whole folder ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

南汐寒笙箫 2024-09-06 01:36:09

我也在 NetBeans 中寻找文件夹比较。我找到了 http://kenai.com/projects/netbeans-dircomp/downloads。一会儿我会尝试一下...

I was looking for folder compare in NetBeans too. I found http://kenai.com/projects/netbeans-dircomp/downloads. I'll try that in a little while...

爱的故事 2024-09-06 01:36:09

NetBeans 没有该功能。

您可能可以根据 find 等编写一个 shell 脚本来执行此操作。这个 搜索“diff a 目录树” 看起来有一些很好的答案。

我建议您将源代码置于某种源代码控制系统下,例如 CVS、SVN 或 Mercurial。

您可以使用这些工具在制作副本的日期和“现在”之间生成原始项目配置的差异...然后将该差异应用到项目的副本上...

或者,您可以应用一些用于处理第三方源的 CVS 手册中描述的策略。我认为 svn 和 Mercurial 可以使用相同的概念。

NetBeans does not have that feature.

You could probably hack together a shell script that would do this, based on find, etc. This search for 'diff a directory tree' looks like it has some good answer.

I would recommend that you put your source code under some sort of source code control system like CVS, SVN or Mercurial.

You could use those tools to generate a diff of the original project's config between the date you made the copy and 'now'... and then apply that diff onto the copy of the project...

Or, you could apply some of the strategies described in CVS manual for handling third party sources. I think the same concepts are available for svn and mercurial.

疏忽 2024-09-06 01:36:09

这是一个非常老的问题,但 Netbeans 现在确实有 CVS 功能。

转到“工具”>“插件”并找到 CVS 并安装。

之后,右键单击目录,转到工具,然后应用差异补丁就很容易了。这将修补该目录中 diff 文件中的所有文件。简单流畅。

A very old question, but Netbeans does have a CVS feature now.

Go to Tools>Plugins and find CVS and install.

After that it is very easy to right click a directory, go to tools, then apply diff patch. That will patch all files in the diff file in that directory. Simple and smooth.

孤单情人 2024-09-06 01:36:09

您还可以使用
总指挥官
比较文件夹和所有文件类型
在这种情况下真是太神奇了

And You Can Also Use The
Total Commander
to Compare the folder and all type off your files
Its amazing in this situation

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文