You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by "Pablo Barrera (JIRA)" <ji...@apache.org> on 2008/09/12 10:37:44 UTC

[jira] Created: (FOR-1105) Unexpected behaviour of locationmap and themes

Unexpected behaviour of locationmap and themes
----------------------------------------------

                 Key: FOR-1105
                 URL: https://issues.apache.org/jira/browse/FOR-1105
             Project: Forrest
          Issue Type: Bug
          Components: Locationmap
            Reporter: Pablo Barrera
            Priority: Minor


I have modified my locationmap as follows:
	<match pattern="themer.project.dir">
		<location src="{properties:home}/themes" />
	</match>

I am using the pelt theme:
  <property name="dispatcher.theme" value="pelt"/>
  <property name="dispatcher.theme-ext" value=".fv"/>

so I copy my themes files to its expected location:
themes/pelt/panels/pelt-html.content.panel.xml
themes/pelt.fv

The pelt-html.content.panel.xml is not used but pelt.fv is.

When looking at
http://localhost:8888/resolve.structurer.index

I can see my local copy but the locationmap is looking for pelt/panels/pelt-html.content.panel.xml in the default dir, not in my local dir.

According to the locationmap logs:
$ cat locationmap.log | grep pelt-html.content.panel.xml | grep MY_PROPERTIES_HOME/themes
Nothing...

$ cat locationmap.log | grep pelt-html.content.panel.xml | grep MY_PROPERTIES_HOME
DEBUG   [core.modules.mapper.lm] (/index.html): Not selected: PATH_TO_MY_PROPERTIES_HOME/src/documentation/resources//themes/pelt/panels/pelt-html.content.panel.xml
DEBUG   [core.modules.mapper.lm] (/index.html): Not selected: PATH_TO_MY_PROPERTIES_HOME/src/documentation/resources//themes/common/panels/pelt-html.content.panel.xml
DEBUG   [core.modules.mapper.lm] (/index.html): Not selected: PATH_TO_MY_PROPERTIES_HOME/src/documentation/resources//themes/pelt/panels/pelt-html.content.panel.xml
DEBUG   [core.modules.mapper.lm] (/index.html): Not selected: PATH_TO_MY_PROPERTIES_HOME/wiki2tei/src/documentation/resources//themes/common/panels/pelt-html.content.panel.xml

If I copy the themes/pelt/panels/pelt-html.content.panel.xml file to PATH_TO_MY_PROPERTIES_HOME/src/documentation/resources//themes/pelt/panels the system worked correctly.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (FOR-1105) Unexpected behaviour of locationmap and themes

Posted by "Pablo Barrera (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FOR-1105?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pablo Barrera updated FOR-1105:
-------------------------------

    Attachment: 0002-Fix-properties-resources-themes-location.patch

> Unexpected behaviour of locationmap and themes
> ----------------------------------------------
>
>                 Key: FOR-1105
>                 URL: https://issues.apache.org/jira/browse/FOR-1105
>             Project: Forrest
>          Issue Type: Bug
>          Components: Locationmap
>            Reporter: Pablo Barrera
>            Priority: Minor
>         Attachments: 0002-Fix-properties-resources-themes-location.patch
>
>
> I have modified my locationmap as follows:
> 	<match pattern="themer.project.dir">
> 		<location src="{properties:home}/themes" />
> 	</match>
> I am using the pelt theme:
>   <property name="dispatcher.theme" value="pelt"/>
>   <property name="dispatcher.theme-ext" value=".fv"/>
> so I copy my themes files to its expected location:
> themes/pelt/panels/pelt-html.content.panel.xml
> themes/pelt.fv
> The pelt-html.content.panel.xml is not used but pelt.fv is.
> When looking at
> http://localhost:8888/resolve.structurer.index
> I can see my local copy but the locationmap is looking for pelt/panels/pelt-html.content.panel.xml in the default dir, not in my local dir.
> According to the locationmap logs:
> $ cat locationmap.log | grep pelt-html.content.panel.xml | grep MY_PROPERTIES_HOME/themes
> Nothing...
> $ cat locationmap.log | grep pelt-html.content.panel.xml | grep MY_PROPERTIES_HOME
> DEBUG   [core.modules.mapper.lm] (/index.html): Not selected: PATH_TO_MY_PROPERTIES_HOME/src/documentation/resources//themes/pelt/panels/pelt-html.content.panel.xml
> DEBUG   [core.modules.mapper.lm] (/index.html): Not selected: PATH_TO_MY_PROPERTIES_HOME/src/documentation/resources//themes/common/panels/pelt-html.content.panel.xml
> DEBUG   [core.modules.mapper.lm] (/index.html): Not selected: PATH_TO_MY_PROPERTIES_HOME/src/documentation/resources//themes/pelt/panels/pelt-html.content.panel.xml
> DEBUG   [core.modules.mapper.lm] (/index.html): Not selected: PATH_TO_MY_PROPERTIES_HOME/wiki2tei/src/documentation/resources//themes/common/panels/pelt-html.content.panel.xml
> If I copy the themes/pelt/panels/pelt-html.content.panel.xml file to PATH_TO_MY_PROPERTIES_HOME/src/documentation/resources//themes/pelt/panels the system worked correctly.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (FOR-1105) Make locationmap more intuitive configurable

