ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Juergen Damke" <DA...@de.ibm.com>
Subject Ant 1.5 Beta - propertyfile problem
Date Mon, 06 May 2002 17:04:17 GMT

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:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message