From 98141ba556b535b9128fbc011a17533eef1e006d Mon Sep 17 00:00:00 2001 From: pb Date: Fri, 12 Aug 2011 10:09:52 +0000 Subject: [PATCH] Weitere Modifikation des BUILD Systems: * das verwendete Bundle-Verzeichnis wird bei deploy nach WEB-INF/bin/bundle kopiert * load-bundle greift jetzt darauf zu, nicht mehr auf ccm.bundle.folder und ccm-*-aplaws/bundle * load tasks sind systematisiert: * load-bundle: verarbeitet db und config automatisch nach bundle files * load-bundle-interactive: verarbeitet db und config, fragt required parameter ab * load-bundle-config: verarbeitet nur config automatisch nach bundle files * load-bundle-config-interactive: verarbeitet nur config, fragt required parameter ab * load-bundle-data: verarbeitet nur db automatisch nach bundle files Das ist weiterer Schritt zu einem neuen Installationssystem. git-svn-id: https://svn.libreccm.org/ccm/trunk@1058 8810af33-2d31-482b-a856-94f89814c4df --- .../src/com/arsdigita/web/Application.java | 4 ++ .../develpb/cfg/integration.properties | 2 +- tools-ng/common/xsl/build-template.xsl | 64 ++++++++++++++--- tools-ng/ecdc/scriptlib/build-ccm.xml | 72 +++++++++++++------ tools-ng/ecdc/scriptlib/build-common.xml | 2 +- 5 files changed, 111 insertions(+), 33 deletions(-) diff --git a/ccm-core/src/com/arsdigita/web/Application.java b/ccm-core/src/com/arsdigita/web/Application.java index b685f262d..6a2aecd24 100755 --- a/ccm-core/src/com/arsdigita/web/Application.java +++ b/ccm-core/src/com/arsdigita/web/Application.java @@ -731,6 +731,7 @@ public class Application extends Resource { return URL.SERVLET_DIR + "/legacy-adapter"; } + @Override protected void beforeSave() { if (isPropertyModified(PRIMARY_URL) || isNew()) { BaseDispatcher.scheduleRefresh(); @@ -740,6 +741,7 @@ public class Application extends Resource { } // This should be done through PDL + @Override public void beforeDelete() { super.beforeDelete(); SiteNode node = getSiteNode(); @@ -748,6 +750,7 @@ public class Application extends Resource { } } + @Override public void afterDelete() { BaseDispatcher.scheduleRefresh(); } @@ -796,6 +799,7 @@ public class Application extends Resource { // if application name changes, change name of container group + @Override public void setTitle (String title) { super.setTitle(title); Group containerGroup = getGroup(); diff --git a/ccm-gen-aplaws/bundles/develpb/cfg/integration.properties b/ccm-gen-aplaws/bundles/develpb/cfg/integration.properties index dc8648b56..3b9e17cb0 100644 --- a/ccm-gen-aplaws/bundles/develpb/cfg/integration.properties +++ b/ccm-gen-aplaws/bundles/develpb/cfg/integration.properties @@ -150,7 +150,7 @@ waf.admin.password=123456 waf.admin.password.question=12345 waf.admin.password.answer=6 -waf.runtime.jdbc_url=jdbc\:postgresql\://localhost/ccm?user\=ccm&password\=ccm +waf.runtime.jdbc_url=jdbc\:postgresql\://localhost/ccm-pb?user\=ccm&password\=ccm waf.runtime.jdbc_pool_size=60 waf.web.server=localhost\:8080 diff --git a/tools-ng/common/xsl/build-template.xsl b/tools-ng/common/xsl/build-template.xsl index f2020bca5..a2bf9fc5c 100755 --- a/tools-ng/common/xsl/build-template.xsl +++ b/tools-ng/common/xsl/build-template.xsl @@ -176,6 +176,10 @@ + @@ -697,7 +701,7 @@ + transition and code clean-up phase only --> @@ -816,7 +820,9 @@ + @@ -880,7 +886,9 @@ + @@ -1207,8 +1215,11 @@ - - + + + + @@ -1256,12 +1267,41 @@ + + + + + + + + + + + + + + + + + + + + + + + depends="init,deploy-global,deploy-local,copy-webxml,copy-bundle"> Builds and deploys all applications, also deploys prebuilt applications and config files + Deploy completed! @@ -1397,7 +1437,7 @@ - + @@ -1422,7 +1462,7 @@ - + Creates a WAR file of the deployed application. @@ -1531,7 +1571,9 @@ + @@ -1863,6 +1905,8 @@ + @@ -1898,6 +1942,7 @@ + init @@ -2010,17 +2055,20 @@ + + - - > +--> + diff --git a/tools-ng/ecdc/scriptlib/build-ccm.xml b/tools-ng/ecdc/scriptlib/build-ccm.xml index 7b1aa579e..043533a7f 100644 --- a/tools-ng/ecdc/scriptlib/build-ccm.xml +++ b/tools-ng/ecdc/scriptlib/build-ccm.xml @@ -3,35 +3,66 @@ - Loading bundle ${ccm.bundle.folder} into ${ccm.home} + Loading bundle ${this.bundle.folder} into ${ccm.home} - + - + + + + + + Loading bundle ${this.bundle.folder} interactively into ${ccm.home} + + + + + - load ${applications} --init using ${ccm.bundle.folder}/cfg/integration.properties - + load ${applications} --init using ${this.bundle.folder}/cfg/integration.properties + - + + + load ${applications} --init using ${this.bundle.folder}/cfg/integration.properties + + + + + + + + load data only executing + load --data ${applications} + + + + + + load ${applications} - + + files which configure the specialized scripts. -->