On Thu, 2003-06-26 at 16:17, peter reilly wrote:
> Yep, I realize that getTaskDefinitions returns
> an empty table and that this behaviour is not
> backward compatible.
> 
> The problem is that as tasks are now types, the getTypeDefinitions()
> should now return everything. Current code that use
> getTaskDefinitions also need to to call getTypeDefinitions() to
> get a complete picture (as <typedef/> can be used to currently to define
> tasks). <antstructure> calls both and
> generates <!ELEMENT project (target | %tasks; | %types;)*>
> so to the %types entity would have to exclude definitions in %tasks.
> 
> 
> If this is a problem, I could make a new method
> Project#getAllTypes() that would return the complete set of types,
> and rework Project#getTaskDefinitions to iterate through the table and
> only show the types that are tasks, and Project#getTypeDefinitions to
> do the same for types that are not tasks. 

I have committed this change, except for Project#getAllTypes() ->
ComponentHelper#getAntTable().

<antstructure> now has something sensible for #tasks.

Peter



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to