tml
Class Configuration
java.lang.Object
tml.Configuration
public class Configuration
- extends java.lang.Object
This class implements the configuration for TML, it reads a default config file from the jar.
It contains the settings for log4j, stopwords and language to use.
- Author:
- Jorge Villalon
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Configuration
public Configuration()
getTmlFolder
public static java.lang.String getTmlFolder()
setTmlFolder
public static void setTmlFolder(java.lang.String tmlFolder)
getReport
public static java.lang.String getReport()
getReport
public void getReport(java.io.PrintStream out)
getContextPath
public static java.lang.String getContextPath()
isDebugMode
public static boolean isDebugMode()
- Returns:
- the debugMode
setDebugMode
public static void setDebugMode(boolean debugMode)
- Parameters:
debugMode
- the debugMode to set
getTmlProperties
public static java.util.Properties getTmlProperties()
throws java.io.IOException
- Returns:
- the set the default properties for TML
- Throws:
java.io.IOException
getTmlProperties
public static java.util.Properties getTmlProperties(java.lang.String tmlFolder)
throws java.io.IOException
- Returns:
- the set the default properties for TML
- Throws:
java.io.IOException
getTmlProperties
public static java.util.Properties getTmlProperties(boolean debugMode,
java.lang.String tmlFolder)
throws java.io.IOException
- Returns:
- the set the default properties for TML
- Throws:
java.io.IOException
getTmlProperties
public static java.util.Properties getTmlProperties(boolean debugMode)
throws java.io.IOException
- Returns:
- the set the default properties for TML
- Throws:
java.io.IOException
setProperties
public static void setProperties(java.util.Properties prop)
- Set TML properties
- Parameters:
prop
-
initialize
public static void initialize()
throws java.io.IOException
- Initializes TML configuration. Reads the default configuration and the overrides if
tml.properties file is found in execution folder.
- Throws:
java.io.IOException