6

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

Thank you

utilisateur
  • 91
  • 1
  • 3

2 Answers2

9

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.

Joo Young Jung
  • 116
  • 1
  • 5
0

Rebuild recompiles all .class files whether they are out of date or not. Make just recompiles out of date .class files.

JJF
  • 2,681
  • 2
  • 18
  • 31
  • My experience do not show this.Do you have any reference for this idea? I could not find any references that approve your claim. – E A Jul 19 '16 at 05:02
  • References? Not sure I know what you mean. Go into the directory where your .class files get built and try it for yourself. Change one file and say make project. Only the file you changed is rebuilt. Say rebuild project and all .class files regenerated. – JJF Jul 25 '16 at 17:16