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

Bug 73637

Summary: CodeAssist for <fail> task makes incorrect suggestions
Product: [Eclipse Project] Platform Reporter: Darin Swanson <Darin_Swanson>
Component: AntAssignee: Luc Bourlier <eclipse>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: 3.1 M2   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Darin Swanson CLA 2004-09-09 19:55:44 EDT
Given the following Ant target fragment, CodeAssist makes incorrect 
suggestions 
when using the <fail> task:

  <target name="GoodbyeWorld">
     <fail
  </target>


Following "<fail ", code assist suggests:

  loops
  source
  id
  duration

We are picking up the nested fail element of the sound task.
We need to modify the dtd so that the core "fail" task will have the correct 
suggestions. The sound fail will be incorrect but less likely to be used.
Comment 1 Darin Swanson CLA 2004-09-09 19:56:17 EDT
Workaround for bug 35847.
Comment 2 Darin Swanson CLA 2004-09-09 22:50:09 EDT
Fixed in ant1.6.0.dtd and added test to the CodeCompletionTest so this does 
not regress again.
Comment 3 Darin Swanson CLA 2004-09-09 22:50:22 EDT
Please verify Luc.
Comment 4 Luc Bourlier CLA 2004-09-10 14:24:03 EDT
Verified.
Please update the build notes, Darin S.
Comment 5 Darin Swanson CLA 2004-09-10 15:35:12 EDT
Thanks luc. Build notes updated.