You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by "Ittay Dror (JIRA)" <ji...@apache.org> on 2008/11/03 17:17:44 UTC
[jira] Created: (BUILDR-199) ArchiveTask#needed uses 'each' with no
effect
ArchiveTask#needed uses 'each' with no effect
---------------------------------------------
Key: BUILDR-199
URL: https://issues.apache.org/jira/browse/BUILDR-199
Project: Buildr
Issue Type: Bug
Affects Versions: 1.3.4
Reporter: Ittay Dror
Fix For: 1.3.4
this is some of the code of the method:
most_recent = @paths.collect { |name, path| path.sources }.flatten
each { |src| File.directory?(src) ? Util.recursive_with_dot_files(src) | [src] : src }.flatten.
select { |file| File.exist?(file) }.collect { |file| File.stat(file).mtime }.max
File.stat(name).mtime < (most_recent || Rake::EARLY) || super
the 'each' call effectively a noop (being that each just returns the same array)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (BUILDR-199) ArchiveTask#needed uses 'each' with
no effect
Posted by "Assaf Arkin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/BUILDR-199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Assaf Arkin resolved BUILDR-199.
--------------------------------
Resolution: Fixed
Thanks, fixed in head.
> ArchiveTask#needed uses 'each' with no effect
> ---------------------------------------------
>
> Key: BUILDR-199
> URL: https://issues.apache.org/jira/browse/BUILDR-199
> Project: Buildr
> Issue Type: Bug
> Affects Versions: 1.3.4
> Reporter: Ittay Dror
> Fix For: 1.3.4
>
>
> this is some of the code of the method:
> most_recent = @paths.collect { |name, path| path.sources }.flatten
> each { |src| File.directory?(src) ? Util.recursive_with_dot_files(src) | [src] : src }.flatten.
> select { |file| File.exist?(file) }.collect { |file| File.stat(file).mtime }.max
> File.stat(name).mtime < (most_recent || Rake::EARLY) || super
> the 'each' call effectively a noop (being that each just returns the same array)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.