for those who missed the discussion - the LoadTasks task is a replacement for taskdef that better fits with the nant task loading mechanism. Its useful for when you have tasks specific to a given project and you don't want or need them to be available system wide. Of course if you do want your custom tasks available system wide then just drop them in the nant bin directory and it will all still just work - this task does not replace that mechanism - just enhances it allow project specific task libraries.
in action it looks like:
<loadtasks assembly="C:\cvs\NAnt.Contrib.Tasks.dll" /> or
<loadtasks>
<fileset>
<includes name="C:\cvs\NAntContrib\build"/>
<includes name="foo.Tasks.dll"/>
</fileset>
</loadtasks>Thanks to Tomas and Jean for the discussion and ideas that led to this.
Ian
> True. But the <loadtasks> alternative Ian proposes sounds good, as it
> accomplishes the same as taskdef, but does it in a more nant-like way. I'm
> happy to change a line or two in my buildfiles for this.
>
> My only added comment on loadtasks would be to have it support specifying a
> single file name, not necessarily a full directory. I imagine something like
> this would be my choice:
>
> <loadtasks path="..\foo\tasks.dll">
> </loadtasks>
> or
> <loadtasks>
> <fileset>
> <includes name="..\foo" />
> </fileset>
> </loadtasks>
>
> Basically, the same as Ian proposes, but I'd have loadtasks examine the
> contents and see if it references a file or a directory: if the former, just
> load that one and that's it; otherwise scan for task assemblies. This would
> give us all the functionality of the old TaskDef, while supporting the
> scanning mechanism used now.
>
> What do you guys think?
-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
Nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers
