ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs BuildNumber.java
Date Fri, 29 Mar 2002 01:40:12 GMT
donaldp     02/03/28 17:40:12

  Modified:    src/main/org/apache/tools/ant/taskdefs BuildNumber.java
  Log:
  Typo fix.
  
  DEFAULT_PROPRTY_NAME --> DEFAULT_PROPERTY_NAME
  
  Submitted by: Erik Hatcher
  
  Revision  Changes    Path
  1.2       +6 -6      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/BuildNumber.java
  
  Index: BuildNumber.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/BuildNumber.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- BuildNumber.java	29 Mar 2002 01:30:41 -0000	1.1
  +++ BuildNumber.java	29 Mar 2002 01:40:12 -0000	1.2
  @@ -70,7 +70,7 @@
    * by one and write it back out into the file.
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
  - * @version $Revision: 1.1 $ $Date: 2002/03/29 01:30:41 $
  + * @version $Revision: 1.2 $ $Date: 2002/03/29 01:40:12 $
    * @ant.task name="buildnumber"
    */
   public class BuildNumber
  @@ -79,12 +79,12 @@
       /**
        * 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 @@
           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 @@
           }
   
           //Finally set the property
  -        getProject().setProperty( DEFAULT_PROPRTY_NAME,
  +        getProject().setProperty( DEFAULT_PROPERTY_NAME,
                                     String.valueOf( buildNumber ) );
       }
   
  @@ -162,7 +162,7 @@
           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
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message