[opencms-dev] Create your OpenCMS Javadoc with this build.xml for Ant !

Alex ! kingofkingston at hotmail.com
Wed Feb 18 21:15:03 CET 2004


Just change the paths etc to suit your system:

<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="javadoc">
    <target name="javadoc">
        <property name="javadoc.build.root" value="C:\dev\builddir\javadoc" 
/>
        <property name="jdk.root" value="C:\dev\java\j2sdk1.4.1_01" />
        <mkdir dir="${javadoc.build.root}/docs" />
        <path id="src">
            <fileset dir="${javadoc.build.root}/src">
                <include name="com/**/*.java" />
                <include name="org/**/*.java" />
            </fileset>
        </path>
        <pathconvert pathsep=" " property="files" refid="src">
            <map 
from="${javadoc.build.root}${file.separator}src${file.separator}" to=""/>
        </pathconvert>
        <echo message="${files}" file="${javadoc.build.root}/srcs.txt"/>
        <exec dir="${javadoc.build.root}/src" 
executable="${jdk.root}/bin/javadoc.exe">
            <arg value="-protected" />
            <arg value="-source" />
            <arg value="JDK_MAJOR_VERSION" />
            <arg value="-d" />
            <arg value="${javadoc.build.root}${file.separator}docs" />
            <arg value="-use" />
            <arg value="-author" />
            <arg value="@${javadoc.build.root}${file.separator}srcs.txt" />
        </exec>
    </target>
</project>


Hope this is of some use.


Alex !

_________________________________________________________________
Use MSN Messenger to send music and pics to your friends 
http://www.msn.co.uk/messenger




More information about the opencms-dev mailing list