ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <jakarta-...@ehatchersolutions.com>
Subject Re: Recursive send using optional FTP task
Date Sun, 05 Jan 2003 03:00:26 GMT
Try adding this to <ftp>:

	ignoreNoncriticalErrors="true"


On Saturday, January 4, 2003, at 08:09  PM, Iwan wrote:

> Hi,
>
> I want to use Ant to update my website after building the servlets etc
> using Ant as well.
>
> My site is accessed using FTP so I use the optional FTP-task of Ant
> 1.5.1. Now when I send the files over, only the files in the root are
> copied, any attempt to copy a file from a local sub-dir in a
> corresponding remote sub-dir is greeted by an error saying that the
> sub-dir on the remote site already exists (which is true). Now I don't
> care that the remote sub-dir already exists, I just want all the files
> overwritten when I have newer versions locally. Anybody any clue on how
> to this without handling every dir manually?
>
> Btw, this is my Ant sniplet where I want to do this.
>
>     <target name="deployHTML">
>         <echo message="Deploying HTML-files"/>
>         <ftp password="MyPassWord"
>              remotedir="htdocs"
>              server="www.mydomain.com"
>              userid="MyUserID"
>              skipFailedTransfers="yes">
>              <fileset dir="web">
>                 <include name="**/*.html"/>
>                 <include name="**/*.htm"/>
>              </fileset>
>         </ftp>
>     </target>
>
> Iwan
> ----
> ICQ: 31720413 / M$N: ieising@hotmail.com
> www.i-ware.net / www.cyberhighscore.com
>
>
>
>
> --
> To unsubscribe, e-mail:   
> <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: 
> <mailto:ant-user-help@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message