Posted by "Gavin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FOR-1105?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gavin closed FOR-1105.
----------------------

    Resolution: Fixed

Altered remaining matches to use lm: , consistent styling as asked for by Thorsten.
Hope its right.

> Make locationmap more intuitive configurable
> --------------------------------------------
>
>                 Key: FOR-1105
>                 URL: https://issues.apache.org/jira/browse/FOR-1105
>             Project: Forrest
>          Issue Type: Bug
>          Components: Plugin: internal.dispatcher
>            Reporter: Pablo Barrera
>            Priority: Minor
>         Attachments: 0002-Fix-properties-resources-themes-location.patch
>
>
> I have modified my locationmap as follows:
> 	<match pattern="themer.project.dir">
> 		<location src="{properties:home}/themes" />
> 	</match>
> I am using the pelt theme:
>   <property name="dispatcher.theme" value="pelt"/>
>   <property name="dispatcher.theme-ext" value=".fv"/>
> so I copy my themes files to its expected location:
> themes/pelt/panels/pelt-html.content.panel.xml
> themes/pelt.fv
> The pelt-html.content.panel.xml is not used but pelt.fv is.
> When looking at
> http://localhost:8888/resolve.structurer.index
> I can see my local copy but the locationmap is looking for pelt/panels/pelt-html.content.panel.xml in the default dir, not in my local dir.
> According to the locationmap logs:
> $ cat locationmap.log | grep pelt-html.content.panel.xml | grep MY_PROPERTIES_HOME/themes
> Nothing...
> $ cat locationmap.log | grep pelt-html.content.panel.xml | grep MY_PROPERTIES_HOME
> DEBUG   [core.modules.mapper.lm] (/index.html): Not selected: PATH_TO_MY_PROPERTIES_HOME/src/documentation/resources//themes/pelt/panels/pelt-html.content.panel.xml
> DEBUG   [core.modules.mapper.lm] (/index.html): Not selected: PATH_TO_MY_PROPERTIES_HOME/src/documentation/resources//themes/common/panels/pelt-html.content.panel.xml
> DEBUG   [core.modules.mapper.lm] (/index.html): Not selected: PATH_TO_MY_PROPERTIES_HOME/src/documentation/resources//themes/pelt/panels/pelt-html.content.panel.xml
> DEBUG   [core.modules.mapper.lm] (/index.html): Not selected: PATH_TO_MY_PROPERTIES_HOME/wiki2tei/src/documentation/resources//themes/common/panels/pelt-html.content.panel.xml
> If I copy the themes/pelt/panels/pelt-html.content.panel.xml file to PATH_TO_MY_PROPERTIES_HOME/src/documentation/resources//themes/pelt/panels the system worked correctly.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (FOR-1105) Unexpected behaviour of locationmap and themes

