Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

difference between : build and make in Intellij IDEA

For a project JAVA EE in Intellij IDEA, what is the difference between: Rebuild Project and Make Project (in menu Build) ?

Thank you

like image 833
utilisateur Avatar asked Dec 12 '15 16:12

utilisateur


People also ask

What does build in IntelliJ do?

Build command, IntelliJ IDEA compiles all the classes inside your build target and places them inside the output directory. When you change any class inside the build target and then execute the build action, IntelliJ IDEA performs the incremental build that compiles only the changed classes.

What is the difference between build and compile?

These terms are often used interchangeably, but I would differentiate them in the following way: Building is done when preparing an application for release, which includes compiling, packaging, testing, etc. Compiling is done at any time the compiler is involved in translating programming language code to machine code.


1 Answers

You can reference https://www.jetbrains.com/help/idea/2016.2/compilation-types.html

Make Project - Only modified

All the source files in the entire project that have been modified since the last compilation are compiled. Dependent source files, if appropriate, are also compiled. Additionally, the tasks tied to the compilation or make process on modified sources are performed. For example, EJB validation is performed if the corresponding option is enabled on the Validation page. Refer to the section Making Project for details.

Rebuild Project. - All files

All the source files in the project are recompiled. This may be necessary when the classpath entries have changed, for example, SDKs or libraries being used added, removed or altered. Refer to the section Rebuilding Project for details.

like image 50
Joo Young Jung Avatar answered Nov 15 '22 06:11

Joo Young Jung