Return-Path: Delivered-To: apmail-buildr-users-archive@www.apache.org Received: (qmail 32889 invoked from network); 11 Dec 2009 22:29:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Dec 2009 22:29:41 -0000 Received: (qmail 31137 invoked by uid 500); 11 Dec 2009 22:29:41 -0000 Delivered-To: apmail-buildr-users-archive@buildr.apache.org Received: (qmail 31058 invoked by uid 500); 11 Dec 2009 22:29:41 -0000 Mailing-List: contact users-help@buildr.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@buildr.apache.org Delivered-To: mailing list users@buildr.apache.org Received: (qmail 31047 invoked by uid 99); 11 Dec 2009 22:29:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Dec 2009 22:29:41 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of antoine.toulme@gmail.com designates 209.85.223.173 as permitted sender) Received: from [209.85.223.173] (HELO mail-iw0-f173.google.com) (209.85.223.173) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Dec 2009 22:29:08 +0000 Received: by iwn3 with SMTP id 3so960639iwn.19 for ; Fri, 11 Dec 2009 14:28:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:reply-to:received :in-reply-to:references:from:date:x-google-sender-auth:message-id :subject:to:cc:content-type; bh=C/+0o0fuB3+ia8TKsGqoxtWHw0lxtEOweOJuTkbT55A=; b=abdUJmwIW223CVbmUrSbK/oGw02sZs2fZjtrPFRQ7S8TZKrq5YYzRoffpFjosTu8aB IZ5gLPw2BM08xiS1BgVCA592d/NRy8t6+HcgBWlewVm0hYm+BxGs5Dw//eJcMR25jexJ SnP7F6zhkZxWoOWcOWpmF6dxpIUNOo8vwzakA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:reply-to:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; b=MfQMiFmQs1TqawfmIXTKNkqAJFe1ok3e2YFoNQ4kYgkneb1OhUM8P6Xm7xJ49IbLq7 IFk71R1fMy/Va4n97rrp1Pne6rYWtZ4fFfKpdkva5gTiM7ziQB/v3jaN9w/2fxorq1ye HRTyEcdXZZB0LWJaOC6wGXFv6jOFgefjdeQ+o= MIME-Version: 1.0 Sender: antoine.toulme@gmail.com Reply-To: antoine@lunar-ocean.com Received: by 10.231.24.142 with SMTP id v14mr974924ibb.55.1260570526123; Fri, 11 Dec 2009 14:28:46 -0800 (PST) In-Reply-To: <4dcd15a90912111412ie97df00w713e3f82928c9fdf@mail.gmail.com> References: <4dcd15a90912111412ie97df00w713e3f82928c9fdf@mail.gmail.com> From: Antoine Toulme Date: Fri, 11 Dec 2009 14:28:26 -0800 X-Google-Sender-Auth: 67d8d4be94bb457c Message-ID: Subject: Re: Support for Windows 7 64 bit To: Alex Boisvert Cc: users@buildr.apache.org Content-Type: multipart/alternative; boundary=0015177418846c85d7047a7b72cf --0015177418846c85d7047a7b72cf Content-Type: text/plain; charset=ISO-8859-1 Alex, could we do a try/catch around the stat.dev call ? I would have a hard time knowing whether the platform is supported or not. And then do a copy/delete instead of the move in that very case. Yes, I can work on a patch. But I don't have a 64 bit machine around to test. Thanks, Antoine On Fri, Dec 11, 2009 at 14:12, Alex Boisvert wrote: > I would detect the platform, avoid using File.stat.dev and do a copy/delete > instead of the move. > > If you want to work on a patch for this, I'll be happy to apply it. > > alex > > > > On Fri, Dec 11, 2009 at 1:23 PM, Antoine Toulme wrote: > >> Hi guys, >> >> we have trouble here with one computer running Windows 7 64 bit. >> >> Buildr installs fine on top of JRuby but it crashes with this message: >> stat.st_dev unsupported on this platform >> >> That sounded like a JRuby problem, so I asked the IRC channel there. I was >> told this would not be working on 64 bit archs. >> >> This problem arises when moving files, here, with that monkey patching: >> # Fix for BUILDR-292. >> # JRuby fails to rename a file on different devices >> # this monkey-patch wont be needed when JRUBY-3381 gets resolved. >> module FileUtils #:nodoc: >> alias_method :__mv_native, :mv >> >> def mv(from, to, options = nil) >> dir_to = File.directory?(to) ? to : File.dirname(to) >> Array(from).each do |from| >> dir_from = File.dirname(from) >> if File.stat(dir_from).dev != File.stat(dir_to).dev >> cp from, to, options >> rm from, options >> else >> __mv_native from, to, options >> end >> end >> end >> private :mv >> end >> >> I see http://jira.codehaus.org/browse/JRUBY-3381 is still opened. I don't >> understand the last comment by Charles Oliver Nutter. >> >> What would be the right approach now ? Ask for a 64 bit distrib of JRuby ? >> Try to catch the error and work around it ? >> >> I suggested the user tried Cygwin for now but I would feel better with >> something less clunky. >> Any help is much welcome. >> >> Thanks, >> >> Antoine >> > > --0015177418846c85d7047a7b72cf--