> I want to dynamic generate a nant file for nant task use. I use > echo file to > generate. But property change to value that I don't want.for > example: > <echo file="test.xml"><property name="generateTime" > value="${datetime::now()}"</echo> > > test.xml would become like > <property name="generateTime" value="2010 12 3 18:23"> > How can I let it become below > <property name="generateTime" value="${datetime::now()}"> > Thanks.
I think if you separate it out then it should work.. something like: <echo file="test.xml"><property name="generateTime" value="${"$" + "datetime::now()}"}"</echo> Although there may be some way to escape the ${} thing with a back slash or an extra $... but I'm too lazy to check the code. ;) BOb ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users