Re: Remove extension from a file name

2005-01-19 Thread Gerard Janssen
The attached class contains a custom task that will do the trick. The javadoc explains how to use it. Gerard On Wednesday 19 January 2005 16:36, Dick, Brian E. wrote: > I need to remove the extension from a file name. The basename task > almost works when specifying the suffix attribute. How

RE: Remove extension from a file name

2005-01-19 Thread Matt Benson
> 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." <[EM

RE: Remove extension from a file name

2005-01-19 Thread Dick, Brian E.
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

RE: Remove extension from a file name

2005-01-19 Thread Matt Benson
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

RE: Remove extension from a file name

2005-01-19 Thread Dick, Brian E.
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 PROTE