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

Bug 323588

Summary: External tools (Ant) launch config looses project(s) to be built
Product: [Eclipse Project] Platform Reporter: Dani Megert <daniel_megert>
Component: AntAssignee: Michael Rennie <Michael_Rennie>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.6   
Target Milestone: 3.7 M2   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
fix none

Description Dani Megert CLA 2010-08-25 06:36:16 EDT
3.6.

0. create Java project 'P'
1. add an Ant script (or use attached f.xml)
2. select it, Run As > Ant Build...
3. on the 'Build' tab select 'Specific project' and choose 'P'
4. click 'Apply'
5. click 'Close'
6. select it, Run As > Ant Build...
==> dialog shows error: [Build]: No projects specified
Comment 1 Michael Rennie CLA 2010-08-25 10:20:35 EDT
Created attachment 177426 [details]
fix

The problem was that we had some bad logic while trying to compute the project scope from the configuration. 

Specifically we were checking that the project name recovered from the configuration was longer than one char, when it should be checking if it is longer than zero chars
Comment 2 Michael Rennie CLA 2010-08-25 10:25:30 EDT
applied fix to HEAD, and added a note to the smoke tests to test against resources of varying name lengths.
Comment 3 Dani Megert CLA 2010-08-26 02:22:09 EDT
Bundle version update is missing.
Comment 4 Michael Rennie CLA 2010-08-26 10:17:51 EDT
Done. Good catch Dani.
Comment 5 Dani Megert CLA 2010-08-26 10:22:54 EDT
Verified in N20100825-2000 and HEAD.
Comment 6 Dani Megert CLA 2010-08-31 06:02:13 EDT
>Verified in N20100825-2000 and HEAD.
Bundle version was not correct but corrected by Darin by now.