Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 48225

Summary: "No targets selected for build" message at wrong time.
Product: [Eclipse Project] Platform Reporter: Eric Schlenz <eschlenz>
Component: AntAssignee: Darin Swanson <Darin_Swanson>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Eric Schlenz CLA 2003-12-06 18:28:53 EST
Eclipse 3.0 M5 Build 12/5/2003

The "No targets selected for build" message in the ANT launch (Targets tab) 
dialog is showing up at when, in fact, I do have a target selected.

To reproduce:

1) Have an ANT script in your project (I have a Java Project) that has a 
default target defined (this ensures this target is preselected when the launch 
dialog comes up).
2) Make sure there aren't any configurations stored in Eclipse yet for that 
particular ANT script.
3) Right click on the ANT script and hit "Run Ant".
4) Click the "Targets" tab.
5) Uncheck the default target (was preselected for my case).
NOTE: At this point you don't have the "No targets...." message, but should.
6) Check a target (at this point the one you click should be the only one 
checked).
NOTE: At this point you DO see the "No targets..." message, but shouldn't since 
you have one selected.
7) Check another target (so that you have 2 checked), or uncheck the lone 
target and see the message return.

It seems like the code that displays the message is triggered by only one 
target being selected, with the exception of the initial state it is in once 
the dialog first comes up.
Comment 1 Darin Swanson CLA 2003-12-06 22:15:07 EST
I have quite extensively reworked this code since M5...I will double check 
that this test case is handled correctly.
Comment 2 Darin Swanson CLA 2003-12-08 14:09:11 EST
As expected, this was fixed with the fix/rework for bug 47289.

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