ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Hatcher" <jakarta-...@ehatchersolutions.com>
Subject Re: PropertyFile
Date Tue, 05 Mar 2002 11:44:44 GMT
The format used for "int" types by <propertyfile> is DecimalFormat.  I did
not see what that default format is in the API docs, but you can specify
your own 'pattern' format, which will resolve this (I think! - all bets are
off with the 1.4.1 version of <propertyfile>).

    Erik


----- Original Message -----
From: "Stuart Barlow" <Stuart.Barlow@hummingbird.com>
To: <ant-dev@jakarta.apache.org>
Sent: Tuesday, March 05, 2002 4:52 AM
Subject: PropertyFile


>
> When incrementing a build number greater than 999
> I start to get , characters in the middle of my number.
> i.e. 1,000 or 500,234
> This causes trouble when I assign it to an integer in a
> java class.
>
> Is this the desired default behavior?
> Would it be better to make , formatting a special case.
> Is it possible to use the 'pattern' attribute to resolve this?
>
> At present I am using the replace task to remove all ,
> from property file afterwards.
>
> Thanks,
> Stuart.
>
>
> Stuart Barlow
> Tel: +44 131 468 8205
> *************************************************************************
> Information in this email is confidential and may be privileged. It is
> intended for the named addressee(s) only. If you have received it in
> error please notify the sender immediately and delete it from your
> system. You should not otherwise copy, retransmit, use or disclose its
> contents to anyone.
> *************************************************************************
>
>
> --
> To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>
>
>


--
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