Posted by "Thorsten Scherler (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FOR-1105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12630536#action_12630536 ] 

Thorsten Scherler commented on FOR-1105:
----------------------------------------

If you add it there are more matches that would need this treatment. e.g. dispatcher.structurer.resourceType.** as well refer to "{properties:resources}/themes" intead of "{lm:themer.project.dir}" 

Trying to say it would be nice to harmonize this matches.


> Unexpected behaviour of locationmap and themes
> ----------------------------------------------
>
>                 Key: FOR-1105
>                 URL: https://issues.apache.org/jira/browse/FOR-1105
>             Project: Forrest
>          Issue Type: Bug
>          Components: Locationmap
>            Reporter: Pablo Barrera
>            Priority: Minor
>
> I have modified my locationmap as follows:
> 	<match pattern="themer.project.dir">
> 		<location src="{properties:home}/themes" />
> 	</match>
> I am using the pelt theme:
>   <property name="dispatcher.theme" value="pelt"/>
>   <property name="dispatcher.theme-ext" value=".fv"/>
> so I copy my themes files to its expected location:
> themes/pelt/panels/pelt-html.content.panel.xml
> themes/pelt.fv
> The pelt-html.content.panel.xml is not used but pelt.fv is.
> When looking at
> http://localhost:8888/resolve.structurer.index
> I can see my local copy but the locationmap is looking for pelt/panels/pelt-html.content.panel.xml in the default dir, not in my local dir.
> According to the locationmap logs:
> $ cat locationmap.log | grep pelt-html.content.panel.xml | grep MY_PROPERTIES_HOME/themes
> Nothing...
> $ cat locationmap.log | grep pelt-html.content.panel.xml | grep MY_PROPERTIES_HOME
> DEBUG   [core.modules.mapper.lm] (/index.html): Not selected: PATH_TO_MY_PROPERTIES_HOME/src/documentation/resources//themes/pelt/panels/pelt-html.content.panel.xml
> DEBUG   [core.modules.mapper.lm] (/index.html): Not selected: PATH_TO_MY_PROPERTIES_HOME/src/documentation/resources//themes/common/panels/pelt-html.content.panel.xml
> DEBUG   [core.modules.mapper.lm] (/index.html): Not selected: PATH_TO_MY_PROPERTIES_HOME/src/documentation/resources//themes/pelt/panels/pelt-html.content.panel.xml
> DEBUG   [core.modules.mapper.lm] (/index.html): Not selected: PATH_TO_MY_PROPERTIES_HOME/wiki2tei/src/documentation/resources//themes/common/panels/pelt-html.content.panel.xml
> If I copy the themes/pelt/panels/pelt-html.content.panel.xml file to PATH_TO_MY_PROPERTIES_HOME/src/documentation/resources//themes/pelt/panels the system worked correctly.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (FOR-1105) Unexpected behaviour of locationmap and themes

Posted by "Pablo Barrera (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FOR-1105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12630550#action_12630550 ] 

Pablo Barrera commented on FOR-1105:
------------------------------------

It's working for me now. However, I didn't change the dispatcher.structurer.resourceType.** part as I didn't fully understand the semantic.

Patch included.



