ant-user mailing list archives

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

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. 


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

--- "Shvartsburd, Feliks" <> 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?



Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions!

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message