ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scot P. Floess" <flo...@mindspring.com>
Subject Re: String manipulation
Date Wed, 25 Oct 2006 18:20:17 GMT
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 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.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

-- 
Scot P. Floess
27 Lake Royale
Louisburg, NC  27549

252-478-8087 (Home)
919-754-4592 (Work)

Chief Architect JPlate  http://sourceforge.net/projects/jplate
Chief Architect JavaPIM http://sourceforge.net/projects/javapim


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message