You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by je...@apache.org on 2002/09/23 14:02:18 UTC

cvs commit: xml-forrest/src/resources/skins/xml-apache-site/images add.jpg fix.jpg remove.jpg update.jpg

jefft       2002/09/23 05:02:18

  Modified:    .        build.build.xml status.xml
  Added:       src/resources/images add.jpg fix.jpg remove.jpg update.jpg
  Removed:     src/documentation/resources/images add.jpg remove.jpg
                        update.jpg
               src/resources/skins/avalon-site/images add.jpg remove.jpg
                        update.jpg
               src/resources/skins/basic/images add.jpg remove.jpg
                        update.jpg
               src/resources/skins/jakarta-site/images add.jpg remove.jpg
                        update.jpg
               src/resources/skins/xml-apache-site/images add.jpg fix.jpg
                        remove.jpg update.jpg
  Log:
  Remove changes images from skins (they weren't used their anyway), and put them
  all in src/resources/images, where they are made available from the sitemap
  path "images/*".
  Images in src/resources/images are overridden by identically named images in
  ${project.home}/src/documentation/resources/images.
  
  Revision  Changes    Path
  1.8       +6 -0      xml-forrest/build.build.xml
  
  Index: build.build.xml
  ===================================================================
  RCS file: /home/cvs/xml-forrest/build.build.xml,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- build.build.xml	23 Sep 2002 07:47:41 -0000	1.7
  +++ build.build.xml	23 Sep 2002 12:02:18 -0000	1.8
  @@ -252,6 +252,12 @@
         <fileset dir="${resource.dir}/schema"/>
       </copy>
   
  +    <!-- Copy default image files. These may be overridden by identically named
  +    files in ${project.home}/src/documentation/resources/images. -->
  +    <copy todir="${bare-context.dir}/resources/images" >
  +      <fileset dir="${resource.dir}/images"/>
  +    </copy>
  +
       <!-- Copy Cocoon configuration and sitemap -->
       <copy todir="${bare-context.dir}">
         <fileset dir="${resource.dir}/conf">
  
  
  
  1.16      +4 -0      xml-forrest/status.xml
  
  Index: status.xml
  ===================================================================
  RCS file: /home/cvs/xml-forrest/status.xml,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- status.xml	23 Sep 2002 09:49:44 -0000	1.15
  +++ status.xml	23 Sep 2002 12:02:18 -0000	1.16
  @@ -99,6 +99,10 @@
   
     <changes>
      <release version="0.1" date="2002">
  +    <action dev="JT" type="fix" context="build">
  +     "Change History" images (update.jpg, add.jpg etc) are now provided by
  +     default by Forrest (in images/), and need not be supplied by user projects.
  +    </action>
       <action dev="JT" type="add" context="build">
        User projects can now add custom classes and jars to Forrest doc builds.
        Useful for custom sitemap components, or overriding Forrest-provided jars.
  
  
  
  1.1                  xml-forrest/src/resources/images/add.jpg
  
  	<<Binary file>>
  
  
  1.1                  xml-forrest/src/resources/images/fix.jpg
  
  	<<Binary file>>
  
  
  1.1                  xml-forrest/src/resources/images/remove.jpg
  
  	<<Binary file>>
  
  
  1.1                  xml-forrest/src/resources/images/update.jpg
  
  	<<Binary file>>
  
  

Re: Use of src/resources/*

Posted by Jeff Turner <je...@apache.org>.
On Mon, Sep 23, 2002 at 10:51:39PM +0200, Marc Portier wrote:
> in favour:
> - it is as easy as hell,
> - it spreads the forrest-line of thinking even more...
> 
> caveats:
> - it makes this layout part of our 'public interface', people 
> will start depend on it (but some probably already do)
> - imposes structure on project files (people might resent)
> 
> the go-between could be in more properties (or config files)
> ${project.conf-dir}
> ${project.img-dir}
> ${project.schema-dir}
> ${project.xsl-dir}
> after all, this is an ant thing, right?

Currently forrest.build.xml does take this approach, where every
directory type is named by a property. I'm beginning to think it's a
mistake though. Simple example: if a user wants the structure:

/xdocs
/xdocs/images

A simplistic mapping to properties would give:

${project.xdocs-dir} = /xdocs
${project.images-dir} = /xdocs/images

But that's no good, because the images/ dir would be copied as part of
xdocs.

Also, rearranging the directories can break user's assumptions. Say that
/xdocs/index.xml has an image link, <img href="images/hello.gif"/>. If we
go and copy ${project.images-dir} to build/tmp/context/resources/images,
that's going to stuff up the user's links.

Yet another reason is that it limits the types of resources the user can
have. Imagine I write a DVSLTransformer, and want to store DVSL files in
src/documentation/resources/dvsl. It can't be done with the properties
approach.


The only workable alternative I can see is to take a hands-off approach.
Say, "we don't care what your dir structure is. Just point us to your
sitemap and a base directory, and we'll build a webapp from it". Not sure
how it would work though..

Just RTs.


--Jeff

> together with them defaulting to the dirs you mentioned...
> 

Re: Use of src/resources/*

Posted by Marc Portier <mp...@outerthought.org>.
in favour:
- it is as easy as hell,
- it spreads the forrest-line of thinking even more...

caveats:
- it makes this layout part of our 'public interface', people 
will start depend on it (but some probably already do)
- imposes structure on project files (people might resent)

the go-between could be in more properties (or config files)
${project.conf-dir}
${project.img-dir}
${project.schema-dir}
${project.xsl-dir}
after all, this is an ant thing, right?

together with them defaulting to the dirs you mentioned...

-marc=

Jeff Turner wrote:
> Hi,
> 
> A little proposal, formalizing something that already almost exists..
> 
> In Forrest, say we have the following directories:
> 
> xml-forrest/src/resources/conf
> xml-forrest/src/resources/images      (just added)
> xml-forrest/src/resources/schema 
> xml-forrest/src/resources/stylesheets (hypothetical)
> 
> 
> How about we say that projects can have a mirrored set of directories:
> 
> src/documentation/resources/conf
> src/documentation/resources/images
> src/documentation/resources/schema
> src/documentation/resources/stylesheets
> 
> And in the final webapp or docs, the two sets are merged together, with
> the user's files taking precedence.
> 
> The purpose of this is to let users override anything they want in
> Forrest. What Forrest provides are just defaults. Eg, if my project
> contains:
> 
> src/documentation/resources/conf/logkit.xconf
> 
> Then it will override the Forrest equivalent.
> 
> 
> More generally, the idea is that the Forrest resource layout should match
> as closely as possible the layout that users will use in their projects.
> 
> 
> --Jeff
> 
> 
> On Mon, Sep 23, 2002 at 12:02:18PM -0000, jefft@apache.org wrote:
> 
>>jefft       2002/09/23 05:02:18
>>
>>  Modified:    .        build.build.xml status.xml
>>  Added:       src/resources/images add.jpg fix.jpg remove.jpg update.jpg
>>  Removed:     src/documentation/resources/images add.jpg remove.jpg
>>                        update.jpg
>>               src/resources/skins/avalon-site/images add.jpg remove.jpg
>>                        update.jpg
>>               src/resources/skins/basic/images add.jpg remove.jpg
>>                        update.jpg
>>               src/resources/skins/jakarta-site/images add.jpg remove.jpg
>>                        update.jpg
>>               src/resources/skins/xml-apache-site/images add.jpg fix.jpg
>>                        remove.jpg update.jpg
>>  Log:
>>  Remove changes images from skins (they weren't used their anyway), and put them
>>  all in src/resources/images, where they are made available from the sitemap
>>  path "images/*".
>>  Images in src/resources/images are overridden by identically named images in
>>  ${project.home}/src/documentation/resources/images.
> 
> 
> 

-- 
Marc Portier                            http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
mpo@outerthought.org                              mpo@apache.org


Use of src/resources/*

Posted by Jeff Turner <je...@apache.org>.
Hi,

A little proposal, formalizing something that already almost exists..

In Forrest, say we have the following directories:

xml-forrest/src/resources/conf
xml-forrest/src/resources/images      (just added)
xml-forrest/src/resources/schema 
xml-forrest/src/resources/stylesheets (hypothetical)


How about we say that projects can have a mirrored set of directories:

src/documentation/resources/conf
src/documentation/resources/images
src/documentation/resources/schema
src/documentation/resources/stylesheets

And in the final webapp or docs, the two sets are merged together, with
the user's files taking precedence.

The purpose of this is to let users override anything they want in
Forrest. What Forrest provides are just defaults. Eg, if my project
contains:

src/documentation/resources/conf/logkit.xconf

Then it will override the Forrest equivalent.


More generally, the idea is that the Forrest resource layout should match
as closely as possible the layout that users will use in their projects.


--Jeff


On Mon, Sep 23, 2002 at 12:02:18PM -0000, jefft@apache.org wrote:
> jefft       2002/09/23 05:02:18
> 
>   Modified:    .        build.build.xml status.xml
>   Added:       src/resources/images add.jpg fix.jpg remove.jpg update.jpg
>   Removed:     src/documentation/resources/images add.jpg remove.jpg
>                         update.jpg
>                src/resources/skins/avalon-site/images add.jpg remove.jpg
>                         update.jpg
>                src/resources/skins/basic/images add.jpg remove.jpg
>                         update.jpg
>                src/resources/skins/jakarta-site/images add.jpg remove.jpg
>                         update.jpg
>                src/resources/skins/xml-apache-site/images add.jpg fix.jpg
>                         remove.jpg update.jpg
>   Log:
>   Remove changes images from skins (they weren't used their anyway), and put them
>   all in src/resources/images, where they are made available from the sitemap
>   path "images/*".
>   Images in src/resources/images are overridden by identically named images in
>   ${project.home}/src/documentation/resources/images.