Differences between compile, make, and build

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.