> I don't remember the exact source I found the information, > but essentially this does not work. The token will not work > with a variable :(
Firstly, the <echo> should *certainly* have worked. Nothing in the original post actually said he was trying to load the properties file. Secondly, it works for me (tm) with Ant 1.6.5 when you *do* load a properties file: Build.xml: <?xml version="1.0" ?> <project name="SMTP 5.2" default="test"> <target name="test"> <property file="${property.file}" /> <echo>${foo}</echo> </target> </project> Xxx.properties: foo=bar D:\test>ant -Dproperty.file=xxx.properties Buildfile: build.xml test: [echo] bar BUILD SUCCESSFUL Total time: 0 seconds It may have not worked some time in the past, but it's fine now... Jon Clearswift monitors, controls and protects all its messaging traffic in compliance with its corporate email policy using Clearswift products. Find out more about Clearswift, its solutions and services at http://www.clearswift.com This communication is confidential and may contain privileged information intended solely for the named addressee(s). It may not be used or disclosed except for the purpose for which it has been sent. If you are not the intended recipient, you must not copy, distribute or take any action in reliance on it. Unless expressly stated, opinions in this message are those of the individual sender and not of Clearswift. If you have received this communication in error, please notify Clearswift by emailing [EMAIL PROTECTED] quoting the sender and delete the message and any attached documents. Clearswift accepts no liability or responsibility for any onward transmission or use of emails and attachments having left the Clearswift domain. This footnote confirms that this email message has been swept by MIMEsweeper for Content Security threats, including computer viruses. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]