Can I see the exact commands IntelliJ uses to build a java project?

JavaIntellij Idea

Java Problem Overview


Can I see the exact commands IntelliJ uses to build a java project?

Java Solutions


Solution 1 - Java

IDEA is not running java binary, so there is no way to see the commands. Instead, IDEA uses Java compiler API directly. If you want a raw representation of what is done to build the project, you can use Build | Generate Ant build. Examine the build file or run it from the command line via Ant to see what happens and what options/commands are invoked.

Solution 2 - Java

Look in ~/Library/Logs/IdeaIC13/build-log. You can turn on ALL debugging in build-log.xml in this directory. When you build inside IDEA, it writes a log to build.log in this directory.

Solution 3 - Java

If you run a certain run configuration, check the output console (Ctrl+0) For example, it shows something like:

"C:\Program Files\Java\jdk1.5.0_22\bin\java" -Didea.launcher.port=7532 "-Didea.launcher...

Process finished with exit code 0

The first line is the command for building and running the module...

Solution 4 - Java

I don't think you can get the output of a build directly, but you can view and edit the compiler options IntelliJ uses, in the Compiler tab of the Settings dialog.

Solution 5 - Java

CTRL-F9

for all key commands you can check ( and print) the keymap, its available in hte help tab.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionBlankmanView Question on Stackoverflow
Solution 1 - JavaCrazyCoderView Answer on Stackoverflow
Solution 2 - Javauser674669View Answer on Stackoverflow
Solution 3 - JavaKr1zView Answer on Stackoverflow
Solution 4 - JavaAviView Answer on Stackoverflow
Solution 5 - JavaPeterView Answer on Stackoverflow