You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by "Thorsten Scherler (JIRA)" <ji...@apache.org> on 2006/02/12 13:38:27 UTC

[jira] Created: (FOR-815) Refactor resource.xmap from the dispatcher to themes.xmap

Refactor resource.xmap from the dispatcher to themes.xmap
---------------------------------------------------------

         Key: FOR-815
         URL: http://issues.apache.org/jira/browse/FOR-815
     Project: Forrest
        Type: Sub-task
  Components: Skins (general issues), Core operations, Dispatcher (aka views)  
    Reporter: Thorsten Scherler


On FF we discoverd more hardcoded links to the skinconf.xml. We need to remove this links and refactor all of resources.xmap because it is way too verbose.

Following quotes are taken from http://svn.apache.org/viewcvs.cgi/*checkout*/forrest/events/forrest-friday/20060210-log.txt

[13:56] diwaker: X [0]                                  images/project.png    BROKEN: /home/diwaker/software/forrest/build/plugins/org.apache.forrest.plugin.internal.dispatcher/.../images/project.png (No such file or directory)
[13:56] tscherler: k will try
[13:57] xley: Yep that is the svg to png stuff. In the skins, it read skinconf.xml to get the project name and group name.
[13:58] tscherler: :(
[13:59] tscherler: but should not
...
[14:11] tscherler: need to refactor
[14:11] tscherler:       <map:match pattern="**.png">
[14:11] tscherler:         <map:select type="exists">
[14:11] tscherler:           <map:when test="{project:content.xdocs}/{1}.svg">
[14:11] tscherler:             <map:call resource="pipe-aggregate-svg2png-resource">
[14:11] tscherler:               <map:parameter name="path" 
[14:11] tscherler:                 value="{project:content.xdocs}/{1}.svg" />
[14:11] tscherler:             </map:call>
[14:12] tscherler:           </map:when>
[14:12] tscherler:           <map:when test="{project:content.xdocs}/{1}.aart">
[14:12] tscherler:             <map:generate type="asciiart-svg" 
[14:12] tscherler:               src="{project:content.xdocs}/{1}.aart" />
[14:12] tscherler:             <map:call resource="transform-project2text"/>
[14:12] tscherler:             <map:serialize type="svg2png" />
[14:12] tscherler:           </map:when>
[14:12] tscherler:           <map:otherwise>
[14:12] tscherler:             <map:read src="{project:content.xdocs}/{1}.png" 
[14:12] tscherler:               mime-type="image/png" />
[14:12] tscherler:           </map:otherwise>
[14:12] tscherler:         </map:select>
[14:12] tscherler:       </map:match>
[14:12] tscherler: but right now will have to go to sleep
[14:12] tscherler: ;-)
[14:13] tscherler: the only bummer is that the resources.xmap is quite verbose
[14:13] tscherler: when somebody want to try
[14:13] tscherler: the stuff should go into the themes.xmap
[14:13] tscherler: after refactoring ;-)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira