mturk 2004/11/18 10:39:00 Modified: jk build.xml Log: Remove all docs related targets. xdocs has it's own build.xml. Revision Changes Path 1.79 +0 -187 jakarta-tomcat-connectors/jk/build.xml Index: build.xml =================================================================== RCS file: /home/cvs/jakarta-tomcat-connectors/jk/build.xml,v retrieving revision 1.78 retrieving revision 1.79 diff -u -r1.78 -r1.79 --- build.xml 12 Oct 2004 06:57:33 -0000 1.78 +++ build.xml 18 Nov 2004 18:39:00 -0000 1.79 @@ -424,9 +424,6 @@ <delete dir="${jk.build}/lib"/> <delete dir="${jk.build}/javadoc"/> <delete dir="${build.docs}"/> - <delete file="${source.docs}/style.css"/> - <delete file="${source.docs}/style.xsl"/> - <delete file="${source.docs}/menu.idx"/> </target> <!-- It's better to call it directly with individual tags --> @@ -440,189 +437,5 @@ <ant dir="native2" antfile="build.xml" target="clean" /> </target> - <!-- Check if we found Xalan in our classpath. We require Xalan because it has - some nifty functions that we use throughout the XSLT (and also because - we want people to eat our own food, right?) - --> - <target - name="docs.check" - depends="detect" - description="Fail if we don't find Xalan" - unless="avail.xalan"> - - <!-- Just jump out --> - <fail message="Cannot find the Apache Xalan XSLT processor"/> - </target> - - <!-- builds the css and xls file from the css.in and xls.in --> - <target name="docs.init"> - <property file="${source.docs}/build.properties"/> - - <property name="body-bg" value="#ffffff"/> - <property name="body-fg" value="#000000"/> - <property name="body-link" value="#525D76"/> - <property name="banner-bg" value="#525D76"/> - <property name="banner-fg" value="#ffffff"/> - <property name="sub-banner-bg" value="#828DA6"/> - <property name="sub-banner-fg" value="#ffffff"/> - <property name="table-th-bg" value="#039acc"/> - <property name="table-td-bg" value="#a0ddf0"/> - <property name="source-color" value="#023264"/> - - <antcall target="docs.color"> - <param name="sourcefile" value="${source.docs}/style.css.in"/> - <param name="destfile" value="${source.docs}/style.css"/> - </antcall> - <antcall target="docs.color"> - <param name="sourcefile" value="${source.docs}/style.xsl.in"/> - <param name="destfile" value="${source.docs}/style.xsl"/> - </antcall> - - <condition property="jkmenu" value="&JK;"> - <not> - <isset property="nojkdoc"/> - </not> - </condition> - - <condition property="jk2menu" value="&JK2;"> - <not> - <isset property="nojk2doc"/> - </not> - </condition> - - <copy file="${source.docs}/menu.idx.in" tofile="${source.docs}/menu.idx"/> - <replace file="${source.docs}/menu.idx" token="@JK@" value="${jkmenu}"/> - <replace file="${source.docs}/menu.idx" token="@JK2@" value="${jk2menu}"/> - - </target> - - <target name="docs.color"> - <copy file="${sourcefile}" tofile="${destfile}"/> - <replace file="${destfile}" token="@body-bg@" value="${body-bg}"/> - <replace file="${destfile}" token="@body-fg@" value="${body-fg}"/> - <replace file="${destfile}" token="@body-link@" value="${body-link}"/> - <replace file="${destfile}" token="@banner-bg@" value="${banner-bg}"/> - <replace file="${destfile}" token="@banner-fg@" value="${banner-fg}"/> - <replace file="${destfile}" token="@sub-banner-bg@" value="${sub-banner-bg}"/> - <replace file="${destfile}" token="@sub-banner-fg@" value="${sub-banner-fg}"/> - <replace file="${destfile}" token="@table-th-bg@" value="${table-th-bg}"/> - <replace file="${destfile}" token="@table-td-bg@" value="${table-td-bg}"/> - <replace file="${destfile}" token="@source-color@" value="${source-color}"/> - <replace file="${destfile}" token="@gen-dev-doc@" value="${gen.dev.doc}"/> - </target> - - <!-- - Generate documentation from the XML sources. - --> - <target name="docs" - depends="jkdocs,jkprinter,jk2printer" /> - <target - name="jkdocs" unless="docs-uptodate" - depends="docs.check,docs.init" - description="Create Documentation"> - - <!-- Create the directory where we're going to store the docs --> - <mkdir dir="${build.docs}"/> - <mkdir dir="${build.docs}/printer"/> - <mkdir dir="${build.docs}/common/printer"/> - - <!-- Add some style to our otherwise utterly ugly XML files --> - <style - basedir="${source.docs}" - destdir="${build.docs}" - style="${source.docs}/style.xsl" > - - <include name="*/**.xml" /> - <exclude name="*.xml" /> - <exclude name="jk/**" if="nojkdoc"/> - <exclude name="jk2/**" if="nojk2doc"/> - <param name="styles" expression="../"/> - </style> - - <style - basedir="${source.docs}" - destdir="${build.docs}" - style="${source.docs}/style.xsl" > - <include name="**.xml" /> - <param name="images" expression="images"/> - <param name="styles" expression="."/> - <param name="homedoc" expression=""/> - </style> - - <!-- Create the printer friendly pages --> - <style - basedir="${source.docs}" - destdir="${build.docs}/printer" - style="${source.docs}/style.xsl" > - - <include name="**.xml" /> - <param name="images" expression="images"/> - <param name="styles" expression="."/> - <param name="homedoc" expression=""/> - <param name="project-menu" expression="nomenu"/> - </style> - <style - basedir="${source.docs}/common" - destdir="${build.docs}/common/printer" - style="${source.docs}/style.xsl" > - - <include name="**.xml" /> - <param name="styles" expression="../"/> - <param name="project-menu" expression="nomenu"/> - </style> - - <!-- Copy all relevant (non processed) files from the sources --> - <copy - todir="${build.docs}" > - <fileset dir="${source.docs}"> - <exclude name="jk/**" if="nojkdoc"/> - <exclude name="jk2/**" if="nojk2doc"/> - <exclude name="**/*.xml"/> - <exclude name="**/*.css.in"/> - <exclude name="**/*.xsl.in"/> - <exclude name="**/*.samples"/> - <exclude name="**/*.xsl"/> - <exclude name="**/*.idx"/> - <exclude name="**/*.idx.in"/> - <exclude name="**/images/originals/**"/> - </fileset> - </copy> - - </target> - - <!-- build the printer friendly pages for jk --> - <target - name="jkprinter" - unless="docs-uptodate" - depends="docs.check,docs.init" - description="Create Printer Friendly Documentation for jk"> - <mkdir dir="${build.docs}/jk/printer"/> - <style - basedir="${source.docs}/jk" - destdir="${build.docs}/jk/printer" - style="${source.docs}/style.xsl" > - - <include name="**.xml" /> - <param name="styles" expression="../"/> - <param name="project-menu" expression="nomenu"/> - </style> - </target> - <!-- build the printer friendly pages for jk2 --> - <target - name="jk2printer" - unless="docs-uptodate" - depends="docs.check,docs.init" - description="Create Printer Friendly Documentation for jk"> - <mkdir dir="${build.docs}/jk2/printer"/> - <style - basedir="${source.docs}/jk2" - destdir="${build.docs}/jk2/printer" - style="${source.docs}/style.xsl" > - - <include name="**.xml" /> - <param name="styles" expression="../"/> - <param name="project-menu" expression="nomenu"/> - </style> - </target> </project>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]