0
Vote

Initialize collection from external file

description

It is desirable to have the initial values of a dictionary or list loaded from an external file. Not sure what the format of the external file should be, but it might be easiest if we kept the same NAnt syntax and hijacked the NAnt parser to read it. So the NAnt task would look like this:
 
<list-create sourceFile="c:\blah.xml"/>
 
and the external file would look like this:
 
<list-item value="1"/>
<list-item value="2"/>
<list-item value="3"/>
 
(Not sure if that syntax matches NAntCollections exactly; been awhile since I looked at the code.)

comments