ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sayatovic, Brian" <>
Subject Trouble with PropertyFile
Date Tue, 28 May 2002 14:45:08 GMT
I'm getting a NullPointerException while I'm trying to update a properties file.  My best guess
is that, somehow, the 'old value' is turning out to be null, though my echos indicate that
it isn't.  Below is the snipper from my build.xml, followed by the output with th exception:

	<target name="_increment-build-number">
		<echo>Increment build number...</echo>
		<echo message="version.a=${version.a}"/>
		<echo message="version.b=${version.b}"/>
		<echo message="version.c=${version.c}"/>
		<echo message="version.d=${version.d}"/>
		<echo message="${}"/>

		<propertyfile file="${version.file}" comment="Version information">
			<entry key="" default="00000" type="int" operation="+" pattern="00000"/>

	     [echo] Increment build number...
	     [echo] version.a=1
	     [echo] version.b=0
	     [echo] version.c=0
	     [echo] version.d=0
	[propertyfile] Updating property file: C:\Projects\Divine\WebSelfHelp\core\CIM Components\config\build\com.divine.cim.config.version
	[propertyfile] java.lang.NullPointerException
	[propertyfile]  at java.text.DecimalFormat.parse(
	[propertyfile]  at java.text.NumberFormat.parse(
	[propertyfile]  at$Entry.executeInteger(
	[propertyfile]  at$Entry.executeOn(
	[propertyfile]  at
	[propertyfile]  at
	[propertyfile]  at
	[propertyfile]  at
	[propertyfile]  at
	[propertyfile]  at
	[propertyfile]  at
	[propertyfile]  at
	[propertyfile]  at
	[propertyfile]  at

Any ideas?


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

View raw message