> Unexpected behaviour of locationmap and themes
> ----------------------------------------------
>
>                 Key: FOR-1105
>                 URL: https://issues.apache.org/jira/browse/FOR-1105
>             Project: Forrest
>          Issue Type: Bug
>          Components: Locationmap
>            Reporter: Pablo Barrera
>            Priority: Minor
>         Attachments: 0002-Fix-properties-resources-themes-location.patch
>
>
> I have modified my locationmap as follows:
> 	<match pattern="themer.project.dir">
> 		<location src="{properties:home}/themes" />
> 	</match>
> I am using the pelt theme:
>   <property name="dispatcher.theme" value="pelt"/>
>   <property name="dispatcher.theme-ext" value=".fv"/>
> so I copy my themes files to its expected location:
> themes/pelt/panels/pelt-html.content.panel.xml
> themes/pelt.fv
> The pelt-html.content.panel.xml is not used but pelt.fv is.
> When looking at
> http://localhost:8888/resolve.structurer.index
> I can see my local copy but the locationmap is looking for pelt/panels/pelt-html.content.panel.xml in the default dir, not in my local dir.
> According to the locationmap logs:
> $ cat locationmap.log | grep pelt-html.content.panel.xml | grep MY_PROPERTIES_HOME/themes
> Nothing...
> $ cat locationmap.log | grep pelt-html.content.panel.xml | grep MY_PROPERTIES_HOME
> DEBUG   [core.modules.mapper.lm] (/index.html): Not selected: PATH_TO_MY_PROPERTIES_HOME/src/documentation/resources//themes/pelt/panels/pelt-html.content.panel.xml
> DEBUG   [core.modules.mapper.lm] (/index.html): Not selected: PATH_TO_MY_PROPERTIES_HOME/src/documentation/resources//themes/common/panels/pelt-html.content.panel.xml
> DEBUG   [core.modules.mapper.lm] (/index.html): Not selected: PATH_TO_MY_PROPERTIES_HOME/src/documentation/resources//themes/pelt/panels/pelt-html.content.panel.xml
> DEBUG   [core.modules.mapper.lm] (/index.html): Not selected: PATH_TO_MY_PROPERTIES_HOME/wiki2tei/src/documentation/resources//themes/common/panels/pelt-html.content.panel.xml
> If I copy the themes/pelt/panels/pelt-html.content.panel.xml file to PATH_TO_MY_PROPERTIES_HOME/src/documentation/resources//themes/pelt/panels the system worked correctly.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (FOR-1105) Make locationmap more intuitive configurable

Posted by "Gavin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FOR-1105?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gavin updated FOR-1105:
-----------------------

    Other Info:   (was: [Patch available])

Patch already applied.

> Make locationmap more intuitive configurable
> --------------------------------------------
>
>                 Key: FOR-1105
>                 URL: https://issues.apache.org/jira/browse/FOR-1105
>             Project: Forrest
>          Issue Type: Bug
>          Components: Plugin: internal.dispatcher
>            Reporter: Pablo Barrera
>            Priority: Minor
>         Attachments: 0002-Fix-properties-resources-themes-location.patch
>
>
> I have modified my locationmap as follows:
> 	<match pattern="themer.project.dir">
> 		<location src="{properties:home}/themes" />
> 	</match>
> I am using the pelt theme:
>   <property name="dispatcher.theme" value="pelt"/>
>   <property name="dispatcher.theme-ext" value=".fv"/>
> so I copy my themes files to its expected location:
> themes/pelt/panels/pelt-html.content.panel.xml
> themes/pelt.fv
> The pelt-html.content.panel.xml is not used but pelt.fv is.
> When looking at
> http://localhost:8888/resolve.structurer.index
> I can see my local copy but the locationmap is looking for pelt/panels/pelt-html.content.panel.xml in the default dir, not in my local dir.
> According to the locationmap logs:
> $ cat locationmap.log | grep pelt-html.content.panel.xml | grep MY_PROPERTIES_HOME/themes
> Nothing...
> $ cat locationmap.log | grep pelt-html.content.panel.xml | grep MY_PROPERTIES_HOME
> DEBUG   [core.modules.mapper.lm] (/index.html): Not selected: PATH_TO_MY_PROPERTIES_HOME/src/documentation/resources//themes/pelt/panels/pelt-html.content.panel.xml
> DEBUG   [core.modules.mapper.lm] (/index.html): Not selected: PATH_TO_MY_PROPERTIES_HOME/src/documentation/resources//themes/common/panels/pelt-html.content.panel.xml
> DEBUG   [core.modules.mapper.lm] (/index.html): Not selected: PATH_TO_MY_PROPERTIES_HOME/src/documentation/resources//themes/pelt/panels/pelt-html.content.panel.xml
> DEBUG   [core.modules.mapper.lm] (/index.html): Not selected: PATH_TO_MY_PROPERTIES_HOME/wiki2tei/src/documentation/resources//themes/common/panels/pelt-html.content.panel.xml
> If I copy the themes/pelt/panels/pelt-html.content.panel.xml file to PATH_TO_MY_PROPERTIES_HOME/src/documentation/resources//themes/pelt/panels the system worked correctly.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (FOR-1105) Unexpected behaviour of locationmap and themes

