I'd like to be able to access a list of outputs generated by the execution of the solution task. Attached is a patch that implements this feature using NAnt properties.
The solution task now maintains a list of all outputs (and also a list of
just the assemblies it compiles) during its execution. Three new optional
properties provide access to this information:
outputassembliesproperty -- Name of a property whose value should be set
to a list of assemblies produced during the execution of this task.
outputfilesdelim -- String used to separate filenames for
outputfilesproperty and outputassembliesproperty. ":" is the default.
outputfilesproperty -- Name of a property whose value should be set to a
list of output files produced during the execution of this task.
Here's an example use of the new feature:
---
<solution configuration="${configuration}" solutionfile="iDeal.sln"
failonerror="true" verbose="${verboseP}" outputfilesproperty="outputFiles"
outputfilesdelim=":" outputassembliesproperty="outputAssemblies">
<assemblyfolders failonempty="true">
<include name="${dependency-path}/**" />
</assemblyfolders>
</solution>
<echo message="We could feed the following list to Ndepend:" />
<foreach item="String" in="${outputAssemblies}" delim=":"
property="filename">
<echo message="output: ${filename}" />
</foreach>
---
Comments, criticisms, suggestions?
Sean Foy
outputfiles.diff
Description: Binary data
