Enhanced build-template.xsl to handle special dirs template/ROOT and template/ERROR for specific jsp templates respectivly.

git-svn-id: https://svn.libreccm.org/ccm/trunk@2027 8810af33-2d31-482b-a856-94f89814c4df
master
pb 2013-01-06 19:36:02 +00:00
parent 105bebbf0b
commit bcbc401e3b
2 changed files with 36 additions and 3 deletions

View File

@ -1337,15 +1337,39 @@
</fileset> </fileset>
</copy> </copy>
<!-- 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" > <copy todir="${{this.deploy.dir}}" overwrite="yes" >
<fileset dir="${{resolved.bundle.source.dir}}" > <fileset dir="${{resolved.bundle.source.dir}}" >
<include name="templates/" /> <include name="templates/" />
<include name="themes/" /> <include name="themes/" />
<exclude name="**placeholder.info**" /> <exclude name="themes/placeholder.info" />
<exclude name="**README**" /> <exclude name="templates/placeholder.info" />
<exclude name="templates/ROOT/" />
<exclude name="templates/ERROR/" />
</fileset> </fileset>
</copy> </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 <!-- Autogenerate from project.xml a file containing a space delimited
list of package keys included in this build. Used during list of package keys included in this build. Used during
initialization of a *.war file distribution as simplification and initialization of a *.war file distribution as simplification and

View File

@ -1,5 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?> <?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: <!-- Already definded:
ccm.project.dir: base dir of the development project ccm.project.dir: base dir of the development project
app.server.bundles.zip name of the installation file app.server.bundles.zip name of the installation file