ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shvartsburd, Feliks" <Feliks.Shvartsb...@kmv.com>
Subject RE: looping in ant
Date Mon, 04 Feb 2002 23:58:58 GMT
Sure
 
      <target name="copyFile">
		<copy todir="c:/Deployment">
			<fileset dir="${temp}/build/dist"/>
		</copy>
	</target>


Where file that is in directory dist is some .zip file. As I mentioned its
name is not static. But there should be one file
only and its ext is ZIP. So, I need to copy that file to deployment dir and
change its name. I could've used copy file="..."
but I don't know the file name at run time. 

Thanks



-----Original Message-----
From: Diane Holt [mailto:holtdl@yahoo.com]
Sent: Monday, February 04, 2002 3:53 PM
To: Ant Users List
Subject: RE: looping in ant


--- "Shvartsburd, Feliks" <Feliks.Shvartsburd@kmv.com> wrote: 
> I need to do the following thing:
> 
> 1. Copy .zip file to target directory and change its name in target
> location.
> Problem is that file name that I need to copy is not static. It changes
> appending timestamp to it. All I know that there is only one single .zip
> file in that location. Does anyone have an idea how to do that?

Can you post an example of the filename that needs copying and what it
needs to be once it's been copied?

Diane

=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.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