Re: Help Running Ant Task from my Custom Task (xmltask)

2005-08-18 Thread koden (sent by Nabble.com)
oh yeah, I posted it in the wrong forum. I'm sorry. -- 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#a659983

Re: Help Running Ant Task from my Custom Task (xmltask)

2005-08-18 Thread Matt Benson
This whole discussion should be continued on the userlist user@ant.apache.org . It has long since ceased sounding like a developer list discussion. br, Matt --- "koden (sent by Nabble.com)" <[EMAIL PROTECTED]> wrote: > > When I do the xml_edit.execute(); I get this error: > > [versionupdateta

Re: Help Running Ant Task from my Custom Task (xmltask)

2005-08-18 Thread koden (sent by Nabble.com)
When I do the xml_edit.execute(); I get this error: [versionupdatetask] java.lang.NullPointerException [versionupdatetask] at org.apache.tools.ant.Task.log(Task.java:346) [versionupdatetask] at com.oopsconsultancy.xmltask.ant.XmlTask.execute(XmlTa sk.java:556) [versionupdatetask] at s

Re: Help Running Ant Task from my Custom Task (xmltask)

2005-08-18 Thread koden (sent by Nabble.com)
so I would modify build.xml with the taskdef: Then I would do this in my java: XmlTask xml_task = XmlTask.getProject().createTask("xmltask"); //? can you confirm for me? I'm still a bit lost. thanks -- Sent from the Ant - Dev forum at Nabble.com: http://www.nabble.com/Help-Running

Re: Help Running Ant Task from my Custom Task (xmltask)

2005-08-18 Thread Alexey N. Solofnenko
koden (sent by Nabble.com) wrote: XmlTask xml_task = new XmlTask(); //? or XmlTask xml_task = getProject().createTask("xmltask"); //? do I need to do a taskdef in my build.xml for xmltask? If you want for createTask() to find it. - Alexey. --

Re: Help Running Ant Task from my Custom Task (xmltask)

2005-08-18 Thread koden (sent by Nabble.com)
XmlTask xml_task = new XmlTask(); //? or XmlTask xml_task = getProject().createTask("xmltask"); //? do I need to do a taskdef in my build.xml for xmltask? thanks -- Sent from the Ant - Dev forum at Nabble.com: http://www.nabble.com/Help-Running-Ant-Task-from-my-Custom-Task-%28xmltask%29-t23544

Re: Help Running Ant Task from my Custom Task (xmltask)

2005-08-18 Thread Alexey Solofnenko
no, getProject().createTask("xmltask"). Because 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 x

Re: Help Running Ant Task from my Custom Task (xmltask)

2005-08-18 Thread koden (sent by Nabble.com)
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

Re: Help Running Ant Task from my Custom Task (xmltask)

2005-08-18 Thread Jeffrey E Care
project -> getProject () -- Jeffrey E. Care ([EMAIL PROTECTED]) WebSphere v7 Release Engineer WebSphere Build Tooling Lead (Project Mantis) "koden (sent by Nabble.com)" <[EMAIL PROTECTED]> wrote on 08/18/2005 03:00:07 PM: > > I am using xmltask in my own custom ant task. I have a couple > p

Help Running Ant Task from my Custom Task (xmltask)

2005-08-18 Thread koden (sent by Nabble.com)
I am using xmltask in my own custom ant task. I have a couple problems I can't fix. I'm not exactly sure how to create a new XmlTask. I tried: XmlTask xml_edit = (XmlTask) project.createTask("xmltask"); The Eclipse IDE says the above "project" is depreciated. What else would I use there?