Michael Craig wrote:
> I'm having trouble performing multiple string manipulations on a variable.
> Any suggestions?
>
> snippet:
>
> <property name="project.svn.path" value="http://svn/MySource/Trunk
> http://svn/MyRef/Log4Net"
> <echo message="${project.svn.path}" />
> <property name="path" value="${string::replace('${project.svn.path}',
> 'http://svn', '')}" />
> <property name="path" value="${string::replace('${project.svn.path}', '/',
> '\')}" />
>
>
Don't nest the dollar signs ($). It should be, for example,
value="${string::replace(project.svn.path, 'http://svn', '')}"
By the way, do you have any recollection of what documentation pages you
looked at prior to coming up with the nested dollar signs? This is a
very frequently asked question, and while it's obvious how to write a
warning about this, it's not clear to me where such a warning belongs.
Gary
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
NAnt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users