ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Copy file or dir and changing name?
Date Tue, 01 Apr 2003 11:44:04 GMT
On Tue, 1 Apr 2003, Leif Hanack <leif.hanack@t-systems.com> wrote:

> The ant call should be s.th. like:
> 	$ant -f copy.xml -Dsource=file1.txt
> 	$ant -f copy.xml -Dsource=dir2

Can you use different targets for file and dir copies?  It will make
things easier.

> So far i started with:

>         <tstamp/>
>         <property name="date" value="${DSTAMP}_${TSTAMP}"/>

I'd rather use 

          <tstamp>
            <format property="date" pattern="yyyyMMdd_hhmm"/>
          </tstamp>

but that's a matter of taste.

>         <!-- copy-Task with embedded mapper regexp or glob ?? -->

definitely regexp, glob is too limitied for what you want.

Stefan

Mime
View raw message