cz.cuni.utils
Class Config

java.lang.Object
  extended by cz.cuni.utils.Config

public class Config
extends java.lang.Object

This class holds various configuration parameters / static methods that returns path to pogamutPlatform dir, etc.


Field Summary
static boolean LOG_TO_CONSOLE
          Whether to log everything to console as well, if false then the RootLogger is hacked and ConsoleHandler is removed from it.
protected static java.lang.String PROJECTS_DIR
           
static java.lang.String PYTHON_PATH
          Name of the system property where we store the directory of directory with python modules for Pogamut 2.
static java.lang.String PYTHON_PATH_DELIMITER
          Python path delimiter for python.path
 
Constructor Summary
private Config()
          SINGLETON
 
Method Summary
static java.lang.String fixPythonPath(java.lang.String path)
          Python needs every backslash to be doubled ... this will do it.
static java.lang.String getJythonJarPath()
           
static java.lang.String getPlatformPath()
           
static java.lang.String getProjectsPath()
           
static java.lang.String getPythonModulePath()
           
static void stopLoggingToConsole()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG_TO_CONSOLE

public static final boolean LOG_TO_CONSOLE
Whether to log everything to console as well, if false then the RootLogger is hacked and ConsoleHandler is removed from it.

See Also:
Constant Field Values

PYTHON_PATH

public static final java.lang.String PYTHON_PATH
Name of the system property where we store the directory of directory with python modules for Pogamut 2.

See Also:
Constant Field Values

PYTHON_PATH_DELIMITER

public static final java.lang.String PYTHON_PATH_DELIMITER
Python path delimiter for python.path


PROJECTS_DIR

protected static java.lang.String PROJECTS_DIR
Constructor Detail

Config

private Config()
SINGLETON

Method Detail

stopLoggingToConsole

public static void stopLoggingToConsole()

getPlatformPath

public static java.lang.String getPlatformPath()

getProjectsPath

public static java.lang.String getProjectsPath()

getPythonModulePath

public static java.lang.String getPythonModulePath()

getJythonJarPath

public static java.lang.String getJythonJarPath()

fixPythonPath

public static java.lang.String fixPythonPath(java.lang.String path)
Python needs every backslash to be doubled ... this will do it. Be sure not to have \\ already in the string.

Returns:
string fixed path