Skip to content
Browse files

Revert "Only copy files right from source. Do not recurse into sub-di…

…rectories. Fixes problems with .svn/ and such"

This reverts commit 2a9d6ec.
  • Loading branch information...
1 parent c345823 commit 4f34191495172c27db32d676f4d91742b00d7d6b @brandonramirez brandonramirez committed Mar 24, 2013
Showing with 4 additions and 24 deletions.
  1. +4 −24 lib/buildr.coffee
View
28 lib/buildr.coffee
@@ -351,30 +351,10 @@ class Buildr
return next err if err
# Copy srcPath to outPath
- fs.mkdir config.outPath, (mkdirError) ->
- return next mkdirError if mkdirError
-
- fs.readdir config.srcPath, (err, files) ->
- return next err if err
-
- copyableFiles = []
-
- statTasks = new util.Group (groupError) ->
- copyTasks = new util.Group (groupError) ->
- log 'debug', "Copied #{config.srcPath} to #{config.outPath}"
- next err
-
- copyTasks.total = copyableFiles.length
- copyableFiles.forEach (file) ->
- fs.readFile config.srcPath + '/' + file, 'utf8', (err, data) ->
- fs.writeFile config.outPath + '/' + file, data, 'utf8', copyTasks.completer()
-
- statTasks.total = files.length
-
- files.forEach (file) ->
- fs.stat config.srcPath + '/' + file, (error, stat) ->
- copyableFiles.push(file) if stat.isFile()
- statTasks.completer()()
+ util.cpdir config.srcPath, config.outPath, (err) ->
+ # Next
+ log 'debug', "Copied #{config.srcPath} to #{config.outPath}"
+ next err
# Completed
true

0 comments on commit 4f34191

Please sign in to comment.
Something went wrong with that request. Please try again.