|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.opencms.boot.CmsSetupUtils
This class provides several utilities and methods used by the OpenCms setup wizard
| Constructor Summary | |
CmsSetupUtils(String basePath)
Constructor |
|
| Method Summary | |
void |
backupRegistry(String registryFilename,
String originalRegistryFilename)
Restores the registry.xml either to or from a backup file, depending whether the setup wizard is executed the first time (the backup registry doesnt exist) or not (the backup registry exists). |
static boolean |
compareJDKVersions(String usedJDK,
String requiredJDK)
Checks if the used JDK is a higher version than the required JDK |
void |
copyFile(String sourceFilename,
String destFilename)
Copies a given file. |
static String |
escape(String source,
String encoding)
URLEncodes a given string similar to JavaScript. |
Vector |
getErrors()
|
void |
saveProperties(source.org.apache.java.util.ExtendedProperties extProp,
String originalFile,
boolean backup)
Saves properties to specified file. |
static boolean |
supportedServletEngine(String thisEngine,
String[] supportedEngines)
Checks if the used servlet engine is part of the servlet engines OpenCms supports |
static int |
unsupportedServletEngine(String thisEngine,
String[] unsupportedEngines)
Checks if the used servlet engine is part of the servlet engines OpenCms does NOT support |
static void |
writeVersionInfo(String thisEngine,
String usedJDK,
String basePath)
Writes the version info of the used servlet engine and the used JDK to the version.txt |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CmsSetupUtils(String basePath)
| Method Detail |
public void saveProperties(source.org.apache.java.util.ExtendedProperties extProp,
String originalFile,
boolean backup)
extProp - Properties to be savedoriginalFile - File to save props tobackup - if true, create backupfile
public void copyFile(String sourceFilename,
String destFilename)
sourceFilename - source filedestFilename - destination file
public void backupRegistry(String registryFilename,
String originalRegistryFilename)
originalRegistryFilename - something like "registry.ori"registryFilename - the registry's real file name "registry.xml"
public static String escape(String source,
String encoding)
source - string to be encodedpublic Vector getErrors()
public static boolean compareJDKVersions(String usedJDK,
String requiredJDK)
usedJDK - The JDK version in userequiredJDK - The required JDK version
public static boolean supportedServletEngine(String thisEngine,
String[] supportedEngines)
thisEngine - The servlet engine in usesupportedEngines - All known servlet engines OpenCms supports
public static int unsupportedServletEngine(String thisEngine,
String[] unsupportedEngines)
thisEngine - The servlet engine in use
public static void writeVersionInfo(String thisEngine,
String usedJDK,
String basePath)
thisEngine - The servlet engine in useusedJDK - The JDK version in use
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||