ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 16934] - BuildNumber task does not set property correctly
Date Tue, 01 Apr 2003 17:24:19 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16934>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16934

BuildNumber task does not set property correctly





------- Additional Comments From rich.naylor@active-endpoints.com  2003-04-01 17:24 -------
Your suggestion works fine as long as there is an existing version file. 
Otherwise I get the following stack trace only on the initial execution when 
there is no existing property file.

[propertyfile] Creating new property file: C:\temp\build.txt
[propertyfile] java.lang.NullPointerException
[propertyfile]  at java.text.DecimalFormat.parse(DecimalFormat.java:1044)
[propertyfile]  at java.text.NumberFormat.parse(NumberFormat.java:312)
[propertyfile]  at 
org.apache.tools.ant.taskdefs.optional.PropertyFile$Entry.executeIntege
r(PropertyFile.java:477)
[propertyfile]  at 
org.apache.tools.ant.taskdefs.optional.PropertyFile$Entry.executeOn(Pro
pertyFile.java:392)
[propertyfile]  at 
org.apache.tools.ant.taskdefs.optional.PropertyFile.executeOperation(Pr
opertyFile.java:197)
[propertyfile]  at org.apache.tools.ant.taskdefs.optional.PropertyFile.execute
(PropertyFile.java:184)
[propertyfile]  at org.apache.tools.ant.Task.perform(Task.java:319)
[propertyfile]  at org.apache.tools.ant.Target.execute(Target.java:309)
[propertyfile]  at org.apache.tools.ant.Target.performTasks(Target.java:336)
[propertyfile]  at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
[propertyfile]  at org.apache.tools.ant.Project.executeTargets
(Project.java:1250)
[propertyfile]  at org.apache.tools.ant.Main.runBuild(Main.java:610)
[propertyfile]  at org.apache.tools.ant.Main.start(Main.java:196)
[propertyfile]  at org.apache.tools.ant.Main.main(Main.java:235)
     [echo] Build number = 1

Mime
View raw message