The CompilerBase class actually has a NeedsCompiling function which returns a bool as to whether compilation should happen. It should be relatively simple to add a check to see if the build file is newer than the output, and return true.

 

Another option is to add an attribute to turn on/off this type of checking. I was thinking of something like “WatchBuildFile = true/false” (def. = true?).

 

Comments?

 

If you always want to (re)build, just delete the output before the compile.

 

-----Original Message-----
From: Andy Smith [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 25, 2002 9:44 AM
To: Scott Hernandez
Subject: RE: [nant-dev] Bug in need-rebuild detection?

 

um...

 

the csc task.

but I have no idea if that is the task that decides about the need to recompile.

____________
Andy Smith
Chief Code Monkey

-----Original Message-----
From: Scott Hernandez [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 25, 2002 10:39 AM
To: [EMAIL PROTECTED]
Cc: Andy Smith
Subject: RE: [nant-dev] Bug in need-rebuild detection?

What tasks are you using that should consider this?

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Andy Smith
Sent: Thursday, April 25, 2002 9:28 AM
To: [EMAIL PROTECTED]
Subject: [nant-dev] Bug in need-rebuild detection?

 

This is one thing that's bothered me for a while...

 

1) compile to a dll

2) change the .build file

3) run nant

 

I don't know what nant does to know whether it needs to recompile... but in this instance, it won't!

I have to go in and "touch" at least one code file for the changes to the .build file to be applied.

 

I guess the root problem is that nant doesn't consider changes in the .build file to require a new build of the dll.

 

very frustrating

____________
Andy Smith
Chief Code Monkey

 

Reply via email to