I'm in need to doing the following (assume all classes are in own files):

---code---
/*
* @mytag  name="bob"
*/
public class Class1 {}

/*
* @mytag  name="bob"
*/
public class Class2 {}

/*
* @mytag  name="fred"
*/
public class Class3 {}
---/code---

which then generates:

---code---
public class GenClassBob
{
   MethodForClass1 ();

   MethodForClass2 ();
}

public class GenClassFred
{
   MethodForClass3 ();
}
---/code---

Stated in words rather than example I want a custom task/subtask with custom tag handler and template that will based on the attribute of the custom tag will generate single files with methods for each class within for each unique value throughout the codeset. I am flexible on tag syntax so if a 'mytag.bob' and 'mytag.fred' would work better or make more sense with XDoclet structure pleease let me know.

Even a quick reference to object available within a custom subtask when running it as aggregate (meaning w/o {0} in destination of tag) of all the classes found with the related custom tag would help.

I have a project successfully building and testing a custom subtask, tag handler and template. Figured I'd post here to see if there are any other custom add-ons that implement this pattern or something similar that I could learn from. (And in case it would encourage someone to respond, this project will definitely be quickly released as Open Source :) )

Thanks!

Colin



-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to