On 3/28/06, Thomas E Enebo <[EMAIL PROTECTED]> wrote:
So do you think we will have that general pattern everywhere
we create a NormalizedFile?
NormalizedFil = file = new NormalizedFile(...)
if (!file.isAbsolute())
file = new NormalizedFile(...)
Or is there some consideration for this where it is not always the
case?
-Tom
On Tue, 28 Mar 2006, Charles O Nutter defenestrated me:
>
> I'm sure there will be more of these as we go on. The CWD issue is
> just one of those things in Java we're going to have to deal with. We
> simply can't set user.dir since we intend for JRuby to run multiple
> instances in the same VM, and frequently to run in controlled
> environments like servlet engines or app servers.
> The attached patch fixes all places where CWD was causing issues for
> RubyGems installation. These fixes are not exhaustive, but they do not
> appear to cause any regressions in any of our tests or working apps.
> One thing to look out for is any calls to getAbsolute(File|Path) and
> getCanonical(File|Path). These both end up using java.io.File and
> user.dir to expand paths, and so we must hack around that little side
> effect whenever these are called.
> --
> Charles Oliver Nutter @ [1]headius.blogspot.com
> JRuby Developer @ [2]jruby.sourceforge.net
> Application Architect @ [3]www.ventera.com
>
> References
>
> 1. http://headius.blogspot.com/
> 2. http://jruby.sourceforge.net/
> 3. http://www.ventera.com/
--
+ http://www.tc.umn.edu/~enebo +---- mailto: [EMAIL PROTECTED] ----+
| Thomas E Enebo, Protagonist | "Luck favors the prepared |
| | mind." -Louis Pasteur |
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Jruby-devel mailing list
Jruby-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jruby-devel
--
Charles Oliver Nutter @ headius.blogspot.com
JRuby Developer @ jruby.sourceforge.net
Application Architect @ www.ventera.com