For a project JAVA EE in Intellij IDEA, what is the difference between: Rebuild Project and Make Project (in menu Build) ?
Thank you
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With