ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nolan Ring <Nolan.R...@Sun.Com>
Subject 1.5Beta1 propertyfile task: Generating build number throws NullPo interException (was: propertyfile task returning wrong date)
Date Fri, 03 May 2002 15:46:29 GMT
I downloaded 1.5 Beta1. 

Now the date is right but generating the build number throws a

[propertyfile] Updating property file:
[propertyfile] java.lang.NullPointerException
[propertyfile] 	at java.text.DecimalFormat.parse(
[propertyfile] 	at java.text.NumberFormat.parse(
[propertyfile] 	at$Entry.executeInteger(Pro
[propertyfile] 	at$Entry.executeOn(Property
[propertyfile] 	at
[propertyfile] 	at
[propertyfile] 	at
[propertyfile] 	at
[propertyfile] 	at
[propertyfile] 	at
[propertyfile] 	at
[propertyfile] 	at
[propertyfile] 	at
[propertyfile] 	at
     [echo] Buildlabel is 20020503AM_
     [echo] Builddate is 20020503AM
     [echo] Buildnum is 

BTW, the xml code is:

<propertyfile file="" comment="Date, time and build
number of most recent build"> 
<entry key="buildnum" type="int" default="0000" operation="+" pattern="0000"
<entry key="builddate" type="date" default="now" pattern="yyyyMMdda" /> 
<entry key="buildlabel" value="${builddate}_${buildnum}" /> 
<property file="" /> 
<echo message="Buildlabel is ${buildlabel}" /> 
<echo message="Builddate is ${builddate}" /> 
<echo message="Buildnum is ${buildnum}" /> 

Thanks much.


-----Original Message-----
From: Diane Holt []
Sent: Friday, May 03, 2002 9:49 AM
To: Ant Users List
Subject: RE: propertyfile task returning wrong date

--- Nolan Ring <Nolan.Ring@Sun.Com> wrote:
> Actually my real question is why doesn't the snippet of xml for the
> propertyfile task work correctly, ie
> why doesn't it return the right date.

Looks to have been a bug -- fixed in Ant1.5.



Do You Yahoo!?
Yahoo! Health - your guide to health and wellness

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message