proposals/gk/log4j2/src/java/org/apache/turbine/Turbine.java [1050:1123]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public static void setApplicationRoot(String val)
    {
        applicationRoot = val;
    }

    /**
     * Get the application root for this Turbine webapp.
     *
     * @return String applicationRoot
     */
    public static String getApplicationRoot()
    {
        return applicationRoot;
    }

    /**
     * Get the application root for this Turbine webapp as a
     * file object.
     *
     * @return File applicationRootFile
     */
    public static File getApplicationRootAsFile()
    {
        return new File(applicationRoot);
    }

    /**
     * Used to get the real path of configuration and resource
     * information. This can be used by an app being
     * developed in a standard CVS layout.
     *
     * @param path path translated to the application root
     * @return the real path
     */
    public static String getRealPath(String path)
    {
        if (path.startsWith("/"))
        {
            return new File(getApplicationRootAsFile(), path.substring(1)).getAbsolutePath();
        }

        return new File(getApplicationRootAsFile(), path).getAbsolutePath();
    }

    /**
     * Return an instance of the currently configured Service Manager
     *
     * @return A service Manager instance
     */
    private ServiceManager getServiceManager()
    {
        return TurbineServices.getInstance();
    }

    /**
     * Returns the default input encoding for the servlet.
     *
     * @return the default input encoding.
     *
     * @deprecated Use {@link org.apache.turbine.pipeline.DefaultSetEncodingValve} to set default encoding
     */
    @Deprecated
    public static String getDefaultInputEncoding()
    {
        return LocaleUtils.getDefaultInputEncoding();
    }

    /**
     * Static Helper method for looking up the RunDataService
     * @return A RunDataService
     */
    private RunDataService getRunDataService()
    {
        return (RunDataService) getServiceManager().getService(RunDataService.SERVICE_NAME);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



src/java/org/apache/turbine/Turbine.java [1012:1087]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public static void setApplicationRoot(String val)
    {
        applicationRoot = val;
    }

    /**
     * Get the application root for this Turbine webapp.
     *
     * @return String applicationRoot
     */
    public static String getApplicationRoot()
    {
        return applicationRoot;
    }

    /**
     * Get the application root for this Turbine webapp as a file object.
     *
     * @return File applicationRootFile
     */
    public static File getApplicationRootAsFile()
    {
        return new File(applicationRoot);
    }

    /**
     * Used to get the real path of configuration and resource information. This
     * can be used by an app being developed in a standard CVS layout.
     *
     * @param path
     *            path translated to the application root
     * @return the real path
     */
    public static String getRealPath(String path)
    {
        if (path.startsWith("/"))
        {
            return new File(getApplicationRootAsFile(), path.substring(1)).getAbsolutePath();
        }

        return new File(getApplicationRootAsFile(), path).getAbsolutePath();
    }

    /**
     * Return an instance of the currently configured Service Manager
     *
     * @return A service Manager instance
     */
    private ServiceManager getServiceManager()
    {
        return TurbineServices.getInstance();
    }

    /**
     * Returns the default input encoding for the servlet.
     *
     * @return the default input encoding.
     *
     * @deprecated Use
     *             {@link org.apache.turbine.pipeline.DefaultSetEncodingValve}
     *             to set default encoding
     */
    @Deprecated
    public static String getDefaultInputEncoding()
    {
        return LocaleUtils.getDefaultInputEncoding();
    }

    /**
     * Static Helper method for looking up the RunDataService
     *
     * @return A RunDataService
     */
    private RunDataService getRunDataService()
    {
        return (RunDataService) getServiceManager().getService(RunDataService.SERVICE_NAME);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



