no, getProject().createTask("xmltask"). Because <presetdef> can overwrite any task, it is now recommended to create the tasks with "new", otherwise the cast may not always work.
- Alexey. On 8/18/05, koden (sent by Nabble.com) <[EMAIL PROTECTED]> wrote: > > so how would I create a new task? > > XmlTask xml_task = getProject(); //? > > that looks really weird. pllease help! > -- > Sent from the Ant - Dev forum at Nabble.com: > http://www.nabble.com/Help-Running-Ant-Task-from-my-Custom-Task-%28xmltask%29-t235448.html#a658936 > > -- Alexey N. Solofnenko trelony at gmail.com home: http://trelony.cjb.net/ Pleasant Hill, CA (GMT-8 hours usually) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]