From: <tu...@us...> - 2003-03-27 23:18:53
|
Update of /cvsroot/hibernate/Hibernate2 In directory sc8-pr-cvs1:/tmp/cvs-serv32286 Modified Files: build.xml Log Message: Added new doco generation stuff including wiki, see refdoc and wikidoc Index: build.xml =================================================================== RCS file: /cvsroot/hibernate/Hibernate2/build.xml,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** build.xml 12 Mar 2003 12:28:57 -0000 1.11 --- build.xml 27 Mar 2003 23:18:48 -0000 1.12 *************** *** 1,3 **** ! <!-- Hibernate ANT build script. --- 1,3 ---- ! <!-- Hibernate ANT build script. *************** *** 27,32 **** <property name="doc.dir" value="doc"/> <property name="doc.api.dir" value="${doc.dir}/api"/> ! <property name="dist.api.dir" value="${dist.dir}/doc/api"/> ! <property name="dist.doc.dir" value="${dist.dir}/doc"/> <property name="dist.src.dir" value="${dist.dir}/src"/> <property name="dist.lib.dir" value="${dist.dir}/lib"/> --- 27,36 ---- <property name="doc.dir" value="doc"/> <property name="doc.api.dir" value="${doc.dir}/api"/> ! <property name="doc.ref.dir" value="${doc.dir}/reference"/> ! ! <property name="dist.doc.dir" value="${dist.dir}/doc"/> ! <property name="dist.api.dir" value="${dist.dir}/doc/hib_docs/api"/> ! <property name="dist.ref.dir" value="${dist.dir}/doc/hib_docs/reference"/> ! <property name="dist.src.dir" value="${dist.dir}/src"/> <property name="dist.lib.dir" value="${dist.dir}/lib"/> *************** *** 59,71 **** </patternset> ! <patternset id="doc.files"> <include name="**/*.css"/> <include name="**/*.jpg"/> <include name="**/*.gif"/> ! <include name="**/*.html"/> ! <include name="**/*.pdf"/> ! <include name="**/*.eps"/> </patternset> ! <patternset id="source.files"> <include name="**/*.java"/> --- 63,73 ---- </patternset> ! <patternset id="refdoc.files"> <include name="**/*.css"/> <include name="**/*.jpg"/> <include name="**/*.gif"/> ! <include name="**/*.png"/> </patternset> ! <patternset id="source.files"> <include name="**/*.java"/> *************** *** 151,155 **** </fileset> </jar> ! </target> <target name="javadoc" description="Compile the Javadoc API documentation to dist dir"> --- 153,159 ---- </fileset> </jar> ! </target> ! ! <!-- DOCUMENTATION --> <target name="javadoc" description="Compile the Javadoc API documentation to dist dir"> *************** *** 158,163 **** sourcepath="${src.dir}" packagenames="net.sf.hibernate,net.sf.hibernate.expression,net.sf.hibernate.id,net.sf.hibernate.connection,net.sf.hibernate.transaction,net.sf.hibernate.type,net.sf.hibernate.dialect,net.sf.hibernate.odmg,net.sf.hibernate.cfg,net.sf.hibernate.cache,net.sf.hibernate.jmx,net.sf.hibernate.loader,net.sf.hibernate.persister,net.sf.hibernate.engine,net.sf.hibernate.metadata,net.sf.hibernate.mapping" ! classpathref="lib.class.path" ! destdir="${dist.api.dir}" use="true" protected="true" --- 162,167 ---- sourcepath="${src.dir}" packagenames="net.sf.hibernate,net.sf.hibernate.expression,net.sf.hibernate.id,net.sf.hibernate.connection,net.sf.hibernate.transaction,net.sf.hibernate.type,net.sf.hibernate.dialect,net.sf.hibernate.odmg,net.sf.hibernate.cfg,net.sf.hibernate.cache,net.sf.hibernate.jmx,net.sf.hibernate.loader,net.sf.hibernate.persister,net.sf.hibernate.engine,net.sf.hibernate.metadata,net.sf.hibernate.mapping" ! classpathref="lib.class.path" ! destdir="${dist.api.dir}" use="true" protected="true" *************** *** 176,223 **** </target> ! <target name="docbook" description="Compile docbook documentation to html"> ! <java classname="com.icl.saxon.StyleSheet" fork="true" dir="${doc.dir}/reference/src/"> ! <arg value="-o"/> ! <arg value="../html_single/index.html"/> ! <arg value="index.xml"/> ! <arg value="../xsl/html/docbook.xsl"/> ! </java> ! <java classname="com.icl.saxon.StyleSheet" fork="true" dir="${doc.dir}/reference/src/"> ! <arg value="index.xml"/> ! <arg value="../xsl/html/chunk.xsl"/> ! </java> ! </target> - <target name="aft" description="Compile aft documentation to html and copy to dist dir"> - <mkdir dir="${dist.doc.dir}"/> - <apply executable="aft" dir="${doc.dir}" vmlauncher="false"> <!-- relative="true" --> - <fileset dir="${doc.dir}"> - <include name="*.aft"/> - </fileset> - </apply> - <copy todir="${dist.doc.dir}"> - <fileset dir="${doc.dir}"> - <patternset refid="doc.files"/> - <exclude name="api/**/*"/> - <exclude name="reference/**/*"/> - </fileset> - </copy> - </target> - - <target name="copydoc"> - <mkdir dir="${dist.doc.dir}"/> - <copy todir="${dist.doc.dir}"> - <fileset dir="${doc.dir}"> - <patternset refid="doc.files"/> - <exclude name="*"/> - <exclude name="api/**/*"/> - <exclude name="reference/src/**/*"/> - <exclude name="reference/images/*.pdf"/> - </fileset> - </copy> - </target> - <target name="extras" description="Copies miscellaneous files to root dir"> <copy todir="${dist.dir}/bin"> --- 180,252 ---- </target> ! <target name="docpdf" description="Compile reference documentation to pdf"> ! <java classname="com.icl.saxon.StyleSheet" fork="true" dir="${basedir}/${doc.ref.dir}"> ! <classpath> ! <fileset dir="${doc.ref.dir}/lib"> ! <include name="**/*.jar"/> ! </fileset> ! </classpath> ! <arg value="-o"/> ! <arg value="${basedir}/${dist.ref.dir}/pdf/docbook_fop.tmp"/> ! <arg value="src/index.xml"/> ! <arg value="styles/fopdf.xsl"/> ! </java> ! <java classname="org.apache.fop.apps.Fop" fork="true" dir="${basedir}/${doc.ref.dir}"> ! <classpath> ! <fileset dir="${doc.ref.dir}/lib"> ! <include name="**/*.jar"/> ! </fileset> ! </classpath> ! <arg value="${basedir}/${dist.ref.dir}/pdf/docbook_fop.tmp"/> ! <arg value="${basedir}/${dist.ref.dir}/pdf/hibernate_reference.pdf"/> ! </java> ! <delete file="${basedir}/${dist.ref.dir}/pdf/docbook_fop.tmp"/> ! </target> + <target name="dochtml" description="Compile reference documentation to chunked html"> + <mkdir dir="${basedir}/${dist.ref.dir}/html/"/> + <java classname="com.icl.saxon.StyleSheet" fork="true" dir="${basedir}/${dist.ref.dir}/html/"> + <classpath> + <fileset dir="${doc.ref.dir}/lib"> + <include name="**/*.jar"/> + </fileset> + </classpath> + <arg value="${basedir}/${doc.ref.dir}/src/index.xml"/> + <arg value="${basedir}/${doc.ref.dir}/styles/html_chunk.xsl"/> + </java> + </target> + + <target name="dochtmlsingle" description="Compile reference documentation to single html"> + <java classname="com.icl.saxon.StyleSheet" fork="true" dir="${basedir}/${doc.ref.dir}"> + <classpath> + <fileset dir="${basedir}/${doc.dir}/reference/lib"> + <include name="**/*.jar"/> + </fileset> + </classpath> + <arg value="-o"/> + <arg value="${basedir}/${dist.ref.dir}/html_single/index.html"/> + <arg value="${basedir}/${doc.ref.dir}/src/index.xml"/> + <arg value="${basedir}/${doc.ref.dir}/styles/html.xsl"/> + </java> + </target> + + <target name="refdoc" depends="docpdf,dochtml,dochtmlsingle" description="Generate and copy reference documentation"> + <copy todir="${basedir}/${dist.ref.dir}"> + <fileset dir="${basedir}/${doc.ref.dir}"> + <patternset refid="refdoc.files"/> + </fileset> + </copy> + </target> + + <target name="wikidoc" description="Fetch current Wiki snapshot and untar it"> + <mkdir dir="${basedir}/${dist.dir}"/> + <get src="http://hibernate.bluemars.net/wiki_snapshot.tar.gz" dest="${basedir}/${dist.dir}/wiki_snapshot.tar.gz" verbose="true" /> + <gunzip src="${basedir}/${dist.dir}/wiki_snapshot.tar.gz"/> + <untar src="${basedir}/${dist.dir}/wiki_snapshot.tar" dest="${basedir}/${dist.dir}"/> + <delete file="${basedir}/${dist.dir}/wiki_snapshot.tar.gz"/> + <delete file="${basedir}/${dist.dir}/wiki_snapshot.tar"/> + </target> <target name="extras" description="Copies miscellaneous files to root dir"> <copy todir="${dist.dir}/bin"> *************** *** 238,242 **** </target> ! <target name="dist" depends="jar,javadoc,copysource,copylib,copydoc,extras" description="Build everything"> <zip zipfile = "${dist.dir}.zip"> <zipfileset prefix="${name}-${version}" dir="${dist.dir}"/> --- 267,271 ---- </target> ! <target name="dist" depends="jar,wikidoc,javadoc,refdoc,copysource,copylib,extras" description="Build everything"> <zip zipfile = "${dist.dir}.zip"> <zipfileset prefix="${name}-${version}" dir="${dist.dir}"/> *************** *** 295,297 **** </target> ! </project> \ No newline at end of file --- 324,326 ---- </target> ! </project> |