[ 
https://issues.apache.org/jira/browse/BUILDR-41?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12568304#action_12568304
 ] 

Shane Witbeck commented on BUILDR-41:
-------------------------------------

Looking at changes to the source since 1.2.10, it looks as though a change made 
on Jan 5 resulted in the inconsistent behavior I'm experiencing:

def from(*sources)
      @sources |= sources.flatten.map { |dir| file(File.expand_path(dir.to_s)) }
      self
end

to

def from(*sources)
      @sources |= sources.flatten.map { |dir| file(dir.to_s) }
      self
end

Notice the source dir is no longer wrapped with File.expand_path. This resulted 
in the following change to my path in question:

c:\Users\witbsha (without File.expand_path)

c:/Users/witbsha (with File.expand_path)

Note that the above paths were derived from usage of Gem::user_home.

> Inconsistent Buildr.filter behavior between 1.2.10 and 1.3.0
> ------------------------------------------------------------
>
>                 Key: BUILDR-41
>                 URL: https://issues.apache.org/jira/browse/BUILDR-41
>             Project: Buildr
>          Issue Type: Bug
>          Components: Core features
>    Affects Versions: 1.3
>         Environment: Windows XP
>            Reporter: Shane Witbeck
>
> Running the following command with Buildr 1.3.0 doesn't seem to work part of 
> the time. I've verified it does work consistently in 1.2.10.
> Buildr.filter.from(src).to(dest).run
> Where src and dest are directory paths created from using File.join

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

Reply via email to