forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicola Ken Barozzi" <nicola...@apache.org>
Subject Re: Skins all over the built site
Date Tue, 28 May 2002 09:27:16 GMT
From: "Piroumian Konstantin" <KPiroumian@protek.com>



> > From: Nicola Ken Barozzi [mailto:nicolaken@apache.org]
> > > >
> > > > > Is it intended to have copy of page.css and images in all the
> > > > > directories
> > > > > after the build?
> > > >
> > > > It's a deficiency of the Cocoon crawler. Even worse: the
> > > > crawler does 3
> > > > (three!) separate 'requests' of each page. Since we
> > depend heavily on
> > > > the CLI interface of Cocoon and it seems one of the
> > lesser known/used
> > > > parts of this wonderful environment, we could live with
> > > > someone willing
> > > > to 'own' this piece of code. Volunteers?
> > >
> > > Isn't it possible to set filters on the crawler, like:
> > exclude="**.jpg"
> > and
> > > copy all the needed resources using Ant? I'll take a look
> > at it as time
> > > allows.
> >
> > -1 Let's fix this in Cocoon itself, since it's a Cocoon CLI "bug".
>
> Is it really a bug? Looking at the source:
>
>     public SimpleCocoonCrawlerImpl() {
>         // by default include everything
>         includeCrawlingURL = null;
>         // by default exclude common image patterns
>         excludeCrawlingURL = null;   // <==== will changing this to
> something like "*.{jpg|gif|png|css}" do the work?
>     }
>
> If only this is the problem then I'll fix it.
> What is the desired behavior? Is it Ok if the images and css files are not
> copied at all?

The desired behaviour is that resources are copied only once.

IE, is /images/my.jpg and coom/images/my.jpg both need my.jpg, the file is
copied only once and referenced there from all links.

> >
> > > I don't care about 3 requests as long as it doesn't take
> > much time to
> > > rebuild the docs.
> >
> > Which is the second point to fix : make CLI not regenerate
> > docs that are
> > already ok.
>
> I'll investigate this problem too.

:-)

--
Nicola Ken Barozzi                   nicolaken@apache.org
            - verba volant, scripta manent -
   (discussions get forgotten, just code remains)
---------------------------------------------------------------------


Mime
View raw message