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 2009/02/11 10:32:59 UTC

[jira] Created: (BUILDR-249) Filter#run updates target timestamp when there are directory mappings

Filter#run updates target timestamp when there are directory mappings
---------------------------------------------------------------------

                 Key: BUILDR-249
                 URL: https://issues.apache.org/jira/browse/BUILDR-249
             Project: Buildr
          Issue Type: Bug
          Components: Core features
    Affects Versions: 1.3.4
            Reporter: Ittay Dror
             Fix For: 1.3.4


Filter#run first creates a variable, copy_map for all destinations that need refreshing (older than source)
Then if the copy_map is not empty, it iterates each entry, if the source is a directory, it creates the destination directory and continues. At the end it touches the root target directory.

Since if the destination directory exists, it is not touched (mkpath doesn't change timestamps), the result is that if there is a source directory newer than an existing destination directory, they will always appear in copy_map and as a result the root target timestamp is always updated, which causes the jar task to alwyas run, which cases all those dependent on it to recompile. 

I guess this is not evident normally, because of bug BUILDR-205 which causes the filter task to not run at all if the root target already exist, but since I wanted resources to actually be copied when needed, I worked around the bug by forcing the task to always run. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.