ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peterson, Brian" <Brian.Peter...@westgroup.com>
Subject RE: How to use literal property access string?
Date Mon, 04 Mar 2002 21:47:35 GMT
In general, $$ means translates to a single $ which will not be interpreted
as the possible start of a property, so use:
	<echo message="$${theproperty}" />

brian peterson
brian.peterson@westgroup.com


| -----Original Message-----
| From: Jeffrey Jensen [mailto:JJENSEN@agribank.com]
| Sent: Monday, March 04, 2002 3:42 PM
| To: ant-user@jakarta.apache.org
| Subject: How to use literal property access string?
| 
| 
| Hi,
| 
| There is a situation where I want to use "${property.name}" instead of
| the value it stands for.  How do I tell Ant to not interpret it?
| 
| For example, I want
|      <property name="theproperty" value="thevalue" />
|     <echo message="${theproperty}" />
| to say ${theproperty} instead of "thevalue".
| 
| This works when the property was never set.  I understand that
| "unsetting" a property is a feature that Ant does not have.
| 
| I know that a <param> in an <antcall> overrides a property of the same
| name, but I don't think there is a magic value to set it to for the
| called target to think it is not set.
| 
| I know that using inheritAll="false" on <antcall> does exactly what I
| want, except for all properties.
| 
| Is there an "escape code" or other such thing to specify a literal
| string vs interpreting it?
| 
| --
| To unsubscribe, e-mail:   
<mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>

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


Mime
View raw message