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/proposal/myrmidon/src/java/org/apache/antlib/build BuildNumber.java
Date Fri, 29 Mar 2002 01:41:17 GMT
donaldp     02/03/28 17:41:17

  Modified:    proposal/myrmidon/src/java/org/apache/antlib/build
                        BuildNumber.java
  Log:
  Again with the fixing of the speling.
  
  Revision  Changes    Path
  1.3       +7 -7      jakarta-ant/proposal/myrmidon/src/java/org/apache/antlib/build/BuildNumber.java
  
  Index: BuildNumber.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/antlib/build/BuildNumber.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- BuildNumber.java	23 Mar 2002 03:46:31 -0000	1.2
  +++ BuildNumber.java	29 Mar 2002 01:41:17 -0000	1.3
  @@ -27,7 +27,7 @@
    * by one and write it back out into the file.
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
  - * @version $Revision: 1.2 $ $Date: 2002/03/23 03:46:31 $
  + * @version $Revision: 1.3 $ $Date: 2002/03/29 01:41:17 $
    * @ant.task name="build-number"
    */
   public class BuildNumber
  @@ -39,12 +39,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.
  @@ -75,7 +75,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
  @@ -99,7 +99,7 @@
           }
   
           //Finally set the property
  -        getContext().setProperty( DEFAULT_PROPRTY_NAME,
  +        getContext().setProperty( DEFAULT_PROPERTY_NAME,
                                     String.valueOf( buildNumber ) );
       }
   
  @@ -114,7 +114,7 @@
           throws TaskException
       {
           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
  @@ -197,4 +197,4 @@
               throw new TaskException( message );
           }
       }
  -}
  \ No newline at end of file
  +}
  
  
  

--
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