struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthew Payne (JIRA)" <j...@apache.org>
Subject [jira] Created: (WW-3372) Convention Plugin breaks settings for freemarker configuration.
Date Mon, 11 Jan 2010 20:52:45 GMT
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.


Mime
View raw message