Eric-
property is immutable by definition so you cannot 'reset' it as you are
attempting to do here
2 choices:
1)set another property (property with another name) to whitespace stripped
variable
2)suggest to gert driesen the ability to capture information in a mutable
'variable' which was introduced into the ant-contrib
some years ago
Good Luck
Martin-
----- Original Message -----
From: "Eric Fetzer" <[EMAIL PROTECTED]>
To: "Nant Users" <nant-users@lists.sourceforge.net>
Sent: Thursday, October 27, 2005 4:21 PM
Subject: [Nant-users] string::trim
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
-------------------------------------------------------
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