jvanzyl     2002/06/27 15:44:04

  Modified:    src/templates/build/plugins/jdepend plugin.jelly
  Log:
  Jdepend plugin now works. Calling it jdependx for now until we find the
  name collision.
  
  Revision  Changes    Path
  1.3       +13 -69    
jakarta-turbine-maven/src/templates/build/plugins/jdepend/plugin.jelly
  
  Index: plugin.jelly
  ===================================================================
  RCS file: 
/home/cvs/jakarta-turbine-maven/src/templates/build/plugins/jdepend/plugin.jelly,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- plugin.jelly      27 Jun 2002 15:32:38 -0000      1.2
  +++ plugin.jelly      27 Jun 2002 22:44:04 -0000      1.3
  @@ -3,83 +3,27 @@
   <project xmlns:j="jelly:core">
   
     <!-- ================================================================== -->
  -  <!-- M E T R I C S                                                      -->
  -  <!-- ================================================================== -->
  -  
  -  <goal
  -    name="metrics">
  -
  -    <j:if test="${flags.sourcesPresent}">
  -    
  -      <attainGoal name="jdepend-report"/>
  -      <attainGoal name="jdepend-gui"/>
  -    
  -    </j:if>
  -
  -  </goal>
  -
  -  <!-- ================================================================== -->
  -  <!-- J D E P E N D  R E P O R T  T A R G E T                            -->
  +  <!-- J D E P E N D  X M L  T A R G E T                                  -->
     <!-- ================================================================== -->
   
  -  <!-- this depends on the sources being compiled -->
  -
  -  <goal 
  -    name="jdepend-report">
  -    
  -    <!--
  -    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                                  -->
  -  <!-- ================================================================== -->
  +  <taskdef
  +    name="dvsl"
  +    classname="org.apache.tools.dvsl.DVSLTask">
  +    <classpath refid="maven-classpath"/>
  +  </taskdef>
   
     <goal 
  -    name="jdepend-gui">
  -
  -    <j:if test="${flags.useJDependGui}">
  -    
  -    <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>
  -    
  -    </j:if>
  -    
  -  </goal>
  +    name="jdependx"
  +    prereqs="maven:compile">
   
  -  <!-- ================================================================== -->
  -  <!-- J D E P E N D  X M L  T A R G E T                                  -->
  -  <!-- ================================================================== -->
  +    <j:if test="${sourcesPresent == 'true'}">
   
  -  <goal 
  -    name="jdepend-xml">
  -
  -    <j:if test="${flags.sourcesPresent}">
  +    <echo>${maven.build.dir} ${maven.build.dest}"</echo>
   
       <java 
         classname="jdepend.xmlui.JDepend" 
  -      fork="yes" 
  -      failonerror="yes">
  +      fork="true"
  +      failonerror="true">
         <arg line="-file '${maven.build.dir}/jdepend-raw-report.xml' 
'${maven.build.dest}'"/>
         <classpath>
           <path refid="maven-classpath"/>
  @@ -102,7 +46,7 @@
              of MavenTool -->
         <tool name="toolbox.string.basedir" value="${basedir}"/>
       </dvsl>
  -
  +    
       </j:if>
   
     </goal>
  
  
  

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

Reply via email to