You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by jv...@apache.org on 2003/01/03 06:58:46 UTC

cvs commit: jakarta-turbine-maven/src/plugins-build/xdoc plugin.jelly

jvanzyl     2003/01/02 21:58:46

  Modified:    src/plugins-build/xdoc plugin.jelly
  Log:
  o fix filtering of ui properties
  
  Revision  Changes    Path
  1.39      +5 -3      jakarta-turbine-maven/src/plugins-build/xdoc/plugin.jelly
  
  Index: plugin.jelly
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-maven/src/plugins-build/xdoc/plugin.jelly,v
  retrieving revision 1.38
  retrieving revision 1.39
  diff -u -r1.38 -r1.39
  --- plugin.jelly	31 Dec 2002 12:18:58 -0000	1.38
  +++ plugin.jelly	3 Jan 2003 05:58:46 -0000	1.39
  @@ -196,6 +196,8 @@
       <j:useBean var="escape" class="org.apache.velocity.anakia.Escape"/>
       <j:useBean var="files" class="org.apache.velocity.texen.util.FileUtil"/>
       
  +    <mkdir dir="${maven.gen.docs}"/>
  +    
       <j:forEach var="pomDocument" items="${pomDocuments}">
       
         <velocity:merge 
  @@ -253,10 +255,10 @@
         </fileset>
         
         <filterset>
  -        <j:forEach var="uiProperty" items="uiProperties">
  +        <j:forEach var="uiProperty" items="${uiProperties.keys()}">
             <util:replace var="token" oldChar="." newChar="_" value="${uiProperty}"/>
  -          <j:set var="token" value="${token.toUpperCase()}"/>
  -          <filter token="${token}" value="${uiProperty}"/>
  +          <j:set var="token" value="${token.substring(6).toUpperCase()}"/>
  +          <filter token="${token}" value="${uiProperties.getProperty(uiProperty)}"/>
           </j:forEach>
         </filterset>
       </copy>