ahhh, sorry. ok... so.... (take two :)....
in the samples build, we have
<jboss
version="2.4"
xmlencoding="UTF-8"
destdir="${ejb.dd.dir}"
validatexml="false"
datasource="java:/DefaultDS"
typemapping="Hypersonic SQL"
/>
and in the jboss-jaws_xml.j we have
<XDtConfig:ifConfigParamEquals paramName="Version" value="2.4">
<!DOCTYPE jaws PUBLIC "-//JBoss//DTD JAWS 2.4//EN"
"http://www.jboss.org/j2ee/dtd/jaws_2_4.dtd">
</XDtConfig:ifConfigParamEquals>
<XDtConfig:ifConfigParamEquals paramName="Version" value="3.0">
<!DOCTYPE jaws PUBLIC "-//JBoss//DTD JAWS 3.0//EN"
"http://www.jboss.org/j2ee/dtd/jaws_3_0.dtd">
</XDtConfig:ifConfigParamEquals>
If you look at the JBossSubTask, you'll see set/getVersion. The XDtConfig
tag uses reflection to look at the current subtask (in this case jboss) for
the config parameter being asked for. So, in relation to the question you
ask, there's nothing stopping you doing something similar, but as you
suggested in your first email - yes, you need to have the property you are
querying present in the current subtask.
hope I did a reasonable job of explaining it (o:
cheers
dim
----- Original Message -----
From: "Erik Hatcher" <[EMAIL PROTECTED]>
To: "Dmitri Colebatch" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Thursday, January 17, 2002 12:59 PM
Subject: Re: [Xdoclet-user] Config params
> While Ant property substitution in templates is WAY cool, I'm actually
> specifically talking about the <XDtConfig:...> tags so that a template
could
> be controlled from Ant in some way beyond just property substitution -
i.e.
> turning on/off output.
>
> Could the use of those config tags be demonstrated with some examples?
>
> Erik
>
>
> ----- Original Message -----
> From: "Dmitri Colebatch" <[EMAIL PROTECTED]>
> To: "Erik Hatcher" <[EMAIL PROTECTED]>;
> <[EMAIL PROTECTED]>
> Sent: Wednesday, January 16, 2002 7:58 PM
> Subject: Re: [Xdoclet-user] Config params
>
>
> > Have a look in the samples, at the AccountBean. The lines:
> >
> > * @jboss:table-name "account"
> > * @jboss:create-table "${jboss.create.table}"
> > * @jboss:remove-table "${jboss.remove.table}"
> > * @jboss:tuned-updates "${jboss.tuned.updates}"
> > * @jboss:read-only "${jboss.read.only}"
> >
> > pick up the corresponding ant properties from the samples build.xml:
> >
> > <!-- These are here to test the use of properties in @tags -->
> > <property name="jboss.create.table" value="true" />
> > <property name="jboss.remove.table" value="true" />
> > <property name="jboss.tuned.updates" value="true" />
> > <property name="jboss.read.only" value="false" />
> >
> > does that help? To do this, you dont need a subtask (although I haven't
> > tried it myself)... so should be able to use it with the template
subtask.
> >
> > hth
> > dim
> >
> >
> > ----- Original Message -----
> > From: "Erik Hatcher" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, January 17, 2002 11:35 AM
> > Subject: [Xdoclet-user] Config params
> >
> >
> > > Is it possible to use config parameters in regular templates? I think
I
> > > read somewhere that a custom subtask is required, but I just wanted to
> get
> > > confirmation.
> > >
> > > If you can use parameters with standard templates, could someone
provide
> > an
> > > example of their use?
> > >
> > > Thanks,
> > > Erik
> > >
> > >
> > > _______________________________________________
> > > Xdoclet-user mailing list
> > > [EMAIL PROTECTED]
> > > https://lists.sourceforge.net/lists/listinfo/xdoclet-user
> >
> >
>
>
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user