Hi Shu,
You could try the <script></script> task to accomplish what custom tasks do. You can find a lot of information on <script> task in the help library. As far as Custom Tasks is concerned, yes there is NO document, or no comprehensive document like for the NAnt tasks. But I managed to learn some stuffs on my own and created a few custom tasks in
VB.NET (I am more of a VB coder and prefer it that way).
Rgds,
Niranjan
On 7/13/06, Cong <[EMAIL PROTECTED]> wrote:
Thank you, Gary. Now at least I know this is not supported by NAnt.Besides creating custom task, is there any easy way I can reuse some code in NAnt? I always found the provided tasks can satisfy our requirements.Shu
On 7/12/06, Gary Feldman < [EMAIL PROTECTED]> wrote:Cong wrote:
> Hi All,
>
> I need to pass an array of strings from the XML-base NAnt build file
> to my custom NAnt task. Can someone tell me which attribute I can use
> in the C# class for the custom task? And it will be very helpful if
> you could give me a simple XML example. Hope my question is clear.
Since NAnt doesn't really have arrays, why not just store them in their
own XML file and use standard .Net calls to get at them? You might want
to pass the filename, but that's easy.
>
> BTW, as a beginner, I feel there're too little help documents on how
> to use NAnt and how to create custom NAnt task. Is it because I
> haven't found them or this is the fact?
Creating custom tasks in C# isn't something I'd advise beginners to take
on.
Gary
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
NAnt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
NAnt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ NAnt-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nant-users
