ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 47821] Touch task doesn't work on Solaris for a file which you do not own
Date Mon, 14 Sep 2009 10:05:47 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=47821

Stefan Bodewig <bodewig@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX

--- Comment #1 from Stefan Bodewig <bodewig@apache.org> 2009-09-14 03:05:45 PDT ---
As you've found yourself, Ant is using the Java API and not the native Unix
touch command.  Inside the Java API there is no alternative to
File.setLoastModified(long).

Honestly I have no idea how that method is implemented inside the Java class
library.  It may be smart enough to recognize the current timestamp and then
invoke a different system call than it uses when asked for a different
timestamp, but I doubt it.

Anyway, if the Java class lib isn't doing the "correct" thing for you here,
there isn't anything we can do from the Ant side.

I'd recommend you use the exec task and explicitly invoke the touch command for
your case.

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

Mime
View raw message