Apparently, you should not create src dir with your ant script, it shall be already there. ( And not under WEB-INF )
Meanwhile, there is a quite standart layout used by maven: src/main/java /web /test And everything is build under target/ regards, ----[ Konstantin Pribluda http://www.pribluda.de ]---------------- JTec quality components: http://www.pribluda.de/projects/ --- On Tue, 6/16/09, Sam Wun <swun2...@gmail.com> wrote: > From: Sam Wun <swun2...@gmail.com> > Subject: Re: [Xdoclet-user] Reference xdocpath not found > To: "End-user support for the XDoclet code generator" > <xdoclet-user@lists.sourceforge.net> > Date: Tuesday, June 16, 2009, 6:36 AM > Hi, > > Where should I define the src? > Here is my build.xml file: > > <?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/" /> > ====>>> > <mkdir dir="docroot/WEB-INF/src/" > /> <<<<====== > > <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" /> > > > <fileset > dir="${env.XDOCLET_HOME}"> > > <include > name="**/*.jar"/> > > </fileset> > > </path> > > <taskdef name="webdoclet" > > classname="xdoclet.modules.web.WebDocletTask" > > classpathref="plugin.classpath"> > </taskdef> > <webdoclet destdir="WEB-INF" > mergedir="metadata/web" > excludedtags="@version,@author" verbose="true"> > <fileset > dir="docroot/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> > > Thanks > > > On Tue, Jun 16, 2009 at 7:59 AM, Justin > Case<send_lotsa_spam_h...@yahoo.com> > wrote: > > > > --- On Mon, 6/15/09, Sam Wun <swun2...@gmail.com> > wrote: > >> I made some progress, now it > >> complained I can't create a src/ > >> directory, see below for ant -v -d: > > > > It complained it can't FIND it :) why would be sources > under WEB-INF anyway??? > > > > 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 > ------------------------------------------------------------------------------ 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