ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GuardianOfSt...@netscape.net (Edson Alves Pereira)
Subject RE: Re: Default messages
Date Thu, 22 Nov 2001 11:49:58 GMT
  That´s right, but we could create a package called [ msg ] and inside this package will
have a number of specialized classes for each kind of message.

Peter Donald <peter@apache.org> wrote:

>On Thu, 22 Nov 2001 06:57, Edson Alves Pereira wrote:
>>   Therere some places in Ants source that frases are hardcoded, i think
>> that is better to create a main objeto to store messages to show to the
>> user. Like:
>>
>> if (srcFile.lastModified() > now)
>> {
>>   log("Warning: file modified in the future: " +
>>       files[i], Project.MSG_WARN);
>> }
>>
>> to something like this:
>>
>> if (srcFile.lastModified() > now)
>> {
>>   log( JSysMsg.getMsg( JSysMsg.MODIFIED_FUTURE ),
>>       files[i], Project.MSG_WARN );
>> }
>>
>>   Maybe with that stuff we could make Ant multi language! Tell me what do
>> you think!
>
>I would like to go that direction in the future. However I do not think that
>putting all messages in one class is a good idea. There are a huge number of
>messages to store and that class would be massive. It is far superioir to
>store them in a properties file so it can be loaded from a ResourceBundle.
>
>--
>Cheers,
>
>Pete
>
>----------------------------------
>Ancient Go proverb: "Only amateurs
>try to come up with 'fancy' moves"
>----------------------------------
>
>--
>To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>
>
>
-- 
///////////////////////////////////////
Better well done than well said.
 --//--
To follow the path:
look to the master,
follow the master,
walk with the master,
see through the master,
become the master.

Modern Zen poem
///////////////////////////////////////



__________________________________________________________________
Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience
of buying online with Shop@Netscape! http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.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