|
From: <pb...@fe...> - 2013-02-02 18:31:25
|
Author: pboy
Date: 2013-02-02 18:31:17 +0000 (Sat, 02 Feb 2013)
New Revision: 2469
Modified:
trunk/tools-ng/common/xsl/build-template.xsl
trunk/tools-ng/ecdc/scriptlib/build-ccm.xml
Log:
Enhanced build-template.xsl to handle special dirs template/ROOT and template/ERROR for specific jsp templates respectivly.
Modified: trunk/tools-ng/common/xsl/build-template.xsl
===================================================================
--- trunk/tools-ng/common/xsl/build-template.xsl 2013-02-02 18:23:47 UTC (rev 2468)
+++ trunk/tools-ng/common/xsl/build-template.xsl 2013-02-02 18:31:17 UTC (rev 2469)
@@ -1337,15 +1337,39 @@
</fileset>
</copy>
- <copy todir="${{this.deploy.dir}}" overwrite="yes">
+ <!-- Copy subdirectories templates and themes to web, but exclude
+ special directories ROOT and ERROR, which must be processed
+ separately. -->
+ <copy todir="${{this.deploy.dir}}" overwrite="yes" >
<fileset dir="${{resolved.bundle.source.dir}}" >
<include name="templates/" />
<include name="themes/" />
- <exclude name="**placeholder.info**" />
- <exclude name="**README**" />
+ <exclude name="themes/placeholder.info" />
+ <exclude name="templates/placeholder.info" />
+ <exclude name="templates/ROOT/" />
+ <exclude name="templates/ERROR/" />
</fileset>
</copy>
+
+ <!-- Process special directory templates/ERROR
+ copy files to [docroot]/error -->
+ <copy todir="${{this.deploy.dir}}/error" overwrite="yes" failonerror="false" >
+ <fileset dir="${{resolved.bundle.source.dir}}/templates/ERROR/" >
+ <include name="*" />
+ <exclude name="placeholder.info" />
+ </fileset>
+ </copy>
+
+ <!-- Process special directory templates/ROOT
+ copy files to document root (context root). -->
+ <copy todir="${{this.deploy.dir}}" overwrite="yes" failonerror="false" >
+ <fileset dir="${{resolved.bundle.source.dir}}/templates/ROOT/" >
+ <include name="*" />
+ <exclude name="placeholder.info" />
+ </fileset>
+ </copy>
+
<!-- Autogenerate from project.xml a file containing a space delimited
list of package keys included in this build. Used during
initialization of a *.war file distribution as simplification and
Modified: trunk/tools-ng/ecdc/scriptlib/build-ccm.xml
===================================================================
--- trunk/tools-ng/ecdc/scriptlib/build-ccm.xml 2013-02-02 18:23:47 UTC (rev 2468)
+++ trunk/tools-ng/ecdc/scriptlib/build-ccm.xml 2013-02-02 18:31:17 UTC (rev 2469)
@@ -1,5 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!-- Purpose:
+ ANT script to perform the various administration and maintenance tasks,
+ i.e.:
+ - Various LOAD steps to load the database
+ most prominent: load-bundle
+ - UPGRADE tasks to run SQL upgrade scripts
+ - RUN-CCM task to run various CLI utility classes
+-->
+
<!-- Already definded:
ccm.project.dir: base dir of the development project
app.server.bundles.zip name of the installation file
|