No, it seems I misunderstood you. Here is the relevant part from one of my
build files (which doesn't look too different from yours):

<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="build" name="KMPortal-OJB">
    <property environment="env"/>

    <!-- Properties are defined in external files -->
    <!-- First user supplied properties - this allows the user to override
default properties (ANT does not override already-set properties) -->
    <property file="${env.USER_PROPERTIES}"/>
    <!-- Now read common properties (before profile to allow
overriding)-->
    <property file="build.properties"/>

    <!-- The libraries in the library directory that shall be used for
compiling -->
    <path id="compile-libs">
        <fileset dir="${lib.dir}">
            <include name="**/*.jar"/>
            <include name="**/*.zip"/>
        </fileset>
    </path>

    ...

    <target name="repository-files">
        <taskdef
name="ojbdoclet" classname="xdoclet.modules.ojb.OjbDocletTask" 
classpathref="compile-libs"/>

        <ojbdoclet destdir="${build.dir}/db">
            <fileset dir="${src.dir}/java"/>
            <ojbrepository destinationFile="${repository.file}"/>
            <torqueschema
databaseName="${project}" destinationFile="${schema.file}"/>
        </ojbdoclet>
    </target>

    ...
</project>

Again, as I said, try the -v option as it could be that not the
OjbDocletTask class itself is missing but one of the required libraries,
and Ant/xdoclet will only tell you which one when you use the -v option
(as only then you see the NoClassDefFoundErrors).

Tom


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to