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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to