I can't really speak in general, but for the link task
specifically, I'm actually working on adding in
dependency checks right now (cl task also). The C++
stuff isn't quite as evolved as the other compiler
tasks at the moment.

--- John Lam <[EMAIL PROTECTED]> wrote:
> I'm curious - why aren't there more dependency
> checks in tasks? For
> example, the link task could check the timestamp of
> the output file
> against the list of input files and avoid running
> the linker altogether
> if the output file is more recent than any of the
> inputs.
> 
> If this is the case, would it make sense to put some
> code in NAnt that
> will check a FileSet against a target or a single
> file against a target?
> E.g.
> 
> public bool DependencyCheck( string sourceFile,
> string targetFile );
> public bool DependencyCheck( FileSet sourceFiles,
> string targetFile );
> 
> In the case of the various compiler tasks, similar
> things could be done
> to prune the FileSet based on a dependency check,
> e.g.
> 
> // For compilers that emit a single output file
> public void PruneSources( ref FileSet sourceFiles,
> string targetFile );
> 
> // For compilers that emit multiple output files
> public void PruneSources( ref FileSet sourceFiles,
> string
> outputFileExtension );
> 
> If this stuff is in there already, please forgive me
> - I'm rather new to
> all of this stuff ;)
> 
> Cheers,
> 
> -John
> http://www.iunknown.com
> 
> 
> 
>
----------------------------------------------------------------------------
>                    Bringing you mounds of
> caffeinated joy
>                    >>>     http://thinkgeek.com/sf  
>  <<<
> 
> _______________________________________________
> Nant-developers mailing list
> [EMAIL PROTECTED]
>
https://lists.sourceforge.net/lists/listinfo/nant-developers


__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

----------------------------------------------------------------------------
                   Bringing you mounds of caffeinated joy
                   >>>     http://thinkgeek.com/sf    <<<

_______________________________________________
Nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to