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 Constants.java Main.java
Date Mon, 29 Jan 2001 12:42:18 GMT
donaldp     01/01/29 04:42:17

  Modified:    src/main/org/apache/tools/ant Main.java
  Added:       src/main/org/apache/tools/ant Constants.java
  Log:
  Changed source structure so that constants can be retrieved from a separate class built
in alternate tree. This negates the need for multiple source trees.
  
  Revision  Changes    Path
  1.29      +1 -3      jakarta-ant/src/main/org/apache/tools/ant/Main.java
  
  Index: Main.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/Main.java,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- Main.java	2001/01/24 12:53:38	1.28
  +++ Main.java	2001/01/29 12:42:15	1.29
  @@ -72,10 +72,8 @@
   
   public class Main {
   
  -    public final static String VERSION             = "@VERSION@";
  -    public final static String DATE                = "@DATE@";
       public final static String BANNER              = 
  -        "Ant version " + VERSION + " compiled on " + DATE;
  +        "Ant version " + Constants.VERSION + " compiled on " + Constants.DATE;
   
       /** The default build file name */
       public static final String DEFAULT_BUILD_FILENAME = "build.xml";
  
  
  
  1.1                  jakarta-ant/src/main/org/apache/tools/ant/Constants.java
  
  Index: Constants.java
  ===================================================================
  /*
   * Copyright (C) The Apache Software Foundation. All rights reserved.
   *
   * This software is published under the terms of the Apache Software License
   * version 1.1, a copy of which has been included with this distribution in
   * the LICENSE file.
   */
  package org.apache.tools.ant;
  
  /**
   * Abstract interface to hold constants.
   * 
   * @author <a href="mailto:donaldp@apache.org">Peter Donald</a>
   */
  interface Constants
  {
      String  DATE     = "@@DATE@@";
      String  VERSION  = "@@VERSION@@";
  }
  
  
  

Mime
View raw message