Browse Source

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.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268530 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Donald 24 years ago
parent
commit
88355d87fd
2 changed files with 20 additions and 3 deletions
  1. +19
    -0
      src/main/org/apache/tools/ant/Constants.java
  2. +1
    -3
      src/main/org/apache/tools/ant/Main.java

+ 19
- 0
src/main/org/apache/tools/ant/Constants.java View File

@@ -0,0 +1,19 @@
/*
* 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@@";
}

+ 1
- 3
src/main/org/apache/tools/ant/Main.java View File

@@ -72,10 +72,8 @@ import java.util.*;

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


Loading…
Cancel
Save