[jboss-user] Reference xdocpath not found.

Sam Wun swun2010 at gmail.com
Sun Jun 14 10:46:11 EDT 2009


Hi, I just installed xdoclet and created a build.xml file (shown below),
but execution of ant command failed with the followoing errors:
# ant
Buildfile: build.xml

compile:

BUILD FAILED
/usr/liferay/liferay-portal-5.2.2/dev/portlets/online-payment/build.xml:14:
Reference xdocpath not found.

Total time: 6 seconds

Here is the content of build.xml file:
# cat build.xml
<?xml version="1.0"?>

<project name="portlet" basedir="." default="deploy">
       <import file="../build-common-portlet.xml" />

       <target name="compile">
               <mkdir dir="docroot/WEB-INF/classes" />

               <path id="plugin-lib.classpath">
                       <pathelement
location="${app.server.classes.portal.dir}" />
                       <fileset dir="${app.server.lib.portal.dir}"
includes="*.jar" />
                       <pathelement location="docroot/WEB-INF/classes" />
               </path>
   <taskdef name="webdoclet"
classname="Xdoclet.modules.web.WebDocletTask" classpathref="xdocpath">
   </taskdef>
   <webdoclet destdir="WEB-INF" mergedir="metadata/web"
excludedtags="@version, at author" verbose="true">
       <fileset dir="WEB-INF/src">
           <include name="**/*Form.java" />
           <include name="**/*Action.java" />
           <include name="**/*Servlet.java" />
       </fileset>
       <deploymentdescriptor validatexml="true"
         servletspec="2.3" sessiontimeout="60"
         destdir="WEB-INF" distributable="false">
       </deploymentdescriptor>
       <strutsconfigxml validatexml="true" version="1.1"/>
       <strutsvalidationxml/>
   </webdoclet>


               <javac
                       classpathref="plugin.classpath"
                       compiler="${javac.compiler}"
                       debug="${javac.debug}"
                       deprecation="${javac.deprecation}"
                       destdir="docroot/WEB-INF/classes"
                       nowarn="${javac.nowarn}"
                       srcdir="docroot/WEB-INF/src3"
               />

               <antcall target="build-common-plugin.compile" />
       </target>

       <target name="build-lang">
               <antcall target="build-lang-cmd">
                       <param name="lang.dir"
value="docroot/WEB-INF/src/content/test" />
                       <param name="lang.file" value="Language" />
               </antcall>
       </target>
</project>

Can anyone tell me how to setup Xdoclet in unix? (linux/freebsd)
Your suggestion is very much appreciated.
Thanks



More information about the jboss-user mailing list