Hi, > -----Original Message----- > From: Erik Hatcher [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, October 31, 2001 12:00 PM > To: Ant Users List; [EMAIL PROTECTED] > Subject: Re: script documentation > > > ----- Original Message ----- > From: "Markus Kohler" <[EMAIL PROTECTED]> > > I wonder if it wouldn't be possible to support defining new > Tasks just > using > > Java script(or any other supported scripting language). > > I think that could be a very powerfull feature. > > You could define a <script> "task" within a standalone target (i.e. no > depends clause) and <antcall> to it - which would in effect > allow you to > have re-usable script code that could be used just like a Task. > > So the power is there!
Yes. That's how I plan to doit now. > > Now just share anything slick you can do with it, as I've > only seen useful > one-liners in <script>. > Currently I'm calling my own specific Java code for dumping information that is inside my jar file. It's not really usefull for general use. Anyway I think it would be even cooler, if I could just define some New Tasks using javascript, and with my limited knowledge about ANT's design, I cannot see why this would be difficult to support. Markus -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>