ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Rogers" <jason.rog...@tumbleweed.com>
Subject RE: Problems with the get task on Windows 2000
Date Thu, 13 Sep 2001 16:03:33 GMT
Someone did have problems with this before... I believe that the answer was
that the server's clock was fast in relation to the client's clock.  Do you
get the same behavior after waiting a significant amount of time (say a day
or so)?  Is the server in the same time zone?

-Jason

    > -----Original Message-----
    > From: Per Thomas Jahr [mailto:perja@newmad.no]
    > Sent: Thursday, September 13, 2001 11:00 AM
    > To: ant-user@jakarta.apache.org
    > Subject: Problems with the get task on Windows 2000
    > 
    > 
    > Hi
    > 
    > I'm using the <get> task to install third party jar files 
    > from a web 
    > server (using the HTTP protocol) like this:
    > 
    > <target name="installjars">
    > <!-- create the lib folder for all third party jar files -->
    > 	<mkdir dir="${lib}" />
    > 	<!-- copy jar files to the lib folder -->
    > 	<get src="http://myweb.server.com/file1.jar"
    > 		dest="${lib}/file1.jar"
    > 		usetimestamp="true"
    > 		verbose="yes"/>
    > </target>
    > 
    > 
    > According to the ant documentation the file should only 
    > be downloaded if 
    > the timestamp on the server is newer than the local copy. 
    > This works 
    > very well on Linux and ant reports "Not modified - so not 
    > downloaded".
    > 
    > But on Windows 2000 it downloads the file every time...
    > 
    > I can't figure out whats wrong. Has anyone else had 
    > problems with this?
    > 
    > 
    > My specifications:
    > 
    > Web server: Apache
    > 
    > Windows 2000:
    > 
    >    - Java 2 (1.3.1-b24, mixed mode)
    >    - ant 1.3 (and I've also tested ant 1.4)
    > 
    > Linux (Debian):
    >    - Java 2 (Blackdown-1.3.1-FCS)
    >    - ant 1.3
    > 
    > 
    > 
    > Thanks
    > Per Thomas Jahr
    > 
    > 
    > 
    > 


Mime
View raw message