Ensure that the dependency checking will check the time of the target file 
rather than the containing directory

git-svn-id: https://svn.apache.org/repos/asf/buildr/trunk@1537851 
13f79535-47bb-0310-9956-ffa450edef68


Project: http://git-wip-us.apache.org/repos/asf/buildr/repo
Commit: http://git-wip-us.apache.org/repos/asf/buildr/commit/6fcf5e28
Tree: http://git-wip-us.apache.org/repos/asf/buildr/tree/6fcf5e28
Diff: http://git-wip-us.apache.org/repos/asf/buildr/diff/6fcf5e28

Branch: refs/heads/master
Commit: 6fcf5e282fe4505f8acf4d321eec468fccba29a9
Parents: 7728d4e
Author: Peter Donald <[email protected]>
Authored: Fri Nov 1 08:46:19 2013 +0000
Committer: Peter Donald <[email protected]>
Committed: Fri Nov 1 08:46:19 2013 +0000

----------------------------------------------------------------------
 lib/buildr/core/assets.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/buildr/blob/6fcf5e28/lib/buildr/core/assets.rb
----------------------------------------------------------------------
diff --git a/lib/buildr/core/assets.rb b/lib/buildr/core/assets.rb
index 95229a4..d5ca2ff 100644
--- a/lib/buildr/core/assets.rb
+++ b/lib/buildr/core/assets.rb
@@ -59,7 +59,7 @@ module Buildr #:nodoc:
                 f = f[source_dir.length + 1, 10000]
                 source = "#{asset}/#{f}"
                 target = "#{name}/#{f}"
-                if !File.exist?(target) || File.mtime(name.to_s) < 
File.mtime(source)
+                if !File.exist?(target) || File.mtime(target) < 
File.mtime(source)
                   mkdir_p File.dirname(target)
                   cp source, target
                 end

Reply via email to