Permalink
Browse files

Remove file paths from -coverage files after they are processed

  • Loading branch information...
davglass committed Aug 8, 2012
1 parent c786859 commit e35347b2d9400d2a1ff1ef3e86f6f0a7d81ebea8
Showing with 9 additions and 0 deletions.
  1. +9 −0 componentbuild/shared/targets.xml
@@ -80,6 +80,15 @@
<target name="build-coverage" unless="coverage.skip">
<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" />
+ <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>
<!-- MIN -->

0 comments on commit e35347b

Please sign in to comment.