On windows, RubySpec failure:
mspec -t j core\dir
jruby 1.5.0.dev (ruby 1.8.7 patchlevel 174) (2010-01-08 f024eb2) (Java HotSpot(TM) Client VM 1.6.0_17) [x86-java]
Dir.mkdir creates the named directory with the given permissions FAILED
not to equal 16877
got some tests on this, it's practically impossible to fix in windows, File.setReadable, setExecutable and setWritable do nothing. The only way to fix this is wait jdk7 and NIO2?
Our jnr-posix library gives us the ability to call windows Kernel32, etc... functions directly. So when native is enabled (which is our default) we can do it properly (though I am guessing we don't currently). when jruby.native.enabled=false it will be pure Java and broken...which is ok since Java does not currently give us the power.
So there's the marching orders: figure out the proper logic and help us bind it into jnr-posix
Ok, I've done some research and study about jna and jnr-posix.
It seems ok, the function _wchmod mapped to the native library return 0, but we need a method to map Windows permissions to posix permissions. I would like to know what do you think about and how to continue, thx
Update, I've send a pull request because now the spec pass for me on Windows
Looks like we need jnr-posix to incoporate Luca's changes for this one. Marking for 1.6, but may not make RC3 (todayish).
I've already done a pull request to jruby/jnr-posix. Ready to merge
Looks like this fell through the cracks. Patch provided for jnr-posix, just need to pull it in?
Marked as blocker for 1.6.4, so it doesn't fall again.
Applied to next upcoming version of jnr-posix for 1.6.x and also different jnr-posix being used for master. Thanks lukefx.