I like both of them.  However, I have some issues with the "force"
attribute.

I would think the purpose of "force" would be to ensure that for a
one-time build everything got built.  That is, it wouldn't normally be
used.  I might use it if I thought that my objects were out of date, or
if something that isn't depended on is out of date.  If that's the usage
scenario, then this "force" option would be better off as a command line
parameter instead of an attribute.  If it really was an attribute, I'd
either have to always have it present in the build file and have it
conditionally turned on (ugly), or I'd have to edit the build file when
I occasionally wanted to use it (even uglier).

Or am I missing the typical usage of your proposal?

BTW, I think you've just about convinced me about adding functions.

Eric.

-----Original Message-----
From: Shaw, Gerry [mailto:grshaw@;ea.com] 
Sent: Thursday, October 24, 2002 12:55 PM
To: Nant-Developers (E-mail)
Subject: [nant-dev] Two new global task attributes


What do people think of these two "global" task attributes.  When I say
global I mean all (or almost all tasks would implement these - like if,
unless, etc..)

1. force

This attribute would have to be implemented on a task by task basis but
I think that any task does dependency checking should implement this
attribute.  Setting the value to true would cause the task to always
execute even if the dependency checking tells it not too.  The default
would be false.

2. message

If this attribute was defined and the task executed normally only the
text in the message would be displayed on the console.  Using this would
allow you to document each step of the build file AND display nicely
formatted results to the user.

So instead of seeing:
    [mkdir] Creating directory
D:\eagdf\project\NAnt\master/build/nant-0.8.0-deb
ug/bin
     [copy] Copying 4 files to
D:\eagdf\project\NAnt\master/build/nant-0.8.0-deb
ug/bin


You could see:
    [mkdir] Creating build directory
     [copy] Copying required assemblies to build directory

The message attribute would be very useful on the <exec> task.


-------------------------------------------------------
This sf.net email is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0003en
_______________________________________________
Nant-developers mailing list [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


-------------------------------------------------------
This sf.net email is sponsored by: Influence the future
of Java(TM) technology. Join the Java Community
Process(SM) (JCP(SM)) program now.
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0003en
_______________________________________________
Nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to