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

Bug 51218

Summary: use reflection for code assist when task not in DTD
Product: [Eclipse Project] Platform Reporter: John-Mason P. Shackelford <jpshack>
Component: AntAssignee: Darin Swanson <Darin_Swanson>
Status: RESOLVED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P3    
Version: 3.0   
Target Milestone: 3.0 M8   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description John-Mason P. Shackelford CLA 2004-02-05 02:57:57 EST
While the DTD generated by ant structure gives us what we need to perform code
assist on well-known tasks, it is not sufficient for new tasks which may have
been added via a taskdef. In such cases we should be able to use reflection to
correctly identify supported attribute except where the task uses the the
DynamicConfigurator interface (cf.
http://nagoya.apache.org/gump/javadoc/ant/build/javadocs/org/apache/tools/ant/DynamicConfigurator.html).

It might be worthwhile to explore how antstructure generates the DTD:
http://cvs.apache.org/viewcvs.cgi/ant/src/main/org/apache/tools/ant/taskdefs/AntStructure.java?view=markup
Comment 1 Darin Swanson CLA 2004-03-16 15:30:59 EST
I am going to mark this as a duplicate of just because more users are 
interested in that bug (cc and votes) and the end result is the same.

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