You can use values defined in a properties file (ie. build.properties)
within the xdoclet tags like this:
* @ejb.resource-ref
* res-ref-name="${jndi.datasource}"
* res-type="javax.sql.DataSource"
* res-auth="Container"
* jndi-name="${jndi.datasource}"
And in the property file you will have:
jndi.datasource=jdbc/jitikDS
jboss.datasource=java:/jitikDS
Remember to load the properties in build.xml, I put the line just after
the beginning of the build file:
<project name="jitik" basedir="." default="compile">
<project name="jitik" basedir="." default="compile">
<!-- Load property file -->
<property file="${basedir}/build.properties" />
On Wed, 2003-07-30 at 11:53, Kees de Kooter wrote:
> Is it possible to use variables in tags?
>
> for class Foo I would like to create tags like this:
>
> @ejb.bean
> name="{classname}"
> local-jnd-name="{classname}Local"
> etc.
>
> Thanks
> Kees de Kooter
>
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
> http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
> _______________________________________________
> xdoclet-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user
--
Eduardo H. Ram�rez Rangel
Centro de Sistemas Inteligentes, ITESM
[EMAIL PROTECTED] / [EMAIL PROTECTED]
5o. Piso Torre Sur CETEC, ITESM Campus Monterrey
(52-81) 8328-4380, 83-58-2000. Ext. 5134
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user