Eric Fetzer wrote:
I'm trying to remove spaces from a string and use it
as a property. Any clue why the following won't work:
<project name="test" default="default" >
<property name="myString" value="String With Spaces"/>
<target name="default">
<property name="stringNoSpace"
value="${string::trim(myString)}"/>
<echo message="${stringNoSpace}"/>
Trim removes spaces from the ends of a string, but not spaces within the
string. To remove all spaces, use string::replace.
Gary
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users