On Wed, 27 Jul 2005, Vincent Siveton wrote:
Hi Vincent,
> Hi Kenney,
>
> > Well, I think it should be checked, at least. It's easy to lose oversight
> > with different directories (see maven-site/src/site/*/developers/).
>
> We could advice about duplicate files, something like:
>
> [WARNING] Some files are duplicates in the site directory or in the
> generated-site directory. Review the generation for the following files:
> alpha\index
> ${siteDirectory}\apt\alpha\index.apt
> ${siteDirectory}\xdoc\alpha\index.xml
> alpha\beta\index
> ${siteDirectory}\apt\alpha\beta\index.apt
> ${siteDirectory}\xdoc\alpha\beta\index.xml
> ${generatedSiteDirectory}\xdoc\alpha\beta\index.xml
>
>
> Index file should be unique otherwise an exception is thrown.
Well, almost. ALL files should be unique when generated.
I.e.
src/site/apt/alpha/usage.apt -> generated-sources/site/usage.html
src/site/xdoc/alpha/usage.xml -> generated-sources/site/usage.html
So, not only index files but ALL files!
And since the outcome (what files will be overwritten) will be either
nondeterministic or alphabetically sorted, I think an exception, ERROR
or build failure will suite better.
So either use your [WARNING] output but change that to [ERROR], resulting
in a build failure, OR do something like this:
[WARNING] File src/site/xdoc/alpha/usage.xml not processed because
generated-sources/site/usage.html is already generated from
src/site/apt/usage.xml (with nicer indentation etc..)
>
> Any comments?
Not any more... ;)
>
> Cheers,
>
> Vincent
>
> > -----Original Message-----
> > From: Kenney Westerhof [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, July 26, 2005 9:12 AM
> > To: Maven Developers List
> > Subject: RE: [jira] Closed: (MNG-588) How to handle identical file names
> > in the site structure for the static site generation?
> >
> > On Tue, 26 Jul 2005, Vincent Siveton wrote:
> >
> > Hi Vincent,
> >
> > Well, I think it should be checked, at least. It's easy to lose oversight
> > with different directories (see maven-site/src/site/*/developers/).
> >
> > Perhaps the directories could be merged, and the file extensions determine
> > the type of file it is (or using a 'magic' library) ?
> >
> > -- Kenney
> >
> > > Hi Kenney,
> > >
> > > > How about checking for src/apt/page.apt and
> > > > src/xdoc/page.xml ( i.e. -> page.html )?
> > >
> > > Actually, the exception is only for an index file (ie index.*).
> > >
> > > Do you think that we can do the same thing for all duplicate files?
> > > If you still think it's a good idea, I could implement it.
> > >
> > > Cheers,
> > >
> > > Vincent
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> >
> > --
> > Kenney Westerhof
> > http://www.neonics.com
> > GPG public key: http://www.gods.nl/~forge/kenneyw.key
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
--
Kenney Westerhof
http://www.neonics.com
GPG public key: http://www.gods.nl/~forge/kenneyw.key
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]