ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Rogers" <jason.rog...@tumbleweed.com>
Subject RE: How to rename a file
Date Tue, 09 Oct 2001 13:22:37 GMT
The only problem with that is the name matching.  He has to be able to match
any expression after "jndi," if I read his email properly.  If you include a
<fileset/> and <mapper type="regexp" ... /> I think that would do the trick.

-jason

    > -----Original Message-----
    > From: Dhirendra Kulkarni [mailto:dkulkarni@ptc.com]
    > Sent: Tuesday, October 09, 2001 2:08 AM
    > To: ant-user@jakarta.apache.org
    > Subject: Re: How to rename a file
    > 
    > 
    > I think move task exactly does this
    > for  e.g : <move file="jndi_1.2.1.jar" tofile="jndi.jar"/>
    > 
    > ----- Original Message -----
    > From: Raj Kumar <kothapa@intalio.com>
    > To: <ant-user@jakarta.apache.org>
    > Sent: Tuesday, October 09, 2001 3:38 AM
    > Subject: How to rename a file
    > 
    > 
    > > hi,
    > >   I have a jar file name for the form jndi_1.2.1.jar 
    > and i  need to rename
    > > it to one without the version number.
    > >   i.e the new name of the file should be jndi.jar.   
    > Can somebody please
    > > help me with this.The version number could be anything.
    > >       thanks,
    > >       rajkumar
    > >
    > >
    > 
    > 
    > 


Mime
View raw message