On 14/09/05, Arnette, Bill <[EMAIL PROTECTED]> wrote:
> When writing a build file that does everything from checking out the
> source to creating the installation package, it would be nice if you
> could run a target from the command line without running the
> dependencies.  Is this possible now?  

my preferred model is to have empty targets that manage a chain of
dependent tasks; all other tasks have no explicit dependencies.  this
gives me the greatest flexibility to inovke any task that i want and
establishes clear points for running my build from end to end.  it
also give great flexibility to recombine tasks however i want.

eg.
<target name="all" depends="clean,compile,test,deploy" />  <!-- note:
target is empty -->

<target name="compile">  <!-- note: target has no dependencies -->
...
</target>

btw, i would recommend being careful with the <call> task.  it tends
to produce a more rigid call chain and can lead to redundant task
calls.
cheers,
owen.
-- 
Owen Rogers | http://dotnetjunkies.com/weblog/exortech |
CruiseControl.NET - http://ccnet.thoughtworks.com


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to