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}"/>

</target>

</project>

My Return:

________________________________________________

D:\Test>nant -f:test.build
NAnt 0.85 (Build 0.85.1932.0; rc3; 4/16/2005)
Copyright (C) 2001-2005 Gerry Shaw
http://nant.sourceforge.net

Buildfile: file:///D:/PathwayDBBuild/test.build
Target framework: Microsoft .NET Framework 1.1
Target(s) specified: default


default:

     [echo] String With Spaces

BUILD SUCCEEDED

Total time: 0.1 seconds.

________________________________________________


Thanks,
Eric


        
                
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com


-------------------------------------------------------
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

Reply via email to