ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <>
Subject Re: FTP Question
Date Fri, 29 Dec 2000 20:08:33 GMT
Can't say for sure, since I haven't tried it, but you might want to try
only specifying <fileset dir="${coImages}/**"/>, since the documentation
seems to suggest this will find all the files from the specified dir on

Also, just fyi -- you don't need to do a <mkdir> for every directory
element, since the <mkdir> task works like 'mkdir -p' (uses mkdirs()).


--- "Neal, Eddie" <> wrote:
> I am trying to use the FTP task to move images files from a repository
> to the web server.  The images directory contains several subdirectories
> with images.  I want to recursively "get" everything in the repository
> and copy to the web server. I am able to get the top level images files
> but am not able to get the subdirectories.  Is it possible to
> recursively get?   Here is the code I am trying:
> 	<target name="getImages" depends="init">
> 		<echo message="building images file..."/>
> 		<mkdir dir="${coImages}"/>
> 		<mkdir dir="${coImages}/Backgrounds"/>
> 		<echo message="Getting images..."/>
> 		<ftp action="get"
> 			verbose="yes"
> 			server=""
> 			userid="xxxxx"
> 			password="yyyy"
> 			remotedir="/home/images/">
> 			<fileset dir="${coImages}"
> 				includes="**/*"
> 			/>
> 		</ftp>
> 	</target><!-- end of get images target -->
> thanks
> Eddie Neal


Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!

View raw message