> > Another point: the "old" error/output/... could be
> > ported to configure the
> > redirector.
> > Something like
> > 
> > setError(String err) {
> >     // this.err = err;    // earlier implementation
> >     if (redirector==null) {
> >         redirector = new Redirector();
> >     }
> >     redirector.setError(err);
> > }
> > 
> 
> This part will be interesting, I will have to look at
> everything we have to see where is the proper place to
> hook the JavadocOutputStreams to the Redirector.  But
> this type of challenge should nicely bring to light
> any as-yet-undiscovered weaknesses in the
> RedirectorElement/Redirector design.


This is a very easy way to use new stuff with an old interface.
I used that when playing with nested <fileset>s and porting them
to nested <path>s.
    void addFileset(fs) {
        path = new Path();
        path.addFileset(fs);
        this.addPath(path);
    }

Jan

Reply via email to