> -----Original Message-----
> From: Berin Loritsch [mailto:[EMAIL PROTECTED]]
> ... the docs aren't building.  Ant keeps giving me
> the following error:
>
> BUILD FAILED
>
> C:\projects\jakarta-avalon\build.xml:309: Could not create task of type:
> stylebook. Common solutions are to use taskdef to declare your task, or,
> if this is an optional task, to put the optional.jar in the lib directory
> of your ant installation (ANT_HOME).
>
> Can someone look into this!

Berin:

Seems that there are a number of errors in the buildfile related to the
xdocs target.  I have only checked jakarta-avalon/build.xml at this stage -
here is a summary of the changes needed to get it working:

   1. remove the comments from the following taskdef

    <!--
      <taskdef name="stylebook"
classname="org.apache.stylebook.StyleBookAntTask">
        <classpath refid="tools.class.path"/>
      </taskdef>
    -->

   2. change the classname in the above taskdef to
      "org.apache.tools.ant.taskdefs.optional.StyleBook"

   3. the classpath references "tools.class.path" contains the reference to
      ${stylebook.jar}" but ${stylebook.jar}" is undefined, but the sylebook
      jar is explicitly included in the fileset declaration - the solution
      is to either add a defintion of the stylebook.jar property or remove
      the pathelement statement and exclude statement - or more simply,
      change tools.class.path to the following:

      <path id="tools.class.path">
        <pathelement location="${xerces.jar}"/>
        <pathelement location="${testlet.jar}"/>
        <fileset dir="${tools.dir}/lib">
          <include name="*.jar" />
          <exclude name="testlet.jar"/>
        </fileset>
      </path>

After that the xdocs target executes properly.
I can go ahead and update the other build file if this seems an appropriate
direction.

Cheers, Steve.







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

Reply via email to