Hey guys,

A follow up on an old thread.

> org.apache.tools.ant.ProjectHelper has some methods that are used for
> property expansion.  I don't believe you have a handle to the Project
> instance in XDocletTagSupport, but if you do then call replaceProperties.
> If not, then you could use parsePropertyString to do the work for you (if
> you go this route, you can borrow the code in replaceProperties).
>
> The problem that exists now is that XDocletTagSupport.getParameterValue
> appears to be a bug in dereferenceProperty that only returns the property
> value and not the surrounding text also - although it was tough to
navigate
> through getParameterValue's logic enough to truly diagnose it.  If you
> substitute the use of ProjectHelper.parsePropertyString at least, and
> perhaps even replaceProperties into dereferenceProperty you'll likely have
> it fixed.

just an old mail I had on it.

The real issue is that we are inconsistant in where we call
XDocletTagSupport.dereferenceProperties which is what does the substitution.
Given the nice XTag interface, I'm wondering how easy it would be to wrap it
with a decorator for use in XDoclet to ensure that this happens
automatically... same would go for XClass too....

thoughts?

also - as I've been out of the loop for a bit, could someone point me to a
reference on
  - i18n - I remember work being done here a while ago and wouldn't want to
undo it
  - testing - where did this get to?

cheers
dim

>
>     Erik
>
> ----- Original Message -----
> From: "Dmitri Colebatch" <[EMAIL PROTECTED]>
> To: "Erik Hatcher" <[EMAIL PROTECTED]>;
> <[EMAIL PROTECTED]>
> Sent: Sunday, February 03, 2002 6:42 PM
> Subject: Re: [Xdoclet-user] Re: xdoclet and multiple deployement.
>
>
> > > > Property replacement works the same way for all tags. The problem is
> > > > that property replacement only works if you use
> > > > someparam="${some.property}", but not with
> > > > someparam="foo${some.property} or someparam="${some.property}bar".
Dim
> > > > implemented this, so maybe he could fix it. The workaround in the
> > > > meanwhile is to concatenate the extra stuff into a separate property
> > > > and refer to that. Erik Hatcher (who is an Ant committer) could
maybe
> > > > be helpful in this too.
> > >
> > > What module is doing that property expansion?  Ant has helper methods
> > > (replaceProperties, I believe) to do this for you, so you must be
doing
> > > something different than calling Ant's API.  Point me in the right
> direction
> > > and I'll go have a look.
> >
> > Erik,
> >
> > XDocletTagSupport.getParameterValue and
> XDocletTagSupport.dereferenceProperty.  I implemented it initially, and
only
> had a quick
> > look through ant, so any improvement would be more than welcome.  I had
> actually missed the inital email - so will have a look
> > myself as well, but if there are utility classes in ant I should be
> using - it'd be great to get a pointer.
> >
> > thanks
> > dim
> >
> >
>
>
> _______________________________________________
> 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

Reply via email to