ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jon Skeet" <jon.sk...@peramon.com>
Subject RE: File copy problem
Date Tue, 05 Feb 2002 19:35:29 GMT
>  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?

Right. One way I can imagine it could work would be to use a mapper:

<copy todir="F:/">
  <fileset dir="${blvm_root}/build/dist" includes="*.zip"/>
  <mapper type="merge" to="cmkserver_${label}.zip"/>
</copy>

Jon

--
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