FileUtils.touch / File.utime failing if file exists.
----------------------------------------------------

                 Key: JRUBY-1982
                 URL: http://jira.codehaus.org/browse/JRUBY-1982
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.1RC1
         Environment: JRuby HEAD (5631)  and JRuby 1.1RC1

java version "1.6.0_03"
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode)

            Reporter: Victor Hugo Borja


First time FileUtils.touch is executed, it creates the "me" file as expected; 
Second time (with the me file created) it raises ENOENT.

    $ java -jar lib/jruby.jar -rfileutils -e "FileUtils.touch('me'); p 
File.mtime('me')"
    Wed Jan 16 22:34:13 UTC 2008

    $ java -jar lib/jruby.jar -rfileutils -e "FileUtils.touch('me'); p 
File.mtime('me')"
    -e:1: No such file or directory - me (Errno::ENOENT)
    
More details on this Buildr comment:
https://issues.apache.org/jira/browse/BUILDR-3?focusedCommentId=12559657#action_12559657

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to