Uploaded image for project: 'Forrest (Retired)'
  1. Forrest (Retired)
  2. FOR-808 Switch from skins to dispatcher as default
  3. FOR-815

Refactor resource.xmap from the dispatcher to themes.xmap

    XMLWordPrintableJSON

Details

    Description

      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 ;-)

      Attachments

        Activity

          People

            Unassigned Unassigned
            thorsten Thorsten Scherler
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: