Hello Peter,

I am having a look at that by running :

ant -f src/etc/testcases/taskdefs/get.xml testUseTimestamp

[touch] Creating /Users/antoine/dev/asf/ant-core/src/etc/ testcases/taskdefs/get.tmp
      [get] Getting: http://www.apache.org/
[get] To: /Users/antoine/dev/asf/ant-core/src/etc/testcases/ taskdefs/get.tmp
      [get] local file date : Thu Feb 22 19:18:00 EST 2007
      [get] ...........
[get] last modified = Wed Dec 31 19:00:00 EST 1969 - using current time instead

This seems to mean that http://ant.apache.org/index.html does not give back a valid modification date any more to HttpURLConnection.

I have tried with a JDK 1.5.x and 1.4.2 on my Mac, in both cases the result is the same.

Next thing is to see whether I can get an intelligent last modified date from other web sites.

Regards,

Antoine


On Feb 13, 2007, at 12:15 PM, Peter Reilly wrote:

this is due to:

   [junit] Testcase:
testUseTimestamp(org.apache.tools.ant.taskdefs.GetTest):        Caused an
ERROR
   [junit] get w/ timestamp should have failed.
[junit] /x1/gump/public/workspace/ant/src/etc/testcases/taskdefs/ get.xml:72:
get w/ timestamp should have failed.
[junit] at org.apache.tools.ant.taskdefs.Exit.execute(Exit.java: 142)

Peter



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

Reply via email to