com.opencms.boot
Class CmsMain

java.lang.Object
  |
  +--com.opencms.boot.CmsMain

public class CmsMain
extends Object

Command line interface to access resources in OpenCms.

This can be used to test the OpenCms VFS, it is also used for the initial setup.

Version:
$Revision: 1.12 $ $Date: 2003/04/01 15:20:18 $
Author:
Andreas Schouten, Anders Fugmann

Constructor Summary
CmsMain()
           
 
Method Summary
static void main(String[] args)
          Main program entry point when started via the command line.
static String searchBaseFolder(String startFolder)
          Searches for the OpenCms web application base folder during startup.
static void startSetup(String file, String base)
          Main program entry point when started via the OpenCms setup wizard.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmsMain

public CmsMain()
Method Detail

main

public static void main(String[] args)
Main program entry point when started via the command line.

Parameters:
args - parameters passed to the application via the command line

startSetup

public static void startSetup(String file,
                              String base)
Main program entry point when started via the OpenCms setup wizard.

Parameters:
file - filename of a file containing the setup commands (e.g. cmssetup.txt)
base - base folder for the OpenCms web application

searchBaseFolder

public static String searchBaseFolder(String startFolder)
Searches for the OpenCms web application base folder during startup.

Parameters:
startFolder - the folder where to start searching
Returns:
String the name of the folder on the local file system