gpt4 book ai didi

java - 想法 : what is the difference between Build and Build Project?

转载 作者:行者123 更新时间:2023-11-30 09:59:47 25 4
gpt4 key购买 nike

在 Intellij IDEA 中,在运行配置(应用程序类型,在 Java 项目中)中,您可以配置任务以在启动前执行。如下图所示,您可以选择“构建”和“构建项目”等。它们有什么区别?

enter image description here

阅读关于 compilation types 后在 IDEA 中,我知道这里的构建做了一个make,它编译自上次以来更改的类并链接它们。所以我猜测 Build Project 在整个项目的范围内这样做,但是我无法弄清楚 Build 在什么范围内运行。

最佳答案

来自 Intellij help > Run/Debug Configurations Dialog > Before Launch

Build: select to compile the specified module. The Build Module command will be executed. If an error occurs during compilation, IntelliJ IDEA won't attempt to start the run/debug configuration.

Build Project: select to compile the entire project. The Build Project command will be executed. If an error occurs during compilation, IntelliJ IDEA won't attempt to start the run/debug configuration.

关于java - 想法 : what is the difference between Build and Build Project?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58621202/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com