Skip to content

Commit

Permalink
Remove file paths from -coverage files after they are processed
Browse files Browse the repository at this point in the history
  • Loading branch information
davglass committed Aug 8, 2012
1 parent c786859 commit e35347b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions componentbuild/shared/targets.xml
Expand Up @@ -80,6 +80,15 @@
<target name="build-coverage" unless="coverage.skip"> <target name="build-coverage" unless="coverage.skip">
<echo>Creating coverage file for: ${component.builddir}/${component.basefilename}.js</echo> <echo>Creating coverage file for: ${component.builddir}/${component.basefilename}.js</echo>
<yuicoverage src="${component.builddir}/${component.basefilename}.js" dest="${component.builddir}/${component.basefilename}-coverage.js" /> <yuicoverage src="${component.builddir}/${component.basefilename}.js" dest="${component.builddir}/${component.basefilename}-coverage.js" />
<move file="${component.builddir}/${component.basefilename}-coverage.js" tofile="${component.builddir}/${component.basefilename}-coverage.js.tmp" />

<move file="${component.builddir}/${component.basefilename}-coverage.js.tmp" tofile="${component.builddir}/${component.basefilename}-coverage.js">
<filterchain>
<tokenfilter>
<replacestring from="${component.builddir}" to="/build/${component.basefilename}"/>
</tokenfilter>
</filterchain>
</move>
</target> </target>


<!-- MIN --> <!-- MIN -->
Expand Down

0 comments on commit e35347b

Please sign in to comment.