有没有一种简单的自动方法来找出与Delphi项目相关的所有源文件? [英] Is there any simple automated way of finding out all the source files associated with a Delphi project?

查看:95
本文介绍了有没有一种简单的自动方法来找出与Delphi项目相关的所有源文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我喜欢在发布版本时备份项目的源代码集.我使用GExperts项目备份,该备份似乎将项目管理器中的所有文件收集到ZIP文件中.您也可以向该文件集添加任意文件,但是我始终意识到我并不一定要拥有所有文件.除非我特别研究了uses子句,并将我拥有源代码的所有单元添加到项目中,否则我将永远无法确保存储重新创建可安装/可执行文件所需的所有文件.

I like to backup up the source code set for a project when I release a version. I use GExperts project backups, which seems to gather up all the files in the project manager into the ZIP file. You can also add arbitrary files to this file set, but I'm always conscious of the fact that I haven't necessarily got all the files. Unless I specifically go though the uses clauses and add all the units I have sources for to the project, I'll never be sure of storing all the files necessary to recreate the installable/executable.

我曾考虑过要滚动一个应用程序来遍历一个项目,跟踪所有使用的单元并查看所有搜索路径,查看是否有可用于该单元的源文件,并构建要备份的文件列表这样,但是嘿-也许有人已经完成了工作?

I've thought about rolling an app to traverse a project, following all the units used and looking down all the search paths and seeing if there is a source file available for that unit, and building a list of files to back up that way, but hey - maybe someone has already done the work?

推荐答案

您应该(强烈建议)研究版本控制.

You should (highly recommend) look into Version Control.

例如SVN(颠覆),CVS

这将允许您控制所有源代码的修订版.它将允许您添加或删除源文件,回滚合并以及与管理项目源代码有关的所有其他好处.

This will allow you to control revisions of all of your source. It will allow you to add or remove source files, roll back merge and all other nice things related to managing project sources.

这将节省您a $%#的一天.

This WILL save your a$%# one day.

这篇关于有没有一种简单的自动方法来找出与Delphi项目相关的所有源文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