Properties that are being evaluated within an embedded evaluation don’t need quotes or to have ${  }. 

 

<property name="path" value="${string::replace(project.svn.path, 'http://svn', '')}" />

 <property name="path" value="${string::replace(project.svn.path, '/', '\')}" />


Noel

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Craig
Sent: Thursday, July 13, 2006 11:38 AM
To: NAnt-users@lists.sourceforge.net
Subject: [NAnt-users] String manipulation

 

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}', '/', '\')}" />

 

 <echo message="${path}" />

 


My result only displays this:

    [echo] http://svn/BeClear/Trunk http://svn/Shared/Log4Net
    [echo] ${path1}

 

 

Why can't I operate on the same variable muitiple times? Is there another way to do this?

 

Thanks,

 

Mike

 

 


Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min.

-------------------------------------------------------------------------
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
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to