vgritsenko 01/07/28 12:15:10
Modified: . build.xml
Log:
- fix sitewebapp
- add javadocs to sitewebapp
Revision Changes Path
1.40 +54 -1 xml-cocoon2/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/xml-cocoon2/build.xml,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -r1.39 -r1.40
--- build.xml 2001/07/23 08:56:54 1.39
+++ build.xml 2001/07/28 19:15:10 1.40
@@ -469,6 +469,59 @@
</copy>
</target>
+ <!-- =================================================================== -->
+ <!-- Copies the site webapp directories -->
+ <!-- =================================================================== -->
+ <target name="copy-sitewebapp" depends="javadocs, prepare">
+ <mkdir dir="${build.site.war}"/>
+
+ <copy todir="${build.site.war}" filtering="on">
+ <fileset dir="${webapp.site.dir}">
+ <include name="sitemap.xmap"/>
+ <include name="cocoon.xconf"/>
+ <include name="WEB-INF/web.xml"/>
+ </fileset>
+ </copy>
+
+ <copy todir="${build.site.war}/style" filtering="on">
+ <fileset dir="${webapp.dir}/stylesheets/documents"/>
+ </copy>
+
+ <copy todir="${build.site.war}/content/xdocs" filtering="off">
+ <fileset dir="${docs.dir}">
+ <include name="*.xml"/>
+ <include name="**/*.dtd"/>
+ <include name="**/*.ent"/>
+ <exclude name="*-book.xml"/>
+ </fileset>
+ </copy>
+
+ <copy file="changes.xml" tofile="${build.site.war}/content/xdocs/changes.xml"
filtering="on"/>
+ <copy file="todo.xml" tofile="${build.site.war}/content/xdocs/todo.xml"
filtering="on"/>
+
+ <replace file="${build.site.war}/content/xdocs/changes.xml"
token="./xdocs/dtd/" value="dtd/"/>
+ <replace file="${build.site.war}/content/xdocs/todo.xml"
token="./xdocs/dtd/" value="dtd/"/>
+
+ <copy todir="${build.site.war}/resources/images" filtering="off">
+ <fileset dir="${images.dir}">
+ <include name="*.gif"/>
+ <include name="*.jpg"/>
+ <include name="*.png"/>
+ </fileset>
+ </copy>
+
+ <copy todir="${build.site.war}/content" filtering="off">
+ <fileset dir="${docs.dir}">
+ <include name="site-book.xml"/>
+ </fileset>
+ </copy>
+
+ <mkdir dir="${build.site.war}/content/javadocs"/>
+ <copy todir="${build.site.war}/content/javadocs" filtering="off">
+ <fileset dir="${build.javadocs}">
+ </fileset>
+ </copy>
+ </target>
<!-- =================================================================== -->
<!-- Prepares the webapp sitemap if php is available -->
@@ -540,7 +593,7 @@
<!-- =================================================================== -->
<!-- Prepares the sitewebapp directories -->
<!-- =================================================================== -->
- <target name="prepare-sitewebapp" depends="copy-webapp">
+ <target name="prepare-sitewebapp" depends="copy-sitewebapp">
<!-- Simply do nothing, just invoke all dependencies -->
</target>
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]