dion        2003/09/26 08:53:41

  Modified:    src/plugins-build/xdoc plugin.jelly
  Log:
  Instantiate mapper and pathTool if not provided
  
  Revision  Changes    Path
  1.51      +6 -0      maven/src/plugins-build/xdoc/plugin.jelly
  
  Index: plugin.jelly
  ===================================================================
  RCS file: /home/cvs/maven/src/plugins-build/xdoc/plugin.jelly,v
  retrieving revision 1.50
  retrieving revision 1.51
  diff -u -r1.50 -r1.51
  --- plugin.jelly      16 Sep 2003 04:54:20 -0000      1.50
  +++ plugin.jelly      26 Sep 2003 15:53:41 -0000      1.51
  @@ -237,6 +237,9 @@
          
         <util:replace var="fromPattern" oldChar="\" newChar="/" 
value="${srcdir}/*.xml"/>
         <util:replace var="toPattern" oldChar="\" newChar="/" 
value="${destdir}/*.html"/>
  +      <j:if test="${mapper == null}">
  +        <j:new var="mapper" 
className="org.apache.maven.util.CaseInsensitiveGlobPatternMapper"/>
  +      </j:if>
         <j:setProperties object="${mapper}" from="${fromPattern}" to="${toPattern}"/>
   
         <util:replace var="fromDirPattern" oldChar="\" newChar="/" 
value="${srcdir}*"/>
  @@ -302,6 +305,9 @@
           <echo>Generating ${outFile} from ${file}</echo>
           <!-- work out relative path -->
           <util:replace var="docsForward" oldChar="\" newChar="/" value="${srcdir}"/>
  +        <j:if test="${pathTool == null}">
  +            <j:useBean var="pathTool" class="org.apache.maven.util.DVSLPathTool"/>
  +        </j:if>
           <j:set var="relativePath" value="${pathTool.getRelativePath(docsForward, 
outFileForward)}"/>
   
           <!-- determine nav file to be used: 2. check for nav file -->
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to