Posted by "Thorsten Scherler (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FOR-1105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12630538#action_12630538 ] 

Thorsten Scherler commented on FOR-1105:
----------------------------------------

I refer in all my comments to whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/locationmap.xml 

> Unexpected behaviour of locationmap and themes
> ----------------------------------------------
>
>                 Key: FOR-1105
>                 URL: https://issues.apache.org/jira/browse/FOR-1105
>             Project: Forrest
>          Issue Type: Bug
>          Components: Locationmap
>            Reporter: Pablo Barrera
>            Priority: Minor
>
> I have modified my locationmap as follows:
> 	<match pattern="themer.project.dir">
> 		<location src="{properties:home}/themes" />
> 	</match>
> I am using the pelt theme:
>   <property name="dispatcher.theme" value="pelt"/>
>   <property name="dispatcher.theme-ext" value=".fv"/>
> so I copy my themes files to its expected location:
> themes/pelt/panels/pelt-html.content.panel.xml
> themes/pelt.fv
> The pelt-html.content.panel.xml is not used but pelt.fv is.
> When looking at
> http://localhost:8888/resolve.structurer.index
> I can see my local copy but the locationmap is looking for pelt/panels/pelt-html.content.panel.xml in the default dir, not in my local dir.
> According to the locationmap logs:
> $ cat locationmap.log | grep pelt-html.content.panel.xml | grep MY_PROPERTIES_HOME/themes
> Nothing...
> $ cat locationmap.log | grep pelt-html.content.panel.xml | grep MY_PROPERTIES_HOME
> DEBUG   [core.modules.mapper.lm] (/index.html): Not selected: PATH_TO_MY_PROPERTIES_HOME/src/documentation/resources//themes/pelt/panels/pelt-html.content.panel.xml
> DEBUG   [core.modules.mapper.lm] (/index.html): Not selected: PATH_TO_MY_PROPERTIES_HOME/src/documentation/resources//themes/common/panels/pelt-html.content.panel.xml
> DEBUG   [core.modules.mapper.lm] (/index.html): Not selected: PATH_TO_MY_PROPERTIES_HOME/src/documentation/resources//themes/pelt/panels/pelt-html.content.panel.xml
> DEBUG   [core.modules.mapper.lm] (/index.html): Not selected: PATH_TO_MY_PROPERTIES_HOME/wiki2tei/src/documentation/resources//themes/common/panels/pelt-html.content.panel.xml
> If I copy the themes/pelt/panels/pelt-html.content.panel.xml file to PATH_TO_MY_PROPERTIES_HOME/src/documentation/resources//themes/pelt/panels the system worked correctly.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (FOR-1105) Unexpected behaviour of locationmap and themes

Posted by "Thorsten Scherler (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FOR-1105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12630535#action_12630535 ] 

Thorsten Scherler commented on FOR-1105:
----------------------------------------

The above lm entry is not for panels (they have they own):

    <match pattern="resolve.panels.**">
      <select type="exists">
        <location  src="{properties:resources}/themes/{properties:dispatcher.theme}/panels/{1}{properties:dispatcher.panel-ext}" 
                    />
        <location   src="{properties:resources}/themes/{properties:dispatcher.fallback.theme}/panels/{1}{properties:dispatcher.panel-ext}" 
                    />
<!--  plugin provided panels -->
        <location src="{lm:resolvePluginPanels.{1}}" />
        <location   src="{lm:dispatcher.themer}/themes/{properties:dispatcher.theme}/panels/{1}{properties:dispatcher.panel-ext}" 
                    />
        <location   src="{lm:dispatcher.themer}/themes/{properties:dispatcher.fallback.theme}/panels/{1}{properties:dispatcher.panel-ext}" 
                    />
      </select>
    </match>

