You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Nagarajan Murugesan <NM...@Selectica.com> on 2003/12/13 16:11:59 UTC

pattern replacement in a property value!!!

Hi All,

I have a question on ANT properties.

Is there any task/way in which we can replace a particular
pattern (string) in a property value.

For Example:

I defined  a property name ="mail" value="*sender*@yahoo.com"

during the run time I want to replace the pattern *sender*
with some name.

is it possible in ant? I need your help in that.

Thanks,
Nagarajan M

Re: pattern replacement in a property value!!!

Posted by Antoine Lévy-Lambert <an...@antbuild.com>.
Nagarajan Murugesan wrote:

>Hi All,
>
>I have a question on ANT properties.
>
>Is there any task/way in which we can replace a particular
>pattern (string) in a property value.
>
>For Example:
>
>I defined  a property name ="mail" value="*sender*@yahoo.com"
>
>during the run time I want to replace the pattern *sender*
>with some name.
>
>is it possible in ant? I need your help in that.
>
>Thanks,
>Nagarajan M
>
>  
>
Hi Nagarajan,

this question has become a FAQ :

http://ant.apache.org/faq.html#propertyvalue-as-name-for-property

Cheers,

Antoine


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