From: Kees de K. <kd...@bo...> - 2003-07-30 19:10:48
|
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" /> > > > > |