简体   繁体   English

我怎么知道 eclipse 已经构建完成我的项目(禁用自动构建)?

[英]How do I know eclipse has already build complete my project (disabled auto build)?

I have disabled eclipse auto build, So I always manually build my project.我禁用了 eclipse 自动构建,所以我总是手动构建我的项目。

but, it always run silence after the build process if there is no error.但是,如果没有错误,它总是在构建过程后静默运行。 that is NO message shows in console.控制台中没有显示任何消息。

I have used visual studio c++ for many years.我已经使用 Visual Studio C++ 很多年了。 the compiler always show the compiling process to console, that is:编译器总是向控制台显示编译过程,即:

compiling xxxxx.cpp file...正在编译 xxxxx.cpp 文件...
compiling xxxxx.cpp flie complete. xxxxx.cpp 编译完成。
build done.构建完成。

How can I know that the build is complete ?我怎么知道构建完成了?

In your source code dir there should be a classes folder.在您的源代码目录中应该有一个classes文件夹。 I'm a fan of the Details view on windows and there I can see the timestamp for when I did the previous build我喜欢 Windows 上的“详细信息”视图,在那里我可以看到上次构建时的时间戳

In your statusbar in the bottom right corner of the eclipse window all running tasks are shown.在 eclipse 窗口右下角的状态栏中,显示了所有正在运行的任务。

If you don't have any pending tasks, this corner is empty.如果您没有任何待处理的任务,这个角落是空的。 While the compiler work, you see the current task there.当编译器工作时,您会在那里看到当前的任务。

Open Navigator view and check whether output folder(in my case it is bin ) is empty or not.打开导航器视图并检查输出文件夹(在我的情况下是bin )是否为空。 If it is empty then project was cleaned and/or not built yet.如果它是空的,则项目已被清理和/或尚未构建。 If non empty then project was built already BUT latest changes to the source code after build was done were not took effect.如果非空,则项目已经构建,但构建完成后对源代码的最新更改未生效。

If Project > Build Automatically option was disabled then it is your responsibility to build single/all projects(Wherever the changes were made) before you start debugging or running the project in eclipse.如果Project > Build Automatically选项被禁用,那么在开始调试或在 eclipse 中运行项目之前,您有责任构建单个/所有项目(无论在何处进行更改)。

I always make this option enabled.我总是启用此选项。 Build will take less time in my case even tough I have many projects in my workspace as eclipse uses incremental build type.在我的情况下,构建将花费更少的时间,即使我的工作区中有很多项目,因为 eclipse 使用增量构建类型。

Note that:注意:

  1. You can check whether the current build is in progress or not by looking at the bottom right corner status bar as said by @Marcinek.您可以通过查看@Marcinek 所说的右下角状态栏来检查当前构建是否正在进行中。 If it has some message like Building XXX then the build is in progress wait till it completes.如果它有一些像Building XXX这样的消息,那么构建正在进行中,等待它完成。

  2. You can check the output folder of your project by right clicking on the project and selecting Properties option.您可以通过右键单击项目并选择“ Properties选项来检查项目的输出文件夹。 Check the build path configuration here.在此处检查构建路径配置。

  3. If source folder modified time stamp is more than that of output folder time stamp then it indicates that you have to build the project for new changes to take effect.如果源文件夹修改时间戳大于输出文件夹时间戳,则表示您必须构建项目才能使新更改生效。 See below pic见下图

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM