Ejemplo n.º 1
0
def exist_install():
    """
   Installs eXist, WARNING: Will overwrite any existing installation
   """
    stop_exist("IGNORE_ERROR")
    tasks = bungeni.XmldbTasks()
    tasks.setup_exist()
Ejemplo n.º 2
0
def exist_dump_data(to_path):
    """
    Dumps the eXits-db data
    Example: ./fl exist_dump_data:/home/undesa/on_db_r10186.tar.gz
    """

    xmldbtasks = bungeni.XmldbTasks()
    xmldbtasks.dump_data(to_path)
Ejemplo n.º 3
0
def exist_deploy_mode():
    """
    Switch eXist to Deployment mode, will restart eXist automatically
    """
    stop_exist("IGNORE_ERR")
    tasks = bungeni.XmldbTasks()
    tasks.switchto_deploy_mode()
    start_exist("IGNORE_ERR")
Ejemplo n.º 4
0
def install_config_editor():
    """
    Install Bungeni ConfigEditor on eXist-db
    """
    tasks = bungeni.XmldbTasks()
    tasks.download_ce()
    tasks.ant_prop_config()
    tasks.ant_ce_setup_config()
    tasks.ant_ce_install()
Ejemplo n.º 5
0
def exist_load_demodata():
    """
    Loads demodata from the eXist repository
    """
    start_exist("IGNORE_ERROR")
    tasks = bungeni.XmldbTasks()
    tasks.setup_exist_demo_data()
    tasks.ant_demo_setup_config()
    tasks.ant_demo_install()
Ejemplo n.º 6
0
def exist_fw_install():
    """
    Installs Bungeni eXist framework, WARNING: Will overwrite any existing installation
    """
    start_exist("IGNORE_ERROR")
    tasks = bungeni.XmldbTasks()
    tasks.download_fw()
    tasks.ant_prop_config()
    tasks.ant_fw_setup_config()
    tasks.ant_fw_install()
Ejemplo n.º 7
0
def exist_reset():
    """
    Reset data in eXist repository
    """
    start_exist("IGNORE_ERROR")
    import time
    time.sleep(5)
    tasks = bungeni.XmldbTasks()
    tasks.ant_prop_config()
    tasks.ant_demo_reset_config()
    tasks.ant_demo_reset()
Ejemplo n.º 8
0
def exist_install():
    """
   Installs eXist, WARNING: Will overwrite any existing installation
   """
    stop_exist("IGNORE_ERROR")
    tasks = bungeni.XmldbTasks()
    tasks.setup_exist()
    # install in deployment mode by Default
    # you will need to explicitly switch to Development mode to access
    # XML UI
    tasks.switchto_deploy_mode()
Ejemplo n.º 9
0
def exist_fw_install():
    """
    Installs Bungeni eXist framework, WARNING: Will overwrite any existing installation
    """
    start_exist("IGNORE_ERROR")
    import time
    time.sleep(5)
    tasks = bungeni.XmldbTasks()
    tasks.download_fw()
    tasks.ant_prop_config()
    tasks.ant_fw_setup_config()
    tasks.ant_indexes_install()
    tasks.ant_fw_install()
    gluetasks = bungeni.GlueScriptTasks()
    gluetasks.setup_i18n_catalogues()
Ejemplo n.º 10
0
def ant_run(buildfile="build.xml"):
    """
    Run the Ant Script provided as the parameter
    """
    tasks = bungeni.XmldbTasks()
    tasks.ant_run(buildfile)
Ejemplo n.º 11
0
def ant_version():
    """
    Get the Ant version used by eXist
    """
    tasks = bungeni.XmldbTasks()
    tasks.ant_version()
Ejemplo n.º 12
0
def ant_run(buildfile="build.xml"):
    tasks = bungeni.XmldbTasks()
    tasks.ant_run(buildfile)
Ejemplo n.º 13
0
def ant_version():
    tasks = bungeni.XmldbTasks()
    tasks.ant_version()