You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-dev@jakarta.apache.org by vm...@apache.org on 2003/02/07 13:18:57 UTC

cvs commit: jakarta-cactus/documentation build.xml

vmassol     2003/02/07 04:18:57

  Modified:    documentation build.xml
  Log:
  Added generation of Clover reports if clover.enable is defined.
  
  Revision  Changes    Path
  1.35      +63 -1     jakarta-cactus/documentation/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-cactus/documentation/build.xml,v
  retrieving revision 1.34
  retrieving revision 1.35
  diff -u -r1.34 -r1.35
  --- build.xml	6 Feb 2003 08:55:39 -0000	1.34
  +++ build.xml	7 Feb 2003 12:18:56 -0000	1.35
  @@ -277,10 +277,72 @@
   
       <!--
          ========================================================================
  +         Copy clover files and generate the Clover report.
  +       ========================================================================
  +    -->
  +    <target name="dist.clover.check.12" depends="init" if="clover.enable">
  +
  +        <condition property="clover.enable.ok.12" value="true">
  +            <and>
  +                <available file="${clover.initstring.12}"/>
  +            </and>
  +        </condition>
  +
  +    </target>
  +
  +    <target name="dist.clover.12" depends="dist.clover.check.12" 
  +        if="clover.enable.ok.12">
  +        
  +        <java classname="com.cortexeb.tools.clover.reporters.html.HtmlReporter">
  +
  +            <arg value="--outputdir"/>
  +            <arg path="${dist.doc.dir}/clover-12"/>
  +            <arg value="--showSrc"/>
  +            <arg value="--initstring"/>
  +            <arg path="${clover.initstring.12}"/>
  +            <arg value="--title"/>
  +            <arg value="'Cactus ${project.version} for J2EE API 12'"/>
  +
  +        </java>
  +
  +    </target>
  +
  +    <target name="dist.clover.check.13" depends="init" if="clover.enable">
  +
  +        <condition property="clover.enable.ok.13" value="true">
  +            <and>
  +                <available file="${clover.initstring.13}"/>
  +            </and>
  +        </condition>
  +
  +    </target>
  +
  +    <target name="dist.clover.13" depends="dist.clover.check.13" 
  +        if="clover.enable.ok.13">
  +        
  +        <java classname="com.cortexeb.tools.clover.reporters.html.HtmlReporter">
  +
  +            <arg value="--outputdir"/>
  +            <arg path="${dist.doc.dir}/clover-13"/>
  +            <arg value="--showSrc"/>
  +            <arg value="--initstring"/>
  +            <arg path="${clover.initstring.13}"/>
  +            <arg value="--title"/>
  +            <arg value="'Cactus ${project.version} for J2EE API 13'"/>
  +
  +        </java>
  +
  +    </target>
  +
  +    <target name="dist.clover" depends="dist.clover.12,dist.clover.13">
  +    </target>
  +
  +    <!--
  +       ========================================================================
            Generate the artifacts.
          ========================================================================
       -->
  -    <target name="dist" depends="doc,dist.javadoc" 
  +    <target name="dist" depends="doc,dist.javadoc,dist.clover" 
           description="Generate the documentation">
   
           <mkdir dir="${dist.doc.dir}"/>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: cactus-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: cactus-dev-help@jakarta.apache.org