diff --git a/ccm-core/src/com/arsdigita/packaging/Load.java b/ccm-core/src/com/arsdigita/packaging/Load.java index b167a5b8f..33369adfc 100755 --- a/ccm-core/src/com/arsdigita/packaging/Load.java +++ b/ccm-core/src/com/arsdigita/packaging/Load.java @@ -81,15 +81,38 @@ import org.apache.log4j.Logger; * configuration registry * Options: [-usage] Display a usage message for load command * [-help|--help] Display a help message for load command + * [--packagekeys-file FILE] Reads list of packages to load from + * File (in addition to command line) + * [--schema] Loads just the schema for a package into the + * database, no data, no initializer + * [--data] Loads just data into the database, schema must exist + * already, initializers are not recorded + * [--init] Records the initializer and classes into database + * [--config] Creates entries in the registry (configuration repo) + * if set prevents any of the three data load steps + * described before to be executed! + * [--interactive] Ask interactively for config key values + * [--parameters KEY=VALUE ...] configuration parameter from + * command line. + * [--parameter-file FILE] Alternativly reads config parameters + * from FILE (multiple entries allowed). * [--recursive] Recursively load required packages - * [--data] - * [--config] - * [--interactive] - * [--schema] - * [--parameters KEY=VALUE ...] - * [--init] - * [--parameter-file FILE] * + * If neither of the options --config --schema --data --init is set, all four + * steps are performed (i.e. the usual loading step), e.g. + * ccm load [ListOfPackages]. Regarding configuration, if no + * additional configuration options are given (either on command line or a + * configuration file) the packages are just added to registry.properties + * (list of installed packages) and using eventually build in defaults (otherwise + * fails) during runtime. + * If one of the four parameters is set, none of the other tasks is executed + * implicitely but each desired step of the four must be explicitely specified! + * + * If new package(s) should just be loaded into the datbase without touching the + * configuration registry, --schema --data --init must be performed. + * ccm load --schema --data --init [newPackage(s)] + * May be necessary for an update which contains new modules already configured + * in the registry but missing in the (old) database. * * @author Rafael H. Schloming <rhs@mit.edu> * @version $Id: Load.java 736 2005-09-01 10:46:05Z sskracic $ diff --git a/tools-ng/ecdc/scriptlib/build-ccm.xml b/tools-ng/ecdc/scriptlib/build-ccm.xml index 46e3b75dd..aca0a0305 100644 --- a/tools-ng/ecdc/scriptlib/build-ccm.xml +++ b/tools-ng/ecdc/scriptlib/build-ccm.xml @@ -12,12 +12,13 @@ - Loading bundle ${this.bundle.folder} into ${ccm.home} + Loading bundle from ${this.bundle.folder} into ${ccm.home} + @@ -28,39 +29,32 @@ + - load ${applications} --init using ${this.bundle.folder}/cfg/integration.properties + Registers configuration from ${this.bundle.folder} for ${applications} into registry + - load ${applications} --init using ${this.bundle.folder}/cfg/integration.properties + Registers configuration from ${this.bundle.folder} for ${applications} into registry, aksing interactivly for values. + - - load data only executing - load --data ${applications} - - - - - - - load ${applications} + load ${applications} without further configuration specifications but using build in defaults. @@ -71,15 +65,39 @@ value="${java.protocol.handler.pkgs}" /> --> + + + + + + load schema only for ${applications} + load --data ${applications} + + + + + + + + + load data only for ${applications} + load --data ${applications} + + + + - load --init ${applications} + load initializers for ${applications} (--init ) - + + @@ -119,6 +137,21 @@ + + + + + + + + + + + + + diff --git a/tools-ng/ecdc/scriptlib/build-runtime.xml b/tools-ng/ecdc/scriptlib/build-runtime.xml index 07aa6a278..879da02ae 100644 --- a/tools-ng/ecdc/scriptlib/build-runtime.xml +++ b/tools-ng/ecdc/scriptlib/build-runtime.xml @@ -32,11 +32,6 @@ - - - Uninstalling Liferay from ${app.server.webapp.dir} - - Installing Liferay into ${app.server.webapp.dir} @@ -53,6 +48,11 @@ + + + Uninstalling Liferay from ${app.server.webapp.dir} + +