Bug 498501 - External Ant Builder refresh doesn't detect re-creation of source directory
Summary: External Ant Builder refresh doesn't detect re-creation of source directory
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.6   Edit
Hardware: PC Windows NT
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Jay Arthanareeswaran CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-26 11:04 EDT by Nikolay Metchev CLA
Modified: 2022-09-18 14:57 EDT (History)
2 users (show)

See Also:


Attachments
example workspace (21.92 MB, application/x-zip-compressed)
2016-07-26 11:04 EDT, Nikolay Metchev CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nikolay Metchev CLA 2016-07-26 11:04:06 EDT
Created attachment 263317 [details]
example workspace

I have attached a workspace which hopefully can be used to demonstrate the problem.

In the workspace there is a simple build.xml ant file.
The Test eclipse project is configured with an external Ant Builder to be run as part of the build and the clean.

The clean will delete the src/generated folder
The build will simply generate a very simple java file called GeneratedClass.java in the src/generated/java/p folder.

The external ant builder is configured to trigger whenever Trigger.txt is modified. The external ant builder is also configured to refresh the src folder and all its subfolders.

To reproduce the problem you have to run "ant clean" outside of eclipse.
This will delete the src/generated folder. This will correctly put the Test project in the error state saying missing source folder src/generated/java.

However if you then from within eclipse modify Trigger.txt which will in turn trigger the external ant builder to run and re-created the src/generated folder the eclipse error state doesn't go away.
The src/generated folder does correctly re-appear in the project view but the error in the problem view doesn't go away. Eclipse still complains that the src/generated/java folder is missing.
Comment 1 Jay Arthanareeswaran CLA 2016-07-27 00:49:50 EDT
My guess is we don't do classpath validation that would have flushed the classpath markers. Looks like we don't take care of such changed that happen outside Eclipse.
Comment 2 Manoj N Palat CLA 2018-05-21 06:07:14 EDT
Bulk move out of 4.8
Comment 3 Eclipse Genie CLA 2020-08-31 05:11:03 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 4 Eclipse Genie CLA 2022-09-18 14:57:28 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.