the line 16 where the cause of the error is here in the build.xml file: classpathref="plugin-lib.classpath">
Here is again my build.xml file: <?xml version="1.0"?> <project name="portlet" basedir="." default="deploy"> <import file="../build-common-portlet.xml" /> <target name="compile"> <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="plugin-lib.classpath"> <<<<<===== </taskdef> <webdoclet destdir="WEB-INF" mergedir="metadata/web" excludedtags="@version,@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> <mkdir dir="docroot/WEB-INF/classes" /> <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> On Tue, Jun 16, 2009 at 1:44 AM, Sam Wun<swun2...@gmail.com> wrote: > I have a feeling it just can't find the home path of Xdoclet. But not > sure how to define the HOME path of Xdoclet for ant. > This is what I got when running ant -v -d: > > ... > ... > > Loaded from /usr/liferay/liferay-portal-5.2.2/dev/lib/antelope.jar > ise/antelope/tasks/util/math/Math$Candidate.class^M > Class ise.antelope.tasks.util.math.Math$Candidate loaded from ant > loader (parentFirst)^M > Class java.lang.reflect.Array loaded from parent loader (parentFirst)^M > Setting ro project property: plugin.name.beginindex -> 47^M > Setting project property: plugin.name -> online-payment^M > Property "plugin.version" has not been set^M > Setting project property: plugin.file -> > ../../dist/online-payment-5.2.3.${plugin.version}.war^M > Attempting to create object of type > org.apache.tools.ant.helper.DefaultExecutor^M > Adding reference: ant.executor^M > Build sequence for target(s) `deploy' is [compile, war, deploy]^M > Complete build sequence is [compile, war, deploy, setup-eclipse, all, > setup-svn-ignores, build-common-plugin.build-javascript-cmd, > build-common-plugin.build-ser > vice, clean-portal-dependencies, build-common-plugin.clean, > build-common-plugin.build-lang-native2ascii, merge, > build-common.format-source, build-common.setup-s > vn-ignores, print-current-time, build-service, > build-common-plugin.build-lang-cmd, build-common.setup-eclipse, > format-source, build-lang-native2ascii-all, build > -lang-native2ascii, build-lang-cmd, > build-common-plugin.clean-portal-dependencies, > build-common-plugin.all, > build-common-plugin.build-lang-native2ascii-all, bui > ld-common-plugin.compile, clean, build-javascript-cmd, > build-common-plugin.merge, build-common.print-current-time, > build-lang, build-common-plugin.war, build-co > mmon-plugin.deploy, ]^M > ^M > compile:^M > Adding reference: plugin-lib.classpath^M > fileset: Setup scanner in dir > /usr/liferay/liferay-portal-5.2.2/bundles/tomcat-6.0.18/webapps/ROOT/WEB-INF/lib > with patternSet{ includes: [*.jar] excludes: [] } > ^M > Finding class xdoclet.modules.web.WebDocletTask^M > ^M > BUILD FAILED^M > /usr/liferay/liferay-portal-5.2.2/dev/portlets/online-payment/build.xml:16: > taskdef class xdoclet.modules.web.WebDocletTask cannot be found^M > at > org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:609)^M > at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:228)^M > at > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)^M > at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)^M > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)^M > at java.lang.reflect.Method.invoke(Method.java:597)^M > at > org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)^M > at org.apache.tools.ant.Task.perform(Task.java:348)^M > at org.apache.tools.ant.Target.execute(Target.java:357)^M > at org.apache.tools.ant.Target.performTasks(Target.java:385)^M > at > org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)^M > at org.apache.tools.ant.Project.executeTarget(Project.java:1306)^M > at > org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)^M > ... > > > On Mon, Jun 15, 2009 at 7:31 PM, Justin > Case<send_lotsa_spam_h...@yahoo.com> wrote: >> >> Hi, >> >> May I suggest you some bit of Ant reading? It will always help. >> >> In the meantime take: >> >> <taskdef name="webdoclet" >> classname="Xdoclet.modules.web.WebDocletTask" >> classpathref="xdocpath"> >> </taskdef> >> >> and replace it with >> >> <taskdef name="webdoclet" >> classname="Xdoclet.modules.web.WebDocletTask" >> classpathref="plugin-lib.classpath"> >> </taskdef> >> >> Notice the different classpath reference? I hope you know what a classpath >> is, if not you should read about that as well - it will save you lots of >> headaches. >> >> HTH, >> M >> >> >> >> >> >> ------------------------------------------------------------------------------ >> Crystal Reports - New Free Runtime and 30 Day Trial >> Check out the new simplified licensing option that enables unlimited >> royalty-free distribution of the report engine for externally facing >> server and web deployment. >> http://p.sf.net/sfu/businessobjects >> _______________________________________________ >> xdoclet-user mailing list >> xdoclet-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/xdoclet-user >> > ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ xdoclet-user mailing list xdoclet-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-user