[
http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1681?page=comments#action_17770
]
Andrew Stevens commented on XDT-1681:
-------------------------------------
I haven't actually tested it works in this particular case, but so far as I can
remember the @tag values are supposed to support Ant property substitution. So
you should be able to use something like
@msg.message language="${locale.setting.property}"
and when you run XDoclet it should use the value from the Ant property (which
should already be defined before reaching the doclet task).
See the @jboss.create-table boxout on
http://xdoclet.sourceforge.net/xdoclet/using.html for another example.
> specify the @tag attribute value at runtime
> -------------------------------------------
>
> Key: XDT-1681
> URL: http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1681
> Project: XDoclet
> Type: Task
> Components: i18n
> Environment: jdk 1.4, weblogic
> Reporter: sree harsha
> Assignee: xdoclet-devel (Use for new issues)
> Priority: Trivial
>
>
> i want to create a locale specific property file using xdoclet's
> externalizer. currently it generates the properties file with file name using
> locale when language is specified in @msg.message language="FR" attribute. so
> it generates the file as
> XXX_FR.properties. But i cant hardcode the langauage. the language has to be
> read from some other configuration file at runtime when the build process is
> run.
> please let me know any possible approach to achieve my goal of setting
> language value at runtime.
> thanks in advance
> hari
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/xdoclet/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
xdoclet-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel