Hello, I am working with a fairly complex project (20-30 assemblies) and would like to be able to simplify the build files. I have experimented with using properties in the targets, eg:
<target name="build" description="Compile source code." depends="${string::replace(framework_dependencies, 'TARGET', 'BUILD')}" /> Which allows me to specify the dependencies for each module in just one place, and then just change an extension on the target to suite the usage. However, this doesn't work - it seems that NAnt evaluates dependencies before everything else. My prefered solution would be to reverse the situation and say that anything that looks like "target.*" depends upon "dep1.*, dep2.*" (where "*" is automatically substituted with whatever was matched in the target) and the to be able to use the same substitution in the body of the target too. Can anyone think of a better solution that I can implement now? Thanks, Jonathan. ============================================================================== This message is for the sole use of the intended recipient. If you received this message in error please delete it and notify us. If this message was misdirected, CSFB does not waive any confidentiality or privilege. CSFB retains and monitors electronic communications sent through its network. Instructions transmitted over this system are not binding on CSFB until they are confirmed by us. Message transmission is not guaranteed to be secure. ============================================================================== ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nant-users mailing list Nant-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users