thanks for quick reply.
I tried to write my own task and tag handler inheriting my task from
DocletTask, alternatively I have seen that one can also inherit from
TemplateSubTask. What I get when I try to run this task is a *class def not
found exception* when the class loader tries to load TemplateSubTask. My
class path is definitely ok.
Could someone please explain how those task are related to each other. When
do I have to inherit from DocletTask and when from TemplateSubTask.
Cheers
Juergen
----- Original Message -----
From: "Erik Hatcher" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, October 12, 2003 10:48 AM
Subject: Re: [Xdoclet-user] Generated file names using DocletTask
> You will have to write your own subtask subclass to change the filename
> such that it is not a fixed name (destinationFile="table.ddl") or the
> classname itself (destinationFile="{0}.ddl")
>
> Have a look at the DocletTask subclasses in XDoclet's codebase to see
> how this is done (the <info> subtask is a hardcore example, but I'm
> sure there are a few others that do something like this).
>
> Erik
>
> On Sunday, October 12, 2003, at 12:19 AM, Juergen wrote:
> > Hi Folks!
> >
> > I have been digging arround for a while and finally was able to
> > generate
> > sql-ddl from an interface in java :o))) What I coudn't figure out is
> > how to
> > give the generated ddl script the name of the table it will generate.
> > I used
> > the DocletTask, so I didn't write any own tag handlers and subtasks.
> >
> > Any suggestions ?
> >
> > Cheers and a nice sunday
> >
> > Juergen
> >
> > /**
> > * An entity mapping a users name to his password
> > * @table name="user_t"
> > */
> > interface IUser {
> > /**
> > * Getter method for the user name attribute
> > * @attribute name="USER_NAME" type="VARCHAR(10)"
> > */
> > String getUserName();
> >
> > /**
> > * Getter method for the users password
> > * @attribute name="PASS_WORD" type="VARCHAR(10)"
> > */
> > String getPassWord();
> > }
> >
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: SF.net Giveback Program.
> > SourceForge.net hosts over 70,000 Open Source Projects.
> > See the people who have HELPED US provide better services:
> > Click here: http://sourceforge.net/supporters.php
> > _______________________________________________
> > xdoclet-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/xdoclet-user
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> SourceForge.net hosts over 70,000 Open Source Projects.
> See the people who have HELPED US provide better services:
> Click here: http://sourceforge.net/supporters.php
> _______________________________________________
> xdoclet-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user
>
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user