Good day to you, Dan,

You can try the workaround in [1],

@[EMAIL PROTECTED]@end@

where

start = ${
end = }

...or the workaround in [2] 

${dollarSign}{id}

where

dollarSign=$

Cheers,
Franz

[1] http://jira.codehaus.org/browse/MRESOURCES-29
[2] http://jira.codehaus.org/browse/ARCHETYPE-39


Dan Hardiker wrote:
> 
> Hi,
> 
> My question is simply: how do I escape ${id} in a filtered resource to 
> have it outputted literally?
> 
> The background is that I am using Maven 2 and have the following in a 
> filtered resource file:
> 
> <atlassian-plugin key="${atlassian.plugin.key}" name="${pom.name}" 
> enabled="true">
>     <plugin-info>
>         <description><![CDATA[${pom.description}]]></description>
>         <version>${pom.version}</version>
>         <vendor name="${pom.organization.name}" 
> url="${pom.organization.url}"/>
>         <param name="configure.url">/admin/acp/config.action</param>
>     </plugin-info>
>     <resource name="resources/" type="download" location="resources" />
>     <xwork name="actions" key="actions">
>         <package name="manage" extends="default" namespace="/manage">
>             <default-interceptor-ref name="defaultStack" />
>             <action name="cart" class="com.adaptavist.manage.CartAction">
>                 <result name="success" 
> type="redirect">checkout/checkout.action?id=${id}</result>
>             </action>
>         </package>
>     </xwork>
> </atlassian-plugin>
> 
> This is all well and good, until ${id} is replaced with 
> "acp:plugin:atlassian-plugin:2.0-SNAPSHOT", when I want it to go through 
> literally. I have tried what I can think of as being the obvious 
> escaping routines but none work. It should be noted that ${whatever.id} 
> is also converted into the same variable output.
> 
> Thanks,
> 
> 
> --
> Dan Hardiker
> Adaptavist.com Ltd
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-do-I-escape-a-variable-in-a-filtered-resource--tf3122472s177.html#a8660731
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to