Thanks Eduardo,

This is a very useful feature. But it is not what I am looking for.

I would like to have a variable reference to classes and packages, so if I rename classes or packages the xdoclet tags do not need to be touched.


Eduardo H. Ramirez R. wrote:


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" />








-------------------------------------------------------
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

Reply via email to