You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Juergen Damke <DA...@de.ibm.com> on 2002/05/06 19:04:17 UTC
Ant 1.5 Beta - propertyfile problem
The following snip (see below) trap (without failing the build !!) under
AIX, but
runs successfule under Win NT.
Any ideas ?
<target name="lang.prop.count">
<propertyfile file="${language.tmp}" comment=" @copyright
properties">
<entry key="max.count" type="int" operation="+" default="0"/>
</propertyfile>
<!-- re-load the properties file -->
<property file="${language.tmp}"/>
<echo>language count=${max.count}, locale=${locale}.</echo>
<propertyfile file="${language.tmp}" comment=" @copyright
properties">
<entry key="language.${max.count}" value="${locale}"/>
</propertyfile>
</target>
lang.prop.count:
[propertyfile] Updating property file:
/wpsbuild/bld41/05061829/language.properties
[forlist] java.lang.NullPointerException
[forlist] at java.text.DecimalFormat.parse(DecimalFormat.java:773)
[forlist] at java.text.NumberFormat.parse(NumberFormat.java:271)
[forlist] at
org.apache.tools.ant.taskdefs.optional.PropertyFile$Entry.executeInteger(PropertyFile.java:441)
[forlist] at
org.apache.tools.ant.taskdefs.optional.PropertyFile$Entry.executeOn(PropertyFile.java:344)
[forlist] at
org.apache.tools.ant.taskdefs.optional.PropertyFile.executeOperation(PropertyFile.java:198)
[forlist] at
org.apache.tools.ant.taskdefs.optional.PropertyFile.execute(PropertyFile.java:185)
[forlist] at org.apache.tools.ant.Task.perform(Task.java(Compiled
Code))
[forlist] at
org.apache.tools.ant.Target.execute(Target.java(Compiled Code))
[forlist] at
org.apache.tools.ant.Target.performTasks(Target.java(Compiled Code))
[forlist] at
org.apache.tools.ant.Project.executeTarget(Project.java(Compiled Code))
[forlist] at
org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:357)
[forlist] at
org.apache.tools.ant.taskdefs.optional.ForList.execute(ForList.java(Compiled
Code))
[forlist] at
org.apache.tools.ant.taskdefs.optional.ForList.execute(ForList.java(Compiled
Code))
[forlist] at org.apache.tools.ant.Task.perform(Task.java(Compiled
Code))
[forlist] at
org.apache.tools.ant.Target.execute(Target.java(Compiled Code))
[forlist] at
org.apache.tools.ant.Target.performTasks(Target.java:334)
[forlist] at
org.apache.tools.ant.Project.executeTarget(Project.java:1216)
[forlist] at
org.apache.tools.ant.Project.executeTargets(Project.java:1160)
[forlist] at org.apache.tools.ant.Main.runBuild(Main.java:605)
[forlist] at org.apache.tools.ant.Main.start(Main.java:195)
[forlist] at org.apache.tools.ant.Main.main(Main.java:234)
[echo] language count=, locale=cs.
[propertyfile] Updating property file:
/wpsbuild/bld41/05061829/language.properties
Mit freundlichen Grüßen / With best regards
Jürgen Damke
______________________________________________________________________
IBM WebSphere Portal Server Development 1, Dept 6547
URL: http://www-4.ibm.com/software/webservers/portal/
IBM Development Laboratory Böblingen, Germany
Phone: +49/7031/16 -3375, Fax: -4888 - MailTo:damke@de.ibm.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Ant 1.5 Beta - propertyfile problem
Posted by Diane Holt <ho...@yahoo.com>.
It's a known regression in Ant1.5Beta1, waiting for me to find time to
deal with testcases before I put my (potential) fix through.
In the meantime, if you want me to send you my classfiles for
<propertyfile>, let me know (but with the qualification that it's as yet
untested beyond running a few various cases by hand.)
Diane
=====
(holtdl@yahoo.com)
__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>