Convention Plugin breaks settings for freemarker configuration.  
-----------------------------------------------------------------

                 Key: WW-3372
                 URL: https://issues.apache.org/struts/browse/WW-3372
             Project: Struts 2
          Issue Type: Bug
          Components: Plugin - Convention
    Affects Versions: 2.1.8
            Reporter: Matthew Payne


In an application that locates freemarker resources correctly the introduction 
of the convention plugins breaks sitemesh/freemarker from finding global macros 
or includes that are on the classpath(or in classes)  

macro libs are set as:
      <property name="macroLibraries">
            <props>
                <prop key="l">/WEB-INF/macros/layout.ftl</prop>
                <prop key="cn">/WEB-INF/macros/contentNode.ftl</prop>
                <prop key="auth">/WEB-INF/macros/acl.ftl</prop>
                <!-- from classpath in search jar -->
                    <prop key="pager">/macros/pager.ftl</prop>
                                <prop key="r">/macros/results.ftl</prop>
            </props>
        </property>

When the convention plugin is introduced page.ftl and results.ftl can no longer 
be found.  These are located in /WEB-INF/classes or inside a .jar file that is 
in the classpath.  It seems as if the convention plugin changes the 
templateLoaderPaths configuration of freemarker itself, which in this case is 
--->
        <property name="templateLoaderPaths">
            <list>
                <value>/WEB-INF/freemarker</value>
                <value>/</value>
                <value>classpath:/</value>
            </list>
        </property>

^^ from above classpath:/ resources are no longer found. 
Why does this plugin affect such things?

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

Reply via email to