Bug 208158 - Clicking on an Ant task should not result in the project being built
Summary: Clicking on an Ant task should not result in the project being built
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 3.3.1   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Platform-Ant-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-30 19:55 EDT by Mike C CLA
Modified: 2007-10-30 22:48 EDT (History)
2 users (show)

See Also:


Attachments
Progress Bar on Eclipse showing project being built before ant task run (19.00 KB, image/png)
2007-10-30 19:55 EDT, Mike C CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike C CLA 2007-10-30 19:55:38 EDT
Created attachment 81671 [details]
Progress Bar on Eclipse showing project being built before ant task run

Build ID: M20071023-1652

Steps To Reproduce:
1. Have an ant file
2. Have an ant task, that builds java source files (e.g. CORBA/RMI/SOAP stub generator)
3. Click on said ant task.
4. Watch project build fail as eclipse tries to build the project before running Ant, and fails because it is missing said stub classes, which would have been generated by the ant task. These stub files are referenced by the rest of the java files in my project.

This feels similar to a chicken and the egg situation. What comes first? 

The bug here is that eclipse tries to build the project before running the ant task. This is incorrect behavior. If I wanted to build my entire project, I would have specified it in the ant task. This behavior prevents my project from compiling at all.


More information:
Suggest an option to build the project before running an ant task, with the default setting off.
Comment 1 Olivier Thomann CLA 2007-10-30 22:36:42 EDT
Move to Platform/Ant
Comment 2 Darin Swanson CLA 2007-10-30 22:48:39 EDT
Thanks for taking the time to log a bug report but this is working as designed.

There is a build before launch attribute that you can configure for your Ant build launch configuration.

Run>External Tools>Open External Tools Dialog...
Select your launch configuration
Go to the Build tab
Uncheck Build before Launch (or configure as you would like per resources).