Thirupputkuzhi, Sanjay wrote: Import Tasks ,
Perhaps this is available and I am just unable to find it in the documentation. Is there a way to import a library of tasks from a common location. For example, if I have defined certain tasks for creating build numbers for projects and I want to share them across several projects from a common location, can I do this? The advantages are several -- no need to rewrite these tasks for each project, common code base, etc.How have you defined these tasks ? as external assemblies or using inline script with the <script> task ? If its the former use <loadtasks> [1] and if the latter use <include> [2]
An example might look something like this:
<loadNantTask file="c:\common\nanttasks\commontasks.xml" taskname="createbuild"/>
Ian
[1] http://nant.sourceforge.net/release/latest/help/tasks/loadtasks.html [2] http://nant.sourceforge.net/release/latest/help/tasks/include.html
------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Nant-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nant-users
