xdoclet.XDocletMain.start() does that. You can only execute a single subtask, no nested execution supported atm.
Ara. > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:xdoclet-user- > [EMAIL PROTECTED]] On Behalf Of tek1 > Sent: Friday, July 05, 2002 9:30 PM > To: [EMAIL PROTECTED] > Subject: RE: [Xdoclet-user] executing a TemplateSubTask from an > XmlSubTask? > > does the subtask that i'm instantiating and calling have to have an init() > method defined? > > i tried the below, but i'm still get a NullPointerException. do any of > the > existing subtasks in xdoclet1.2 make this type of call (so i can look at > the source code)? > > thank you. > > > > At 16:37 02/07/05 +0430, you wrote: > >- create the subtask > >- set its properties > >- then: > >subtask.init(); > >DocletContext.getInstance().setActiveSubTask(subtask); > >subtask.execute(); > > > >Ara. > > > > > -----Original Message----- > > > From: [EMAIL PROTECTED] [mailto:xdoclet-user- > > > [EMAIL PROTECTED]] On Behalf Of tek1 > > > Sent: Friday, July 05, 2002 3:43 PM > > > To: [EMAIL PROTECTED] > > > Subject: [Xdoclet-user] executing a TemplateSubTask from an > >XmlSubTask? > > > > > > is it possible to execute a TemplateSubTask from an XmlSubTask, as > >below? > > > > > > > > > public class AnXmlSubTask extends XmlSubTask { > > > > > > public AnXmlSubTask() throws XDocletException { > > > > > > setTemplateURL(...); > > > setDestinationFile(...); > > > setPublicId(...); > > > setSystemId(...); > > > > > > ATemplateSubTask task = new ATemplateSubTask(); > > > task.execute(); > > > } > > > } > > > > > > > > > i tried this, but when i run the AnXmlSubTask from ant, i'm getting a > > > java.lang.NullPointerException... > > > > > > > > > thank you. > > > > > > > > > > > > ------------------------------------------------------- > > > This sf.net email is sponsored by:ThinkGeek > > > Bringing you mounds of caffeinated joy. > > > http://thinkgeek.com/sf > > > _______________________________________________ > > > Xdoclet-user mailing list > > > [EMAIL PROTECTED] > > > https://lists.sourceforge.net/lists/listinfo/xdoclet-user > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Bringing you mounds of caffeinated joy. > http://thinkgeek.com/sf > _______________________________________________ > Xdoclet-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/xdoclet-user ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Got root? We do. http://thinkgeek.com/sf _______________________________________________ Xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
