Changeset 1255

Show
Ignore:
Timestamp:
01/18/08 00:08:36 (7 months ago)
Author:
mikey
Message:

delete report data only if a new report is generated

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/build/stubbles/build.xml

    r1254 r1255  
    220220 
    221221  <target name="test-new" description="run test suite"> 
    222     <delete> 
    223       <fileset dir="${build.report.dir}"> 
    224         <include name="**/*"/> 
    225         <exclude name="**/api/*"/> 
    226         <exclude name="**/report.css"/> 
    227         <exclude name="**/report.js"/> 
    228       </fileset> 
    229     </delete> 
    230222    <phingcall target="test-preparation" /> 
    231223    <php expression="extension_loaded('xdebug');" returnProperty="xdebug"/> 
     
    236228      </and> 
    237229      <then> 
    238         <echo message="${build.report.dir}"/> 
     230        <delete> 
     231          <fileset dir="${build.report.dir}"> 
     232            <include name="**/*"/> 
     233            <exclude name="**/api/*"/> 
     234            <exclude name="**/report.css"/> 
     235            <exclude name="**/report.js"/> 
     236          </fileset> 
     237        </delete> 
    239238        <exec passthru="true" command="phpunit --log-metrics ${build.report.dir}/metrics.xml --log-pmd ${build.report.dir}/pmd.xml --coverage-html ${build.report.dir}/coverage src_test_AllTests"/> 
    240239        <xslt file="${build.report.dir}/pmd.xml" tofile="${build.report.dir}/pmd.html" style="${stubbles.base.dir}/build/stubbles/xsl/pmd.xsl"/>