So if I specify a pattern of pattern="#############" then I should get no commas.
Whats happening to the 1.4.1 version of <propertyfile> ? At 11:45 05/03/02 +0000, Erik Hatcher wrote: >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" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >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:[EMAIL PROTECTED]> >> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> >> >> > > >-- >To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
