Package org.opencms.setup
Class CmsAutoSetup
- java.lang.Object
-
- org.opencms.setup.CmsAutoSetup
-
public class CmsAutoSetup extends java.lang.Object
A bean to perform a OpenCms setup automatically.- Since:
- 9.0
-
-
Constructor Summary
Constructors Constructor Description CmsAutoSetup(CmsAutoSetupProperties props)
A bean for a automatically performed setup of OpenCms.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
initSetupBean()
Initializes the setup bean with the auto setup properties.static void
main(java.lang.String[] args)
Main program entry point when started via the command line.void
run()
Performs the setup.void
setupDB()
Creates DB and tables when necessary.
-
-
-
Constructor Detail
-
CmsAutoSetup
public CmsAutoSetup(CmsAutoSetupProperties props)
A bean for a automatically performed setup of OpenCms.- Parameters:
props
- the properties to use
-
-
Method Detail
-
main
public static void main(java.lang.String[] args)
Main program entry point when started via the command line.- Parameters:
args
- parameters passed to the application via the command line
-
initSetupBean
public void initSetupBean()
Initializes the setup bean with the auto setup properties.
-
run
public void run() throws java.lang.Exception
Performs the setup.- Throws:
java.lang.Exception
- in case the setup fails
-
setupDB
public void setupDB() throws java.lang.Exception
Creates DB and tables when necessary.- Throws:
java.lang.Exception
- in case creating DB or tables fails
-
-