Differences between compile, make, and build
Original Works are allowed to be reproduced. During reprinting, be sure to mark them as hyperlinks.Article
Original Source, Author information and this statement. Otherwise, legal liability will be held.Http://lavasoft.blog.51cto.com/62575/436216
Java development tools generally have three menu items: compile, make, and build. The functions are similar but different. Compile Source code Convert to Executable Code . You need to specify the source file and the file path (output directory) for compiling and output ). Java compilation will compile Java into a class file, and copy non-java files (generally resource files, comparison files, XML, txt, poperties, and other files) to the compilation output directory, and maintain the directory hierarchy of the source folder. In the integrated development environment of Java, for example, eclipse and idea, there are usually three compilation-related options: compile, make, and build. The most basic functions of these three options are to complete the compilation process. However, there are major differences. The differences are as follows: 1. Compile: only compile the selected target, no matter whether or not it has been compiled. 2. Make: compile selected targets, but make only compiles the files that have changed in the previous compilation, reducing repetitive work and saving time. (This does not need to be considered if the check is not changed. Ide will fix this internally.) 3. Build: Completely recompile the entire project, whether or not it has been compiled. The build process usually generates release packages. This depends on the IDE configuration. Build is rarely used in practice, because it is basically not used during development, generally, Ant and other tools are used for release and production. Build takes a long time because it requires compilation and packaging.
This article is from"Fuyan"Blog, please be sure to keep this sourceHttp://lavasoft.blog.51cto.com/62575/436216