You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by "Victor Hugo Borja (JIRA)" <ji...@apache.org> on 2008/03/07 19:07:46 UTC

[jira] Resolved: (BUILDR-54) File.normalize_path broken on Mac OS X

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

Victor Hugo Borja resolved BUILDR-54.
-------------------------------------

    Resolution: Fixed

Thanks Nick, now fixed in trunk, I also added /windows/i to the pattern, because of:

$ ~/opt/jruby-1.1RC2/bin/jruby -rrbconfig -e 'p Config::CONFIG["host_os"]'
"Windows XP"


> File.normalize_path broken on Mac OS X
> --------------------------------------
>
>                 Key: BUILDR-54
>                 URL: https://issues.apache.org/jira/browse/BUILDR-54
>             Project: Buildr
>          Issue Type: Bug
>          Components: Core features
>    Affects Versions: 1.3
>         Environment: Mac OS X
>            Reporter: Nick Sieger
>            Assignee: Victor Hugo Borja
>            Priority: Blocker
>             Fix For: 1.3
>
>         Attachments: common-mswin.patch
>
>
> The File.normalize_path function introduced in rev 634463 is broken on Mac. The code:
> {noformat}
> Config::CONFIG["host_os"] =~ /win/i
> {noformat}
> is not sufficient to detect Windows, because on Mac OS X:
> {noformat}
> $ ruby -rrbconfig -e 'puts Config::CONFIG["host_os"]'
> darwin9.0
> $ jruby -rrbconfig -e 'puts Config::CONFIG["host_os"]'
> darwin
> {noformat}
> Attached is a patch to fix.

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