You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2010/06/22 03:25:22 UTC

DO NOT REPLY [Bug 49485] New: Touch tasks ignores errors from java.io.File.setLastModified under some conditions

https://issues.apache.org/bugzilla/show_bug.cgi?id=49485

           Summary: Touch tasks ignores errors from
                    java.io.File.setLastModified under some conditions
           Product: Ant
           Version: 1.8.1
          Platform: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core tasks
        AssignedTo: notifications@ant.apache.org
        ReportedBy: mike.dobozy@amentra.com


The ant touch task currently ignores error conditions coming back from the
java.io.File.setLastModified call under some conditions.

To reproduce, take the following steps. Assume for the sake of the test that
there are two users - userA and userB - in a group called "testusers".

1. Create a file called foo.txt. Ensure that this file is owned by userA and
group writeable - I used 664 as the permissions mask.
2. As userB, run an ant script containing <touch file="foo.txt" />.

The script will execute fully, but fail silently - the failure result coming
back from the java.io.File.setLastModified call inside touch is ignored. The
failure in this case is appropriate; however, the user should be alerted to the
issue.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 49485] Touch tasks ignores errors from java.io.File.setLastModified under some conditions

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49485

Stefan Bodewig <bo...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |1.8.2
         OS/Version|                            |All

--- Comment #1 from Stefan Bodewig <bo...@apache.org> 2010-06-24 03:40:13 EDT ---
starting with svn revision 957442 Ant logs a warning message.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.