Cleaned up doc building so that images and css are copied to the target folder so that the docs can be built and previewed without needing to build the entire package.

git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@531079 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Marc Prud'hommeaux 2007-04-21 18:43:55 +00:00
parent 9b43b9d308
commit 5d8c645682
1 changed files with 24 additions and 4 deletions

View File

@ -161,10 +161,30 @@
<unzip src="${local.repository}/docbook/docbook-xsl/${docbook.version}/docbook-xsl-${docbook.version}.zip" dest="${project.basedir}/target/stylesheets/" overwrite="false"/>
<property name="docsrcdir"
value="${project.basedir}/src/doc/manual"/>
<property name="docdir"
value="${project.basedir}/target/manual"/>
<mkdir dir="${docdir}/img"/>
<copy todir="${docdir}/img">
<fileset dir="${docsrcdir}/img">
<include name="*.*"/>
</fileset>
</copy>
<mkdir dir="${docdir}/css"/>
<copy todir="${docdir}/css">
<fileset dir="${docsrcdir}/css">
<include name="*.*"/>
</fileset>
</copy>
<style includes="**/manual.xml"
force="true"
basedir="${project.basedir}/src/doc/manual"
destdir="${project.basedir}/target/manual"
basedir="${docsrcdir}"
destdir="${docdir}"
style="manual-xhtml.xsl"
classpathref="maven.runtime.classpath">
<factory name="org.apache.xalan.processor.TransformerFactoryImpl">
@ -175,8 +195,8 @@
<!--
<style includes="**/manual.xml"
force="true"
basedir="${project.basedir}/src/doc/manual"
destdir="${project.basedir}/target/manual"
basedir="${docsrcdir}"
destdir="${docdir}"
style="manual-xhtml-chunk.xsl"
classpathref="maven.runtime.classpath">
<factory name="org.apache.xalan.processor.TransformerFactoryImpl">