You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Ara Abrahamian <ar...@yahoo.com> on 2002/03/01 10:49:04 UTC
RE: Getting the filename from a property
> 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.
Ara.
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: Getting the filename from a property
Posted by Ara Abrahamian <ar...@yahoo.com>.
> > > 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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Getting the filename from a property
Posted by Erik Hatcher <ja...@ehatchersolutions.com>.
----- Original Message -----
From: "Ara Abrahamian" <ar...@yahoo.com>
> > 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.
Also, what do others thing of this kind of thing? (syntax or general idea)
Erik
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>