antlets/jdepend/src tasks.properties,NONE,1.1 xbuild.xml,NONE,1.1

[email protected]
Newsgroups gmane.comp.krysalis.metamorphosis.cvs
Message-ID <[email protected]>
Update of /cvsroot/metamorphosis/antlets/jdepend/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1222/jdepend/src

Added Files:
	tasks.properties xbuild.xml 
Log Message:
first try to integrate output from report generating antlets with forrest

--- NEW FILE: tasks.properties ---
#jdepend tasks
jdependtask=org.apache.tools.ant.taskdefs.optional.jdepend.JDependTask

--- NEW FILE: xbuild.xml ---
<?xml version="1.0"?>
<project default="jdepend-xml" name="jdepend.antlet">


  <dirname property="jdepend.antlet.dir" file="${ant.file.jdepend.antlet}"/>

  <echo message="JDEPEND: ${jdepend.antlet.dir}"/>
  
 <!-- Classpath for my jars -->
 <path id="jdepend.classpath">
    <fileset dir="${jdepend.antlet.dir}/lib/">
      <include name="*.jar"/>
    </fileset>
  </path>
  
  <taskdef file="${jdepend.antlet.dir}/tasks.properties" classpathref="jdepend.classpath"/>
  
  <description>
    Generates project code dependency metrics.
  </description>
 
  <!-- =================================================================== -->
  <!-- XML version                                                          -->
  <!-- =================================================================== -->
  <target name="jdepend" description="Generates metrics report in xml format">

    <mkdir dir="${jdepend.antlet.work.dir}"/>
	<echo message="jdepend-xml"/>
	
	<!-- TODO: work dir is not set yet -->
    <jdependtask format="xml" fork="yes" outputfile="${jdepend.antlet.work.dir}/jdepend-report.xml">
        <sourcespath>
            <pathelement location="${project.src.dir}" />
        </sourcespath>
        <classpath>
            <pathelement location="${project.build.dir}/classes" />      
            <path refid="${project.name}.classpath" />
             <path refid="jdepend.classpath" />
        </classpath>
    </jdependtask>

  </target>
  
  <!-- =================================================================== -->
  <!-- Set the xdoc dir                                                  -->
  <!-- =================================================================== -->
  <target name="-jdepend.antlet.init">
    <property name="jdepend.antlet.xdocs.dir" value="${forrest.antlet.generated.xdocs.dir}/jdepend"/> 
  </target>

  <!-- =================================================================== -->
  <!-- XDoc version                                                        -->
  <!-- =================================================================== -->
  <target name="jdepend-report" depends="jdepend,-jdepend.antlet.init" 
          description="Generates metrics report in xdoc format">

     <copy todir="${jdepend.antlet.work.dir}">
           <fileset dir="${jdepend.antlet.dir}/resources"/>
     </copy>

     <!-- if>
       <available file="${docs.dir}/override/jdepend" type="dir" property="jdepend.override.present"/>
       <then>
         <copy todir="${jdepend.antlet.work.dir}" filtering="off" overwrite="true">
           <fileset dir="${docs.dir}/override/jdepend"/>
         </copy>
       </then>
     </if -->  

     <style in="${jdepend.antlet.work.dir}/jdepend-report.xml"
            out="${jdepend.antlet.work.dir}/xdocs/index.xml"
            style="${jdepend.antlet.dir}/resources/stylesheets/jdepend2document11.xsl"/>

     <copy todir="${jdepend.antlet.xdocs.dir}">
       <fileset dir="${jdepend.antlet.work.dir}/xdocs"/>
     </copy>
  </target>

</project>  



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.