brekke      02/02/25 07:45:00

  Modified:    src/templates/build build-docs.xml build-metrics.xml
               xdocs    project.xml
  Log:
  Since there is a xsl style sheet for the jdepend xml format, we are using that
  for the time being to get the metrics displayed in html.  Added the conversion
  from the xml to html in the jdepend-xml target, added a convience target to
  build-docs.xml to call that target, and added the link to the project page.
  
  Revision  Changes    Path
  1.16      +7 -1      jakarta-turbine-maven/src/templates/build/build-docs.xml
  
  Index: build-docs.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-maven/src/templates/build/build-docs.xml,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- build-docs.xml    24 Feb 2002 23:58:44 -0000      1.15
  +++ build-docs.xml    25 Feb 2002 15:45:00 -0000      1.16
  @@ -8,8 +8,14 @@
   
     <target
       name="docs"
  -    depends="init,cvs-change-log,docs:site,docs:index, docs:mail-lists, 
docs:developer-list,docs:dependencies"
  +    depends="init,jdepend-metrics,cvs-change-log,docs:site,docs:index, 
docs:mail-lists, docs:developer-list,docs:dependencies"
       description="o Generate html project documentation xdoc sources">
  +  </target>
  +
  +  <target 
  +    name="jdepend-metrics"
  +    description="o Generiates html from jdepend metrics">
  +       <ant antfile="build-metrics.xml" target="jdepend-xml"/>
     </target>
   
     <target
  
  
  
  1.3       +4 -2      jakarta-turbine-maven/src/templates/build/build-metrics.xml
  
  Index: build-metrics.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-maven/src/templates/build/build-metrics.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- build-metrics.xml 25 Feb 2002 14:13:07 -0000      1.2
  +++ build-metrics.xml 25 Feb 2002 15:45:00 -0000      1.3
  @@ -50,7 +50,7 @@
       <!-- Once we start to use Ant 1.5, we can use the builtin jdepend target -->
       <!-- to generate our xml reports.  Until then we can use the xmlui.      -->
       <!-- 
  -    <jdepend format="xml" outputfile="${docs.src}/jdepend-report.xml">
  +    <jdepend format="xml" outputfile="${build.dir}/jdepend-report.xml">
         <sourcespath>
           <pathelement location="${src.dir}/java" />
         </sourcespath>
  @@ -60,13 +60,15 @@
   
       <!-- This call will gen a xml report regardless of the version of ant. -->
       <java classname="jdepend.xmlui.JDepend" fork="yes" failonerror="yes">
  -      <arg line="-file ${docs.src}/jdepend-report.xml ${src.dir}/java 
${build.dest}"/>
  +      <arg line="-file ${build.dir}/jdepend-report.xml ${src.dir}/java 
${build.dest}"/>
         <classpath>
           <path refid="classpath"/>
           <pathelement location="./"/>
           <pathelement path="${java.class.path}" />
         </classpath>
       </java>
  +    <style basedir="${build.dir}" destdir="${docs.dest}"
  +        includes="jdepend-report.xml" style="${docs.src}/stylesheets/jdepend.xsl" />
     </target>
   
   </project>
  
  
  
  1.12      +1 -0      jakarta-turbine-maven/xdocs/project.xml
  
  Index: project.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-maven/xdocs/project.xml,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- project.xml       24 Feb 2002 23:58:44 -0000      1.11
  +++ project.xml       25 Feb 2002 15:45:00 -0000      1.12
  @@ -25,6 +25,7 @@
         <item name="JavaDocs"                href="/apidocs/index.html"/>
         <item name="Source XReference"       href="/xref/index.html"/>
         <item name="Change Log"              href="/changelog.html"/>
  +      <item name="Metrics"                 href="/jdepend-report.html"/>
       </menu>
     </body>
   </project>
  
  
  

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

Reply via email to