I guess to make dispatcher more intuitive the first two locations should be refactored as follow:

Replace "{properties:resources}/themes" with "{lm:themer.project.dir}"

can you provide a patch?

> Unexpected behaviour of locationmap and themes
> ----------------------------------------------
>
>                 Key: FOR-1105
>                 URL: https://issues.apache.org/jira/browse/FOR-1105
>             Project: Forrest
>          Issue Type: Bug
>          Components: Locationmap
>            Reporter: Pablo Barrera
>            Priority: Minor
>
> I have modified my locationmap as follows:
> 	<match pattern="themer.project.dir">
> 		<location src="{properties:home}/themes" />
> 	</match>
> I am using the pelt theme:
>   <property name="dispatcher.theme" value="pelt"/>
>   <property name="dispatcher.theme-ext" value=".fv"/>
> so I copy my themes files to its expected location:
> themes/pelt/panels/pelt-html.content.panel.xml
> themes/pelt.fv
> The pelt-html.content.panel.xml is not used but pelt.fv is.
> When looking at
> http://localhost:8888/resolve.structurer.index
> I can see my local copy but the locationmap is looking for pelt/panels/pelt-html.content.panel.xml in the default dir, not in my local dir.
> According to the locationmap logs:
> $ cat locationmap.log | grep pelt-html.content.panel.xml | grep MY_PROPERTIES_HOME/themes
> Nothing...
> $ cat locationmap.log | grep pelt-html.content.panel.xml | grep MY_PROPERTIES_HOME
> DEBUG   [core.modules.mapper.lm] (/index.html): Not selected: PATH_TO_MY_PROPERTIES_HOME/src/documentation/resources//themes/pelt/panels/pelt-html.content.panel.xml
> DEBUG   [core.modules.mapper.lm] (/index.html): Not selected: PATH_TO_MY_PROPERTIES_HOME/src/documentation/resources//themes/common/panels/pelt-html.content.panel.xml
> DEBUG   [core.modules.mapper.lm] (/index.html): Not selected: PATH_TO_MY_PROPERTIES_HOME/src/documentation/resources//themes/pelt/panels/pelt-html.content.panel.xml
> DEBUG   [core.modules.mapper.lm] (/index.html): Not selected: PATH_TO_MY_PROPERTIES_HOME/wiki2tei/src/documentation/resources//themes/common/panels/pelt-html.content.panel.xml
> If I copy the themes/pelt/panels/pelt-html.content.panel.xml file to PATH_TO_MY_PROPERTIES_HOME/src/documentation/resources//themes/pelt/panels the system worked correctly.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (FOR-1105) Make locationmap more intuitive configurable

Posted by "Thorsten Scherler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FOR-1105?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thorsten Scherler updated FOR-1105:
-----------------------------------

    Component/s:     (was: Locationmap)
                 Plugin: internal.dispatcher
        Summary: Make locationmap more intuitive configurable  (was: Unexpected behaviour of locationmap and themes)

