export PRJ=monitor; ant -buildfile cocoontoforrest.xml \
-Dproject=$PRJ; cd $PRJ; ant docs;
# check result, fix any problems, commit
cvs add src/xdocs/book.xml src/xdocs/tabs.xml; cvs remove \
-f src/xdocs/menu.xml; cvs commit -m 'forrestize' build.xml \
src/xdocs
if anyone feels like finishing go ahead otherwise I will probably find time somewhere sometime :D
cheers,
- Leo
<project name="Excalibur Driver Build file" default="main">
<property file="cocoontoforrest.properties"/>
<target name="main" depends="section, absurl, booktomenu, tabs, buildfile">
<echo>
Updating ${dir} to forrest.
Some work may beneccessary...
please check.
</echo>
</target>
<target name="doregexpreplace">
<replaceregexp byline="${byline}">
<regexp pattern="${pattern}"/>
<substitution expression="${substitution}"/>
<fileset dir="${dir}">
<include name="**/*.xml"/>
</fileset>
</replaceregexp>
</target>
<target name="doreplace">
<replace dir="${dir}" summary="yes">
<include name="**/*.xml"/>
<replacetoken>${pattern}</replacetoken>
<replacevalue>${substitution}</replacevalue>
</replace>
</target>
<target name="section">
<antcall target="doregexpreplace">
<param name="byline" value="${byline}"/>
<param name="pattern" value="${section.pattern}"/>
<param name="substitution" value="${section.substitution}"/>
<param name="dir" value="${dir}"/>
</antcall>
<antcall target="doregexpreplace">
<param name="byline" value="${byline}"/>
<param name="pattern" value="${sectionend.pattern}"/>
<param name="substitution" value="${sectionend.substitution}"/>
<param name="dir" value="${dir}"/>
</antcall>
</target>
<target name="absurl">
<antcall target="doregexpreplace">
<param name="byline" value="${byline}"/>
<param name="pattern" value="${absurl.pattern}"/>
<param name="substitution" value="${absurl.substitution}"/>
<param name="dir" value="${dir}"/>
</antcall>
</target>
<target name="booktomenu">
<antcall target="doregexpreplace">
<param name="byline" value="${byline}"/>
<param name="pattern" value="${booktomenu.pattern}"/>
<param name="substitution" value="${booktomenu.substitution}"/>
<param name="dir" value="${dir}"/>
</antcall>
<antcall target="doregexpreplace">
<param name="byline" value="${byline}"/>
<param name="pattern" value="${projecttobook.pattern}"/>
<param name="substitution" value="${projecttobook.substitution}"/>
<param name="dir" value="${dir}"/>
</antcall>
<antcall target="doregexpreplace">
<param name="byline" value="${byline}"/>
<param name="pattern" value="${projecttobookend.pattern}"/>
<param name="substitution" value="${projecttobookend.substitution}"/>
<param name="dir" value="${dir}"/>
</antcall>
<replaceregexp byline="${byline}">
<regexp pattern="${booktitle.pattern}"/>
<substitution expression="${booktitle.substitution}"/>
<fileset dir="${dir}">
<include name="**/menu.xml"/>
</fileset>
</replaceregexp>
<replaceregexp byline="${byline}">
<regexp pattern="${bookbody.pattern}"/>
<substitution expression="${bookbody.substitution}"/>
<fileset dir="${dir}">
<include name="**/menu.xml"/>
</fileset>
</replaceregexp>
<replaceregexp byline="${byline}">
<regexp pattern="${bookbodyend.pattern}"/>
<substitution expression="${bookbodyend.substitution}"/>
<fileset dir="${dir}">
<include name="**/menu.xml"/>
</fileset>
</replaceregexp>
<replaceregexp byline="${byline}">
<regexp pattern="${booklabel.pattern}"/>
<substitution expression="${booklabel.substitution}"/>
<fileset dir="${dir}">
<include name="**/menu.xml"/>
</fileset>
</replaceregexp>
<available file="${dir}/menu.xml" property="do.move.book"/>
<antcall target="domovebook" />
</target>
<target name="domovebook" if="do.move.book">
<move file="${dir}/menu.xml" tofile="${dir}/book.xml"/>
</target>
<target name="tabs">
<copy file="tabs.xml" tofile="${dir}/tabs.xml"/>
<replace file="${dir}/tabs.xml" summary="yes" token="@project@" value="${project}"/>
</target>
<target name="buildfile">
<replace file="${dir}/../../build.xml" summary="yes">
<replacetoken>antfile="${basedir}/../cocoonbuild.xml"</replacetoken>
<replacevalue>antfile="${basedir}/../forrestbuild.xml"</replacevalue>
</replace>
</target>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE tabs PUBLIC "-//APACHE//DTD Cocoon Documentation Tab V1.0//EN" "tab-cocoon-v10.dtd">
<tabs software="Excalibur @project@"
title="Excalibur @project@"
copyright="Foo"
xmlns:xlink="http://www.w3.org/1999/xlink">
<tab label="Avalon Home" href="http://avalon.apache.org/"/>
<tab label="Framework" href="http://avalon.apache.org/framework/"/>
<tab label="Components" href="http://avalon.apache.org/components/"/>
<tab label="Phoenix" href="http://avalon.apache.org/phoenix/"/>
<tab label="SECA" href="http://avalon.apache.org/seca/"/>
<tab label="Apps" href="http://avalon.apache.org/apps/"/>
</tabs>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
