ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <>
Subject Re: Possible Ant 1.7 alpha bug: property expansion.
Date Fri, 04 Jun 2004 16:35:53 GMT
--- Stefan Bodewig <> wrote:
> I don't see any easy way to defer the actual string
> tokenization to
> the individual PropertyHelpers of the chain, so we
> may be better
> served by defining a more useful algorithm at the
> top.

One (slightly messy) solution might be to decouple the
parsing and substitution... thinking out loud here so
forgive any glaring omissions or errors...

interface oata.PropertyParser {
  void parsePropertyString(String value,
           Vector fragments, Vector propertyRefs);}

BC could be preserved by making the existing
PropertyHelper abstract and add:
public class oata.helper.DefaultPropertyHelper
 extends oata.PropertyHelper
 implements oata.PropertyParser {}

... and modify PropertyHelper:
public static PropertyParser
public static PropertyHelper

  so that the default set for each is a
DefaultPropertyHelper, with an "ant.PropertyParser"
reference added corresponding to "ant.PropertyHelper".



Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger. 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message