ant ftp task "Could not date test remote file"
Posted
by
avok00
on Stack Overflow
See other posts from Stack Overflow
or by avok00
Published on 2011-02-19T14:33:27Z
Indexed on
2011/02/19
15:25 UTC
Read the original article
Hit count: 306
Hi guys!
I am using Ant ftp task to deploy my project files to a remote app server. Ant is not able to detect the date of the remote file and it re-uploads all files every time.
When I start Ant in debug mode it says:
[ftp] checking date for mailer.war
[ftp] Could not date test remote file: mailer.war assuming out of date.
The remote server is MS FTP (Windows Vista version) Ant version is 1.8.2; I use commons-net-2.2 and jakarta-oro-2.0.8 (could not find newer version)
My ant task looks like this
<!-- Deploy new and changed files -->
<target name="deploy" depends="package" description="Deploy new and changed files">
<ftp server="localhost"
userid="" password=""
action="send" depends="yes"
passive="true"
systemTypeKey="WINDOWS" serverTimeZoneConfig="Europe/Sofia"
defaultDateFormatConfig="MMM dd yyyy" recentDateFormatConfig="MMM dd HH:mm"
binary="true" retriesAllowed="3"
verbose="true">
<fileset dir="${webapp.artefacts.path}"/>
</ftp>
</target>
I read an article here: Ant:The definitive guide that says I need a version of jakarta oro AFTER 2.0.8 to talk to MS FTP servers, but I was not able to find such version. Jakarta oro site - http://jakarta.apache.org/oro/ says the oro project is retired as of 2010, but their latest distribution is from 2003!
Please, can anyone help me with this? Any solution or any alternatives to the Ant ftp task? Thanks!
© Stack Overflow or respective owner