git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268530 13f79535-47bb-0310-9956-ffa450edef68master
| @@ -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@@"; | |||||
| } | |||||
| @@ -72,10 +72,8 @@ import java.util.*; | |||||
| public class Main { | public class Main { | ||||
| public final static String VERSION = "@VERSION@"; | |||||
| public final static String DATE = "@DATE@"; | |||||
| public final static String BANNER = | public final static String BANNER = | ||||
| "Ant version " + VERSION + " compiled on " + DATE; | |||||
| "Ant version " + Constants.VERSION + " compiled on " + Constants.DATE; | |||||
| /** The default build file name */ | /** The default build file name */ | ||||
| public static final String DEFAULT_BUILD_FILENAME = "build.xml"; | public static final String DEFAULT_BUILD_FILENAME = "build.xml"; | ||||