/**
 *
 * Copyright 2003-2004 The Apache Software Foundation
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */

package org.apache.geronimo.system.serverinfo;

import java.io.File;
import java.net.URI;

/**
 * Contains information about the server and functions for resolving
 * pathnames.
 *
 * @version $Rev$ $Date$
 */
public interface ServerInfo {
    public String resolvePath(final String filename);

    public String resolveServerPath(final String filename);

    /**
     * Resolves an abstract pathname to a File.
     *
     * @param filename a <code>String</code> containing a pathname,
     * which will be resolved by {@link #resolvePath(String
            * filename)}.
     * @return a <code>File</code> value
     */
    public File resolve(final String filename);

    public File resolveServer(final String filename);

    public URI resolve(final URI uri);

    public URI resolveServer(final URI uri);

    /**
     * A config.xml setting for the base directory.  This is normally
     * left null, which means the ServerInfo will use the Geronimo
     * install directory.
     */
    public String getBaseDirectory();

    /**
     * The base directory that this ServerInfo is actually using.
     */
    public String getCurrentBaseDirectory();

    public String getVersion();

    public String getBuildDate();

    public String getBuildTime();

    public String getCopyright();
}

@@ -1010,18 +1010,17 @@
 es a
-n abstract
+ relative
  pat
@@ -1034,17 +1034,108 @@
 o a File
-.
+, relative to the server%0A     * installation directory (e.g. %22foo%22 becomes .../geronimo/foo)
 %0A     *%0A
@@ -1378,32 +1378,565 @@
 ing filename);%0A%0A
+    /**%0A     * Resolves a relative pathname to a File, relative to the server%0A     * configuration directory.  Normally, this is the same as the Geronimo%0A     * installation directory (e.g. %22foo%22 becomes .../geronimo/foo).%0A     * However, you can pass command-line arguments to the server to relocate%0A     * this to a server-instance-specific directory (e.g. %22var/foo%22 might%0A     * become .../geronimo/instance1/var/foo if the server was started with%0A     * the flag indicating that the server instance dir was %22instance1%22).%0A     */%0A
     public File 

Add a bit of doc