ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ara Abrahamian" <ara_...@yahoo.com>
Subject RE: Getting the filename from a property
Date Fri, 01 Mar 2002 13:19:09 GMT
> > > We gotta make things like this simpler, perhaps with special
property
> > > syntax
> > > similar to how MessageFormat stuff works.
> > >
> > > ${propertyname,file,filename}
> > >
> > > Come to think of it, is MessageFormat at all extensible to be able
to
> > > define
> > > other things besides "date", "time", "number", or "choice"? [I
don't
> > think
> > > so, but one can dream!]
> >
> > Looks interesting. Attaching type info to a literal value is
interesting
> > and useful. And you can derive from MessageFormat and define
whatever
> > you like there.
> 
> Does anyone know of examples subclassing MessageFormat to achieve such
> things?  I don't want to reinvent the wheel if I prototype something
like
> this.

Take a look at JDK's source code, DecimalFormat for example.

Ara.


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message