--- Erik Joghems <[EMAIL PROTECTED]> wrote: > Hi, > > Is it possible to extract the value of a (constant) > field ? > > I'm trying to write a template to create a > properties file (message > bundle) form java constants. > My java files are of the form: > > ... > /** @my.msg text="Some message text" */ > public static final String C_MSG_SOME_MESSAGE = > "MY_SPECIAL_MESSAGE"; > ... > > From this I would like this to generate a file > containing lines like this: > ... > MY_SPECIAL_MESSAGE = Some message text > ... > > The right hand side poses no problem, but I haven't > found any way to > generate the left hand side (using xdoclet). > > Any suggestions...
AFAIR, xjavadoc does not pase constant field values ( neither does qdox used in xdoclet 2 ) That's why we used decapitalized name of constant. regards, ----[ Konstantin Pribluda http://www.pribluda.de ]---------------- Still using XDoclet 1.x? XDoclet 2 is released and of production quality. check it out: http://xdoclet.codehaus.org __________________________________ Start your day with Yahoo! - Make it your home page! http://www.yahoo.com/r/hs ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information _______________________________________________ xdoclet-user mailing list xdoclet-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-user