Le Monday 04 May 2009 17:27:15 Beth Hechanova, vous avez écrit :
> Hi,
>
>
>
> I am looking for a way in Ant to parse a string as well as create a new
> string that is zero-padded. Does Ant have any built-in tasks/functions
> for manipulating strings?
>
>
>
> My input will be a version string in t
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 have yet to c
Thanks for your help David. I was already including the antcontib tasks
(needed them for a foreach loop), but just not fully aware of what was in
there. The propertyregex task worked perfectly for me, when reading up on
it I learned about a few other tasks that I know will come in handy soon.
Than
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.
>
> Say I have a property like this:
>
>
> I'
I tried using RegExp within javascript within ant and had problems with
the whole forward slash character which would have been more elegant.
Instead I used some simple looping like this
Have you looked at the AntContrib tasks?
http://ant-contrib.sourceforge.net/tasks/tasks/propertyregex.html
This one should do the trick. Of course, you'll have to install the
antContrib.jar and put a taskref in your build.xml, but this should
work.
On Jan 8, 2008 7:57 PM, DJ Kingsolver <[EMAIL P
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
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!
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