jvanzyl     2002/06/26 14:20:20

  Added:       src/templates/build/plugins/jdepend plugin.jelly
                        plugin.properties
  Log:
  jdepend plugin.
  
  Revision  Changes    Path
  1.1                  
jakarta-turbine-maven/src/templates/build/plugins/jdepend/plugin.jelly
  
  Index: plugin.jelly
  ===================================================================
  <?xml version="1.0"?>
  
  <project xmlns:j="jelly:core">
  
    <!-- ================================================================== -->
    <!-- M E T R I C S                                                      -->
    <!-- ================================================================== -->
  
    <goal
      name="metrics"
      if="maven.sourcesPresent"
      depends="jdepend-report,jdepend-gui">
  
    </goal>
  
    <!-- ================================================================== -->
    <!-- J D E P E N D  R E P O R T  T A R G E T                            -->
    <!-- ================================================================== -->
  
    <goal 
      name="jdepend-report" 
      depends="local-init,compile"
      unless="use.jdepend.gui">
      <java 
        classname="jdepend.textui.JDepend" 
        fork="yes" 
        failonerror="yes">
        <arg line="-file '${maven.build.dir}/jdepend-report.txt' 
'${maven.build.dest}'"/>
        <classpath>
           <path refid="maven-classpath"/>
           <path refid="maven.dependency.classpath"/>
        </classpath>
      </java>
    </goal>
  
    <!-- ================================================================== -->
    <!-- J D E P E N D  G U I  T A R G E T                                  -->
    <!-- ================================================================== -->
  
    <goal 
      name="jdepend-gui" 
      depends="local-init,compile"
      if="use.jdepend.gui">
      <java 
        classname="jdepend.swingui.JDepend" 
        fork="yes" 
        failonerror="yes">
        <arg line="${maven.build.dest}"/>
        <classpath>
          <path refid="maven-classpath"/>
          <path refid="maven.dependency.classpath"/>
        </classpath>
      </java>
    </goal>
  
    <!-- ================================================================== -->
    <!-- J D E P E N D  X M L  T A R G E T                                  -->
    <!-- ================================================================== -->
  
    <goal 
      name="jdepend-xml"
      if="maven.sourcesPresent"
      depends="local-init,compile">
  
      <java 
        classname="jdepend.xmlui.JDepend" 
        fork="yes" 
        failonerror="yes">
        <arg line="-file '${maven.build.dir}/jdepend-raw-report.xml' 
'${maven.build.dest}'"/>
        <classpath>
          <path refid="maven-classpath"/>
          <path refid="maven.dependency.classpath"/>
        </classpath>
      </java>
  
      <dvsl
        basedir="."
        style="${maven.home}/stylesheets/jdepend.dvsl"
        toolboxfile="${maven.home}/stylesheets/toolbox.props"
        in="${maven.build.dir}/jdepend-raw-report.xml"
        out="${maven.gen.docs}/jdepend-report.xml">
        <!-- Need to add the maven jar to load the toolbox -->
        <classpath>
          <path refid="maven-classpath"/>
        </classpath>
  
        <!-- Needed for calculation of the right path to links via use
             of MavenTool -->
        <tool name="toolbox.string.basedir" value="${basedir}"/>
      </dvsl>
  
    </goal>
  
  </project>
  
  
  
  1.1                  
jakarta-turbine-maven/src/templates/build/plugins/jdepend/plugin.properties
  
  Index: plugin.properties
  ===================================================================
  # -------------------------------------------------------------------
  # P L U G I N  P R O P E R I E S
  # -------------------------------------------------------------------
  # JDepend plugin.
  # -------------------------------------------------------------------
  
  maven.src.dir = ${basedir}/src
  maven.conf.dir = ${basedir}/conf
  maven.build.dir = ${basedir}/target
  maven.build.src = ${maven.build.dir}/src
  maven.build.dest = ${maven.build.dir}/classes
  
  maven.docs.src = ${basedir}/xdocs
  maven.docs.dest = ${maven.build.dir}/docs
  maven.docs.outputencoding = ISO-8859-1
  maven.gen.docs = ${maven.build.dir}/generated-xdocs
  
  
  

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

Reply via email to