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

Reply via email to