----- Original Message -----
From: "Ara Abrahamian" <[EMAIL PROTECTED]>
To: "'Vincent Harcq'" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Friday, March 15, 2002 3:49 AM
Subject: RE: [Xdoclet-devel] SubSubTask, nooo you're kidding
> > It will also be nice that EjbDocletTask itself would be/have a
> container
> > of subtasks, etc...
> > This will avoid to change it when adding new vendors ;)
>
> Not possible currently because of the way Ant's introspection works.
> Erik came up with a good solution for this limitation for Ant2, but Pete
> didn't like it :o) I'm sure we'll anyway have this feature of being
> ultra-dynamic in Ant2.
Actually my solution (DynamicConfigurator) was for Ant 1.x.
> > EjbDocletTask extends DocletTask extends Task (the Ant one)
> > EjbDocletTask has ONE SubTaskContainer called
> > EjbDocletSubTask that
> > has many SubTaskContainer (extends SubTask) : jboss,
> > orion, ...
> > and many SubTask : session, entitycmp, ...
> > JBossSubTask extends SubTaskContainer
> > JawsSubTask extends SubTask
> > JBossSubTask has many SubTask : jaws, jbosscmp, jboss
>
> Looks good but again we hit the wall of Ant. What you're describing
> means:
> <ejbdoclet>
> <subtaskcontainer>
> <session/>
> <blabla/>
> </subtaskcontainer>
> </ejbdoclet>
>
> So to Ant can configure the subtasks this way.
>
> Of course your solution is great, we don't want to have EjbDocletTask
> and AntlessEjbDocletTask, etc. I think the best solution for now is to
> have an GenericEjbDocletTask which is not dependent on Ant and derives
> from GenericDocletTask (or whatever you call it) and define
> EjbDocletTask which derives from GenericDocletTask but works with Ant
> and then maybe a CommandLineDocletTask or stuff like that. Anyway, I
> know it's ugly :o) that's why we need a better more pluggable
> introspection code in Ant.
But you could still have:
<ejbdoclet>
<container classname="com.blah.foo.OurSubTaskContainer">
</container>
</ejbdoclet>
The dilemma is that within <container> you'd have to have a known
well-defined set of sub-elements. Definitely far from ideal and quite
clunky compared to how it should be.
Erik
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel