Re: String manipulation (parsing / padding)

2009-05-04 Thread Francis Galiegue
er is only one character). So if my original string is 1.2.3, my > resulting string will be 010203. > > > > I have been using NAnt lately and it has some built in functions for > doing this sort of string manipulation. Now I need to implement the > same logic in Ant scripts. I h

Re: String manipulation (parsing / padding)

2009-05-04 Thread Dominique Devienne
On Mon, May 4, 2009 at 10:27 AM, Beth Hechanova wrote: > I have been using NAnt lately and it has some built in functions for > doing this sort of string manipulation.  Now I need to implement the > same logic in Ant scripts.  I have been looking for something similar in > Ant, but I

String manipulation (parsing / padding)

2009-05-04 Thread Beth Hechanova
it has some built in functions for doing this sort of string manipulation. Now I need to implement the same logic in Ant scripts. I have been looking for something similar in Ant, but I have yet to come across anything. I am using Ant v1.7.1. Thanks, Beth

Re: String Manipulation

2008-01-13 Thread DJ Kingsolver
" > regexp="/" > replace="_"/> > > > > > > On Jan 8, 2008 7:57 PM, DJ Kingsolver <[EMAIL PROTECTED]> wrote: > > Hi all, > > > > I need to do a simple string manipulation, but I'm finding it harder > than I

Re: String Manipulation

2008-01-09 Thread David Weintraub
Try this using the AntContrib task: On Jan 8, 2008 7:57 PM, DJ Kingsolver <[EMAIL PROTECTED]> wrote: > Hi all, > > I need to do a simple string manipulation, but I'm finding it harder than I > expected. > > Sa

RE: String Manipulation

2008-01-09 Thread Keith Hall
nt as well. Use bsf.jar and rhino.jar (rename to js.jar) > -Original Message- > From: DJ Kingsolver [mailto:[EMAIL PROTECTED] > Sent: 09 January 2008 00:58 > To: user@ant.apache.org > Subject: String Manipulation > > Hi all, > > I need to do a simple string manip

Re: String Manipulation

2008-01-08 Thread David Weintraub
t;[EMAIL PROTECTED]> wrote: > Hi all, > > I need to do a simple string manipulation, but I'm finding it harder than I > expected. > > Say I have a property like this: > > > I'd like to set another property like this: > > > So, would write &qu

String Manipulation

2008-01-08 Thread DJ Kingsolver
Hi all, I need to do a simple string manipulation, but I'm finding it harder than I expected. Say I have a property like this: I'd like to set another property like this: So, would write "[echo] foo_bar_baz" What is a good way to achieve this? I've thought

Re: String manipulation

2006-10-25 Thread Antoine Levy-Lambert
Hello Rodrigo, the basename task does this out of the box. Open the Ant manual. Regards, Antoine Rodrigo Monteiro wrote: > Hello all, > > I'm new in Ant... so this might be an easy question. > > I pass in the command line an parameter > ant -Dtest=/tmp/tmp2/tmp3 -buildfile teste.xml > What I need

Re: String manipulation

2006-10-25 Thread Rodrigo Monteiro
Hi Scot, On 10/25/06, Scot P. Floess <[EMAIL PROTECTED]> wrote: Ant contrib has a nice propertyregex task if you need to do regular expressions. However, if this property contains a path and file name (which I believe is the case), try the basename task. It's what I was looking for. Thanks!

Re: String manipulation

2006-10-25 Thread Scot P. Floess
Ant contrib has a nice propertyregex task if you need to do regular expressions. However, if this property contains a path and file name (which I believe is the case), try the basename task. Rodrigo Monteiro wrote: Hello all, I'm new in Ant... so this might be an easy question. I pass in

String manipulation

2006-10-25 Thread Rodrigo Monteiro
Hello all, I'm new in Ant... so this might be an easy question. I pass in the command line an parameter ant -Dtest=/tmp/tmp2/tmp3 -buildfile teste.xml What I need to do is to get only the content of ${test} after the last "/", in this case "tmp3". How can I do that? regards, Rodrigo. -