It's correct. Ara.
> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:xdoclet-user- > [EMAIL PROTECTED]] On Behalf Of tek1 > Sent: Thursday, July 04, 2002 11:56 AM > To: [EMAIL PROTECTED] > Subject: RE: [Xdoclet-user] accessing fields/methods in subtask class from > template? > > thanks. > > when you use say, <XDtConfig:ifConfigParamEquals paramName="debug" > value="true"> .... </XDtConfig:ifConfigParamEquals>, do you need to > explicitly put the parameter name "debug" in subtask's ant definition > (below) > > > <ejbdoclet destdir="${config.dir}" verbose="true"> > > <fileset dir="${src.dir}"> > <include name="entity/*.java" /> > </fileset> > > subtask def -> <mySubTask debug="true"/> > > </ejbdoclet> > > > > *IF* you've defined a default value for the parameter "debug" in the > subtask's class definition (below)? > > > public class MySubTask extends XmlSubTask { > > private String debug = "true"; > > public String getDebug() { > return debug; > } > > } > > > basically, from the template file, i'm using: > > <XDtConfig:ifConfigParamEquals paramName="debug" value="true"> > > to see if the "debug" parameter is "true" or "false", where the default > value in the subtask's class definition is "true" (which should indicate > that setting '<mySubTask debug="true"/>' in the ant build.xml is *not* > necessary. > > is this correct? > > thank you. > > > > > At 00:53 02/07/04 +0430, you wrote: > >XDtConfig namespace does that. <XDtConfig:configParameterValue > >paramName="MyParameter"/>. You can even prefix the parameter name with > >the subtask name: "entitycmp.blabla". And there are even > >forAllConfigParam tags for looping over a list of parameters and so on. > >See xdoclet.tagshandler.ConfigTagsHandler class, or search for usages of > >XdtConfig in xdoclet's template files. > > > >Ara. > > > > > -----Original Message----- > > > From: [EMAIL PROTECTED] [mailto:xdoclet-user- > > > [EMAIL PROTECTED]] On Behalf Of tek1 > > > Sent: Wednesday, July 03, 2002 11:32 PM > > > To: [EMAIL PROTECTED] > > > Subject: [Xdoclet-user] accessing fields/methods in subtask class from > > > template? > > > > > > is there a way to access the values in certain fields, defined in a > > > SubTask > > > class, from a template related to that SubTask? > > > > > > thank you. > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Caffeinated soap. No kidding. > http://thinkgeek.com/sf > _______________________________________________ > Xdoclet-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/xdoclet-user ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Caffeinated soap. No kidding. http://thinkgeek.com/sf _______________________________________________ Xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
