key=value\ with\ spaces Sheldon
-----Original Message----- From: CAMPANA,SAL (HP-Philadelphia,ex1) [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 03, 2001 9:48 AM To: ANT List (E-mail) Subject: using properties files I have been playing with using properties files for passing variables into my ANT scripts. Is there a way to pass in a property which has spaces? i.e. name=John Smith I've tried using quotes (i.e. name="John Smith") , but then the quotes are in the variable.... Is there another way? Or a way to strip the quotes from the variables?? Thank you!! Ant script: <?xml version="1.0"?> <project name="test" basedir="." default="echo"> <target name="init"> <property file="c:/ant/bin/some.properties"/> </target> <target name="echo" depends="init"> <echo message="${name} was here"/> </target> </project>
