evenisse    2003/09/09 09:18:40

  Modified:    src/plugins-build/jcoverage plugin.jelly
  Log:
  Test if sources are present before register report
  
  Revision  Changes    Path
  1.5       +10 -6     maven/src/plugins-build/jcoverage/plugin.jelly
  
  Index: plugin.jelly
  ===================================================================
  RCS file: /home/cvs/maven/src/plugins-build/jcoverage/plugin.jelly,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- plugin.jelly      9 Sep 2003 15:52:57 -0000       1.4
  +++ plugin.jelly      9 Sep 2003 16:18:40 -0000       1.5
  @@ -39,18 +39,22 @@
     <goal name="maven-jcoverage-plugin:register"
           description="Register the maven-jcoverage-plugin.">
   
  -    <doc:registerReport
  -      name="JCoverage"
  -      pluginName="maven-jcoverage-plugin"
  -      link="jcoverage/index"
  -      description="JCoverage test coverage report." />
  +    <j:if test="${sourcesPresent == 'true'}">
  +      <doc:registerReport
  +        name="JCoverage"
  +        pluginName="maven-jcoverage-plugin"
  +        link="jcoverage/index"
  +        description="JCoverage test coverage report." />
  +    </j:if>
   
     </goal>
   
     <goal name="maven-jcoverage-plugin:deregister"
           description="Deregister the jcoverage plugin">
   
  -    <doc:deregisterReport name="JCoverage" />
  +    <j:if test="${sourcesPresent == 'true'}">
  +      <doc:deregisterReport name="JCoverage" />
  +    </j:if>
   
     </goal>
   
  
  
  

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

Reply via email to