Can anyone explain this to me? Is it a bug or a feature? This code:
<foreach item="Line" in="C:\scratch\build.number" property="my.version"
trim="Both">
<echo>inside foreach: my.version = ${my.version}</echo>
</foreach>
<echo>after foreach: my.version = ${my.version}</echo>
Produces this output:
[echo] inside foreach: my.version = 1.0.7.4254
BUILD FAILED
c:\Integrator\scripts\integrator.nant.build(764,2):
Property evaluation failed.
Expression: after foreach: my.version = ${my.version}
^^^^^^^^^^
Property 'my.version' has not been set.
Bonus question:
Anyone know an easier way to read the contents of a one-line file into a
property?
Double bonus question:
Anyone know a way to use the version task to read the build.number file
without updating it?
________________________________
Gary McCullough
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idP47&alloc_id808&op=click
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users