Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 72829 - Ant builders running multiple times
Summary: Ant builders running multiple times
Status: RESOLVED DUPLICATE of bug 71438
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 3.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Ant-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-27 18:26 EDT by Matthew Conway CLA
Modified: 2004-08-31 11:43 EDT (History)
0 users

See Also:


Attachments
project demonstarting bug (3.92 KB, application/octet-stream)
2004-08-27 18:26 EDT, Matthew Conway CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Conway CLA 2004-08-27 18:26:07 EDT
I'm attaching a sample project demonstrating this bug.  Unzip and import the
project, right click on the project and change the selected jre for the builders.

Then dirty/save Foo.java, you'll see that the defined ant builders get run twice
(make the console view visible) - once before the java builder and once after
(jar only gets updated in the one after).

If you remove the first builder, then the remaning builder correctly runs only
once after the java builder.

This is on eclipse 3.0 on linux fedora core 2
Comment 1 Matthew Conway CLA 2004-08-27 18:26:44 EDT
Created attachment 14234 [details]
project demonstarting bug
Comment 2 Darin Swanson CLA 2004-08-27 19:37:23 EDT
What types of builds are your builders set to be trigger on?
Likely duplicate of bug 70650 (fixed in 3.0.1) or bug 71438 (to be fixed in 
3.1 M2). Workaround is described in bug 70650 comment #14.
Comment 3 Matthew Conway CLA 2004-08-31 10:52:11 EDT
Triggering on all build types.
Sounds similar - I'll grab 3.0.1RC1 and see if it fixes me.  If not, I'll try
with one of the 3.1 nightly builds
Comment 4 Matthew Conway CLA 2004-08-31 11:16:15 EDT
Actually, I just tried both patches from bug 70650, and the problem still
exhibits itself with the attached project.
Comment 5 Darin Swanson CLA 2004-08-31 11:29:45 EDT
Thanks for the info.
Correct me if I am wrong, but I believe your test case would indicate 
triggering on autobuild?
Autobuild triggering is covered bug 71438 which we can fix next integration 
build with the changes in Core that were released today.
Comment 6 Matthew Conway CLA 2004-08-31 11:38:57 EDT
Correct - using autobuild - not sure if bug 71438 is completely applicable as by
builders run both before AND after the javabuilder.  But if you say it is, I'll
trust you :)
Might be worth trying the attached project after the fix just to make sure though.

Comment 7 Darin Swanson CLA 2004-08-31 11:43:31 EDT
No that is great :-)
Explaination:
The first autobuild builder gets notified and we run all the builders (don't 
ask)
The java builder runs. Changes things
The first autobuild builder gets notified of the changes, we run all the 
builders

I will mark this as a duplicate and use it as my first test case. Thanks.
If the integration build comes out today, I will try to have the fix in by 
Wednesday 3.1 nights build.

*** This bug has been marked as a duplicate of 71438 ***