From 0436e4cac3ff8a208cef31d527a3d4e46ef9babf Mon Sep 17 00:00:00 2001 From: Peter Donald Date: Fri, 29 Mar 2002 01:40:12 +0000 Subject: [PATCH] Typo fix. DEFAULT_PROPRTY_NAME --> DEFAULT_PROPERTY_NAME Submitted by: Erik Hatcher git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272085 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/tools/ant/taskdefs/BuildNumber.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/org/apache/tools/ant/taskdefs/BuildNumber.java b/src/main/org/apache/tools/ant/taskdefs/BuildNumber.java index d3c6f677d..57b19cf65 100644 --- a/src/main/org/apache/tools/ant/taskdefs/BuildNumber.java +++ b/src/main/org/apache/tools/ant/taskdefs/BuildNumber.java @@ -79,12 +79,12 @@ public class BuildNumber /** * The name of the property in which the build number is stored. */ - private static final String DEFAULT_PROPRTY_NAME = "build.number"; + private static final String DEFAULT_PROPERTY_NAME = "build.number"; /** * The default filename to use if no file specified. */ - private static final String DEFAULT_FILENAME = DEFAULT_PROPRTY_NAME; + private static final String DEFAULT_FILENAME = DEFAULT_PROPERTY_NAME; /** * The File in which the build number is stored. @@ -115,7 +115,7 @@ public class BuildNumber final Properties properties = loadProperties(); final int buildNumber = getBuildNumber( properties ); - properties.put( DEFAULT_PROPRTY_NAME, + properties.put( DEFAULT_PROPERTY_NAME, String.valueOf( buildNumber + 1 ) ); // Write the properties file back out @@ -147,7 +147,7 @@ public class BuildNumber } //Finally set the property - getProject().setProperty( DEFAULT_PROPRTY_NAME, + getProject().setProperty( DEFAULT_PROPERTY_NAME, String.valueOf( buildNumber ) ); } @@ -162,7 +162,7 @@ public class BuildNumber throws BuildException { final String buildNumber = - properties.getProperty( DEFAULT_PROPRTY_NAME, "0" ).trim(); + properties.getProperty( DEFAULT_PROPERTY_NAME, "0" ).trim(); // Try parsing the line into an integer. try