Risler, Dave wrote:
Hi,

I’ve got a conditional that if a pipe (|) is in the path of a changeset, I want to do a <vssget> of the version number that follows it. For some reason, it’s not able to eval the pipe, even when I used an escape (\|).

Thanks,

Dave

> [snip]
<if test="string::contains('|', '${myLine}')" />

Dave,

You need to put the expression in a block like properties... and then the property doesn't need to be in a property block because it's already inside one...

Try:
<if test="${string::contains('|', myLine)}">


Regards,

-- Troy


------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nant-users mailing list Nant-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to