简体   繁体   English

清理与构建和构建之间的区别?

[英]Difference between clean & build and build?

My understanding of build is that it compiles only the Java files which has been edited from last build and clean build will delete all the class files and compile all the files again. 我对build的理解是,它仅编译从上一个build进行过编辑的Java文件,并且clean build会删除所有的类文件并再次编译所有的文件。 So what is the utility of clean build when build alone can suffice the need of giving me the latest version of class files? 因此,仅在单独构建时就可以满足给我最新版本的类文件的要求吗?

Sometimes there are processes that update the class files or other dependencies that may not be tracked by the build system. 有时,有些进程会更新类文件或其他依赖项,而生成系统可能无法跟踪这些文件。 Other times, a local change outside the build system (eg vi or notepad) that isn't tracked. 其他时间,无法跟踪构建系统外部的本地更改(例如,vi或记事本)。

In either case, it's useful to do a full build before a final checkin or raising an issue. 无论哪种情况,在最终签入或引发问题之前进行完整构建都是很有用的。

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

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