I would probably use pathconvert with a regexpmapper
then.

-Matt

--- "Dick, Brian E." <[EMAIL PROTECTED]> wrote:

> I just want the string.
> 
> -----Original Message-----
> From: Matt Benson [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, January 19, 2005 2:47 PM
> To: Ant Users List
> Subject: RE: Remove extension from a file name
> 
> 
> Do you mean you just want the string, or you want to
> rename the file?  Either way you can do it with a
> regexpmapper.
> 
> HTH,
> Matt
> 
> --- "Dick, Brian E." <[EMAIL PROTECTED]> wrote:
> 
> > With which task? I already have the file name with
> > extension in a property. I need the file name sans
> > extension in a new property.
> > 
> > BTW, I found the propertyregex task in
> ant-contrib.
> > I can use that if there is no other way.
> > 
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] 
> > Sent: Wednesday, January 19, 2005 10:43 AM
> > To: user@ant.apache.org
> > Subject: AW: Remove extension from a file name
> > 
> > 
> > using regexps
> >   (.*)\..*  --> \1
> > 
> > Jan
> > 
> > > -----Ursprüngliche Nachricht-----
> > > Von: Dick, Brian E. [mailto:[EMAIL PROTECTED]
> > > Gesendet am: Mittwoch, 19. Januar 2005 16:36
> > > An: Ant Users List
> > > Betreff: Remove extension from a file name
> > > 
> > > I need to remove the extension from a file name.
> > The basename task
> > > almost works when specifying the suffix
> attribute.
> > However, I 
> > > don't know
> > > the value of the suffix.
> > > 
> > > Does anyone know how I can remove the extension
> > (suffix) from a file
> > > name?
> > > 
> > > Later,
> > > BEDick
> > > 
> > >
> >
>
---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > > 
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> > 
> 
> 
> 
>               
> __________________________________ 
> Do you Yahoo!? 
> Yahoo! Mail - Helps protect you from nasty viruses. 
> http://promotions.yahoo.com/new_mail
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 



                
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - now with 250MB free storage. Learn more.
http://info.mail.yahoo.com/mail_250

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to