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

后端 未结 5 1358
野的像风
野的像风 2020-12-29 17:43

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

相关标签:
5条回答
  • 2020-12-29 18:21

    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.

    0 讨论(0)
  • 2020-12-29 18:41

    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.

    0 讨论(0)
  • 2020-12-29 18:42

    CTRL-F9

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

    0 讨论(0)
  • 2020-12-29 18:43

    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.

    0 讨论(0)
  • 2020-12-29 18:45

    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...

    0 讨论(0)
提交回复
热议问题