Bruce,




> ----- Original Message ----- 
> From: "Hearn, Bruce" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, April 22, 2004 6:38 PM
> Subject: [Nant-users] RE: problem with ASIS attribute on source file list
in CSC task
>

>
> Hi Gert,
>
> Attached you'll find a simple reproduction of the issue I described with
> the ASIS attribute.  I added a few comments in the file to point out
> what's going on.
>
> To reproduce, drop the 2 attached files into a new directory, and
> run nant.  It will generate 2 dlls and touch the source file.  Then, run
> nant again.
>
> These files allow you to reproduction the following:
>
> a) if a non-existent file is included in the source list, it compiles
> anyway without error or warning.

The sources to compile are specific using a fileset, which actually uses
pattern matching and scanning to determine the matching files. A file that
doesn't exist will therefor not be part of the resulting matches.  I don't
think we will be changing this.  Ian, Scott : what do you think ?  Should we
throw a build error when the includes name does not contain a wildcard
pattern, and does not exist ?

> b) using asis causes an error on the first compilation, but the project
> builds anyway!

The fact that the assembly is generated even though the build fails is
actually a MS compiler bug (I've submitted a bug report for this).  We could
ofcourse implement a workaround for this, by removing the output file if the
compiler signals an error.

> c) Using the ASIS attribute, subsequent builds will ignore the fact that
> the source file is newer, which is clearly a bug for conditional
> compilation.

I think its pretty clear that ASIS means that we'll just pass this on to the
task without performing any operation on it ...

Gert



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to