You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by dc <dc...@wm.namco.co.jp> on 2003/06/10 12:30:55 UTC

loadproperties syntax?

hello!

i was wondering if someone could help with ANTs loadproperties task. I
am trying to load props from an external file, without luck. 

I noticed this in the docs for <property file=".." /> and wonder if
there is also a file format for loadproperties?

# By setting the file attribute with the filename of the property file
to load. This property file has the format as defined by the file used
in the class java.util.Properties.

current snippet is such:

	<loadproperties srcFile="${basedir}/ant-env.xml" />
	<input>testy=${testy}</input>

where ant-env.xml contains:
	<property name="testy" value="scratchy" />  

its finding the file ok otherwise i get an error, but the property isn:t
set..

thanks!

/dc
+-----+-----------------------------------------+
david [dc] collier

NAMCO Ltd.
Web & Mobile Contents Business Group

  e   |   dc -at- wm.namco.co.jp
  v   |  +81(0)90 5343 4586

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org