> Make locationmap more intuitive configurable
> --------------------------------------------
>
>                 Key: FOR-1105
>                 URL: https://issues.apache.org/jira/browse/FOR-1105
>             Project: Forrest
>          Issue Type: Bug
>          Components: Plugin: internal.dispatcher
>            Reporter: Pablo Barrera
>            Priority: Minor
>         Attachments: 0002-Fix-properties-resources-themes-location.patch
>
>
> I have modified my locationmap as follows:
> 	<match pattern="themer.project.dir">
> 		<location src="{properties:home}/themes" />
> 	</match>
> I am using the pelt theme:
>   <property name="dispatcher.theme" value="pelt"/>
>   <property name="dispatcher.theme-ext" value=".fv"/>
> so I copy my themes files to its expected location:
> themes/pelt/panels/pelt-html.content.panel.xml
> themes/pelt.fv
> The pelt-html.content.panel.xml is not used but pelt.fv is.
> When looking at
> http://localhost:8888/resolve.structurer.index
> I can see my local copy but the locationmap is looking for pelt/panels/pelt-html.content.panel.xml in the default dir, not in my local dir.
> According to the locationmap logs:
> $ cat locationmap.log | grep pelt-html.content.panel.xml | grep MY_PROPERTIES_HOME/themes
> Nothing...
> $ cat locationmap.log | grep pelt-html.content.panel.xml | grep MY_PROPERTIES_HOME
> DEBUG   [core.modules.mapper.lm] (/index.html): Not selected: PATH_TO_MY_PROPERTIES_HOME/src/documentation/resources//themes/pelt/panels/pelt-html.content.panel.xml
> DEBUG   [core.modules.mapper.lm] (/index.html): Not selected: PATH_TO_MY_PROPERTIES_HOME/src/documentation/resources//themes/common/panels/pelt-html.content.panel.xml
> DEBUG   [core.modules.mapper.lm] (/index.html): Not selected: PATH_TO_MY_PROPERTIES_HOME/src/documentation/resources//themes/pelt/panels/pelt-html.content.panel.xml
> DEBUG   [core.modules.mapper.lm] (/index.html): Not selected: PATH_TO_MY_PROPERTIES_HOME/wiki2tei/src/documentation/resources//themes/common/panels/pelt-html.content.panel.xml
> If I copy the themes/pelt/panels/pelt-html.content.panel.xml file to PATH_TO_MY_PROPERTIES_HOME/src/documentation/resources//themes/pelt/panels the system worked correctly.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (FOR-1105) Unexpected behaviour of locationmap and themes

Posted by "David Crossley (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FOR-1105?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Crossley updated FOR-1105:
--------------------------------

    Other Info: [Patch available]

> Unexpected behaviour of locationmap and themes
> ----------------------------------------------
>
>                 Key: FOR-1105
>                 URL: https://issues.apache.org/jira/browse/FOR-1105
>             Project: Forrest
>          Issue Type: Bug
>          Components: Locationmap
>            Reporter: Pablo Barrera
>            Priority: Minor
>         Attachments: 0002-Fix-properties-resources-themes-location.patch
>
>
> I have modified my locationmap as follows:
> 	<match pattern="themer.project.dir">
> 		<location src="{properties:home}/themes" />
> 	</match>
> I am using the pelt theme:
>   <property name="dispatcher.theme" value="pelt"/>
>   <property name="dispatcher.theme-ext" value=".fv"/>
> so I copy my themes files to its expected location:
> themes/pelt/panels/pelt-html.content.panel.xml
> themes/pelt.fv
> The pelt-html.content.panel.xml is not used but pelt.fv is.
> When looking at
> http://localhost:8888/resolve.structurer.index
> I can see my local copy but the locationmap is looking for pelt/panels/pelt-html.content.panel.xml in the default dir, not in my local dir.
> According to the locationmap logs:
> $ cat locationmap.log | grep pelt-html.content.panel.xml | grep MY_PROPERTIES_HOME/themes
> Nothing...
> $ cat locationmap.log | grep pelt-html.content.panel.xml | grep MY_PROPERTIES_HOME
> DEBUG   [core.modules.mapper.lm] (/index.html): Not selected: PATH_TO_MY_PROPERTIES_HOME/src/documentation/resources//themes/pelt/panels/pelt-html.content.panel.xml
> DEBUG   [core.modules.mapper.lm] (/index.html): Not selected: PATH_TO_MY_PROPERTIES_HOME/src/documentation/resources//themes/common/panels/pelt-html.content.panel.xml
> DEBUG   [core.modules.mapper.lm] (/index.html): Not selected: PATH_TO_MY_PROPERTIES_HOME/src/documentation/resources//themes/pelt/panels/pelt-html.content.panel.xml
> DEBUG   [core.modules.mapper.lm] (/index.html): Not selected: PATH_TO_MY_PROPERTIES_HOME/wiki2tei/src/documentation/resources//themes/common/panels/pelt-html.content.panel.xml
> If I copy the themes/pelt/panels/pelt-html.content.panel.xml file to PATH_TO_MY_PROPERTIES_HOME/src/documentation/resources//themes/pelt/panels the system worked correctly.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.