]> source.dussan.org Git - jquery-ui.git/commitdiff
Build/grunt: Fix copying of binary files
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Thu, 22 Mar 2012 20:28:55 +0000 (21:28 +0100)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Thu, 22 Mar 2012 20:28:55 +0000 (21:28 +0100)
grunt.js

index bbc358e4b47b49dfe75d310294b5b0e544da36d1..dfc9c63b59bd973824309cd4d8e02d1439da0695 100644 (file)
--- a/grunt.js
+++ b/grunt.js
@@ -438,6 +438,7 @@ task.registerTask( "download_themes", function() {
 });
 
 task.registerTask( "copy_themes", function() {
+       var fs = require( "fs" );
        // each package includes the base theme, ignore that
        var filter = /themes\/base/;
        var files = file.expand( "dist/tmp/*/development-bundle/themes/**/*" ).filter(function( file ) {
@@ -447,7 +448,7 @@ task.registerTask( "copy_themes", function() {
        var target = "dist/" + template.process( config( "files.themes" ), config() ) + "/";
        files.forEach(function( fileName ) {
                var targetFile = fileName.replace( /dist\/tmp\/\d+\/development-bundle\//, "" ).replace( "jquery-ui-.custom", "jquery-ui" );
-               file.copy( fileName, target + targetFile );
+               file.write( target + targetFile, fs.readFileSync( fileName ) );
        });
 
        // copy minified base theme from regular release