DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22560>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22560

Touch doesn't work





------- Additional Comments From [EMAIL PROTECTED]  2003-08-19 17:45 -------
It could also be a bug in JDK as ant uses the JDk to do its job.
Here's my JDK

[EMAIL PROTECTED]> java -version
java version "1.4.2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-b28)
Java HotSpot(TM) Client VM (build 1.4.2-b28, mixed mode)


ant here's the relevant portion of an strace wrapping the java call in the ant
script that shows that indeed the system call utime is passed the wrong time.

------------------------------------------------------

write(1, "    [touch] Creating /home/jerom"..., 82    [touch] Creating
/home/jerome/IdeaProjects/basis/test-basis/Basis/buildta
g.txt) = 82
write(1, "\n", 1
)                       = 1
stat64("/home/jerome/IdeaProjects/basis/test-basis/Basis/buildtag.txt",
0xbfffd008) = -1 ENOENT (No such file or directory)
open("/home/jerome/IdeaProjects/basis/test-basis/Basis/buildtag.txt",
O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = 5
fstat64(5, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
close(5)                                = 0
access("/home/jerome/IdeaProjects/basis/test-basis/Basis/buildtag.txt", W_OK) = 0
gettimeofday({1061314351, 121200}, NULL) = 0
gettimeofday({1061314351, 121250}, NULL) = 0
gettimeofday({1061314351, 121284}, NULL) = 0
gettimeofday({1061314351, 121335}, NULL) = 0
gettimeofday({1061314351, 121371}, NULL) = 0
gettimeofday({1061314351, 121443}, NULL) = 0
gettimeofday({1061314351, 121570}, NULL) = 0
gettimeofday({1061314351, 121615}, NULL) = 0
gettimeofday({1061314351, 121648}, NULL) = 0
gettimeofday({1061314351, 122204}, NULL) = 0
gettimeofday({1061314351, 122239}, NULL) = 0
gettimeofday({1061314351, 122847}, NULL) = 0
stat64("/home/jerome/IdeaProjects/basis/test-basis/Basis/buildtag.txt",
{st_mode=S_IFREG|0644, st_size=0, ...}) = 0
utime("/home/jerome/IdeaProjects/basis/test-basis/Basis/buildtag.txt",
[1970/01/01-01:00:01, 1970/01/01-01:00:01]) = 0
stat64("/home/jerome/IdeaProjects/basis/test-basis/Basis",
{st_mode=S_IFDIR|S_ISGID|0755, st_size=4096, ...}) = 0
stat64("/home/jerome/IdeaProjects/basis/test-basis/Basis",
{st_mode=S_IFDIR|S_ISGID|0755, st_size=4096, ...}) = 0
write(1, "     [exec] Current OS is Linux", 31     [exec] Current OS is Linux) 
= 31
write(1, "\n", 1
)                       = 1
write(1, "     [exec] Executing \'/bin/ls\' "..., 211     [exec] Executing
'/bin/ls' with arguments:
     [exec] '-ls'
     [exec] 'buildtag.txt'
     [exec] 
     [exec] The ' characters around the executable and arguments are
     [exec] not part of the command.) = 211
write(1, "\n", 1
)

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to