vmassol     2003/07/02 03:06:47

  Modified:    src/plugins-build/pmd plugin.jelly
               src/plugins-build/pmd/xdocs changes.xml
  Log:
  - Fixed Changes report which was not showing up correctly (blank page)
  - Fixed MAVEN-538: report generation failing when no errors.
  
  Revision  Changes    Path
  1.4       +5 -0      maven/src/plugins-build/pmd/plugin.jelly
  
  Index: plugin.jelly
  ===================================================================
  RCS file: /home/cvs/maven/src/plugins-build/pmd/plugin.jelly,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- plugin.jelly      9 Apr 2003 18:08:18 -0000       1.3
  +++ plugin.jelly      2 Jul 2003 10:06:31 -0000       1.4
  @@ -74,6 +74,11 @@
           
       <!-- Run the PMD task - need a way to define the rulesets dynamically -->
       <echo>Running the PMD task with ${maven.pmd.rulesetfiles} ...</echo>
  +
  +    <!-- Prepare empty raw report because no file is generated if no rule is 
  +         violated and that causes the report generation to fail later on -->
  +    <echo file="${maven.build.dir}/pmd-raw-report.xml" 
  +        message="&lt;?xml version='1.0'?&gt;&lt;pmd/&gt;"/>
       
       <pmd rulesetfiles="${maven.pmd.rulesetfiles}">
         <formatter type="xml" toFile="${maven.build.dir}/pmd-raw-report.xml"/>
  
  
  
  1.5       +8 -3      maven/src/plugins-build/pmd/xdocs/changes.xml
  
  Index: changes.xml
  ===================================================================
  RCS file: /home/cvs/maven/src/plugins-build/pmd/xdocs/changes.xml,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- changes.xml       13 Apr 2003 09:03:51 -0000      1.4
  +++ changes.xml       2 Jul 2003 10:06:41 -0000       1.5
  @@ -6,9 +6,14 @@
       <author email="[EMAIL PROTECTED]">Vincent Massol</author>
     </properties>
   
  -  <releases>
  +  <body>
   
       <release version="1.1" date="in CVS">
  +      <action dev="vmassol" type="fix">
  +        Make sure the report does not fail if PMD does not detect any 
  +        violation. Fixes bug
  +        <a 
href="http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-538";>MAVEN-538</a>.
  +      </action>            
       </release>
   
       <release version="1.0" date="2003-04-08">
  @@ -55,7 +60,7 @@
           Updated to used PMD 1.0
         </action>            
       </release>      
  -  </releases>
  -  
  +
  +  </body>  
   </document>
   
  
  
  

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

Reply via email to