buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Toulme (JIRA)" <j...@apache.org>
Subject [jira] Updated: (BUILDR-380) Recursive search for root '/' does not work in windows
Date Sat, 27 Feb 2010 23:05:05 GMT

     [ https://issues.apache.org/jira/browse/BUILDR-380?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Antoine Toulme updated BUILDR-380:
----------------------------------

    Attachment: BUILDR-380.txt

Here is a fix that doesn't use anything OS specific.

> Recursive search for root '/' does not work in windows
> ------------------------------------------------------
>
>                 Key: BUILDR-380
>                 URL: https://issues.apache.org/jira/browse/BUILDR-380
>             Project: Buildr
>          Issue Type: Bug
>    Affects Versions: 1.3.5
>         Environment: Windows, using jruby
>            Reporter: Jan Sinschek
>            Priority: Minor
>         Attachments: BUILDR-380.txt
>
>   Original Estimate: 0.08h
>  Remaining Estimate: 0.08h
>
> In core\build.rb, line 375, 
>           File.expand_path(Dir.pwd) != '/' && Dir.chdir('..') do
>                  [recursive call]
> is used when looking for a git config file. This method does not work on windows, where
the path description never gets that short.
> While 
>           File.expand_path(Dir.pwd) != '/' && File.expand_path(Dir.pwd) != 'C:/'
 && Dir.chdir('..') do
> worked for me, this is not an adequate solution. I assume that the ruby standard library
offers an "is system root" method which would be adequate.

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


Mime
View raw message