jvanzyl     2002/07/10 18:46:49

  Modified:    src/plugins/xdoc plugin.jelly
  Log:
  o A couple <j:if>s in the xdoc generation to allow a site with no
    sources to generate documentation. The sourcesPresent and
    unitTestSourcesPresent are set to "false" in the driver so that
    the dvsl context doesn't freak out.
  
  Revision  Changes    Path
  1.12      +7 -1      jakarta-turbine-maven/src/plugins/xdoc/plugin.jelly
  
  Index: plugin.jelly
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-maven/src/plugins/xdoc/plugin.jelly,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- plugin.jelly      10 Jul 2002 22:53:29 -0000      1.11
  +++ plugin.jelly      11 Jul 2002 01:46:49 -0000      1.12
  @@ -47,6 +47,8 @@
       <tstamp>
         <format property="maven.current.year" pattern="yyyy" />
       </tstamp>
  +    
  +    <mkdir dir="${maven.docs.dest}"/>
   
       <!-- Transform the auto-generated xdocs first -->
       <dvsl
  @@ -66,7 +68,9 @@
         <tool name="toolbox.string.docDest" value="${maven.docs.dest}"/>
         <tool name="toolbox.string.docSrc" value="${maven.docs.src}"/>
         <tool name="toolbox.string.genDoc" value="${maven.gen.docs}"/>
  +      <j:if test="${sourcesPresent == 'true'}">
         <tool name="toolbox.string.srcDir" value="${maven.src.dir}"/>
  +      </j:if>
         <tool name="toolbox.string.srcPresent" value="${sourcesPresent}"/>
         <tool name="toolbox.string.testSrcPresent" value="${unitTestSourcesPresent}"/>
         <tool name="toolbox.string.currentYear" value="${maven.current.year}"/>
  @@ -89,8 +93,10 @@
         <tool name="toolbox.string.basedir" value="${basedir}"/>
         <tool name="toolbox.string.docSrc" value="${maven.docs.src}"/>
         <tool name="toolbox.string.docDest" value="${maven.docs.dest}"/>
  -      <tool name="toolbox.string.srcDir" value="${maven.src.dir}"/>
         <tool name="toolbox.string.genDoc" value="${maven.gen.docs}"/>
  +      <j:if test="${sourcesPresent == 'true'}">
  +      <tool name="toolbox.string.srcDir" value="${maven.src.dir}"/>
  +      </j:if>
         <tool name="toolbox.string.srcPresent" value="${sourcesPresent}"/>
         <tool name="toolbox.string.testSrcPresent" value="${unitTestSourcesPresent}"/>
         <tool name="toolbox.string.currentYear" value="${maven.current.year}"/>
  
  
  

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

Reply via email to