To All I just write this quick and dirty test <project name="test" default="server"> <target name="server"> <property name="test" value="This will be echoed"/> <echo>${test}</echo> </target> </project>
F:\>ant Buildfile: build.xml server: [echo] This will be echoed BUILD SUCCESSFUL Total time: 0 seconds My suggestion is if the solution works use it Bye, ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, December 09, 2004 9:26 AM Subject: AW: txtfile with various lines > in other words > <echo message=${servrestart}/> Sorry that is invalid - invalid xml. Attribute values have to be quoted. <echo message="${servrestart}"/> Then the Ant runtime would search for a property servrestart and evaluates that to its value or - if not set - to ${servrestart}. So youŽll get a) with value=Hello World [echo] Hello World b) not set [echo] ${servrestart} Back to the original thread: what you can do with unset properties is <target name="server.check"> <loadfile property="servrestart"> ... </target> <target name="server" depends="server.check" if="servrestart"> <echo>Property set. Server has to be restarted.</echo> </target> Jan --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]