ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominique Devienne" <DDevie...@lgc.com>
Subject RE: Re: os-independent directory mapping in copy task?
Date Thu, 24 Mar 2005 15:57:31 GMT
> From: news [mailto:news@sea.gmane.org] On Behalf Of Peter Nabbefeld
> 
> Dominique Devienne schrieb:
> >>Ant 1.6.3 will add a new attribute to the regexp mapper:
handledirchar
> >>
> >>        <regexpmapper from="${basedir}/d/e/(.*)" to="\1"
> >>                      handledirchar="yes"/>
> >
> >
> > I missed the introduction of this one. cool!
> >
> > OTOH, its name sounds weird. How about simply calling it 'dirsep' to
be
> > consistent with <pathconvert>? In this context, it simply overrides
the
> > default platform's dirsep used when interpreting the regexp. No?
--DD
> 
> That's not an issue of consistency: While pathconvert creates an
> os-specific path, regexpmapper analyses a path - handledirchar just
> allows the mapper to treat file separators system-independently.
That's
> why dirsep is a character attribute, while handledirchar is boolean.

I still don't like the name much, but I see your point. And I don't have
a better name to propose. Actually, I do. 'handledirsep' at least uses
the same terminology as in <pathconvert>, for the same concept. --DD

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message