Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 200204 - Ant does not run on Clean if Build Automatically is set
Summary: Ant does not run on Clean if Build Automatically is set
Status: CLOSED DUPLICATE of bug 352131
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Platform-Ant-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-16 11:22 EDT by Jim Adams CLA
Modified: 2011-07-18 12:51 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jim Adams CLA 2007-08-16 11:22:38 EDT
Build ID: I20070625-1500

Steps To Reproduce:
1. Create a Java Project
2. Add an Ant Builder
3. Edit the default task to do something
By default Build Automatically is on. The Ant task runs the first time the builder is added. Now clean the project. The Ant builder does not run. Turn off Build Automatically. Clean the project and notice that the Ant builder runs.


More information:
I live with Build Automatically turned on so I can see errors get resolved nicely. However there are parts of our build process that must be run with Ant. Having that portion run on Clean is much nicer than having to invoke an Ant Build every time. Plus, with a Clean, generated files are removed. If the Ant build is responsible for putting them back then you are screwed.
Comment 1 Michael Rennie CLA 2011-07-18 12:09:58 EDT
Marking as a dupe of bug 352131, it has the same reported problem and a project to reproduce the reported issue.

*** This bug has been marked as a duplicate of bug 352131 ***
Comment 2 Jean-Philippe Gariepy CLA 2011-07-18 12:51:34 EDT
By "on a clean", do you mean "during a clean" or "after a clean" which a two different options of the "Targets" configuration tab of the Ant builder.