Re: Reference xdocpath not found

Konstantin Priblouda <[email protected]> Mon, 15 Jun 2009 22:52:17 -0700 (PDT)
Newsgroups gmane.comp.java.xdoclet.user
Message-ID <[email protected]>
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 <[email protected]> wrote:

> From: Sam Wun <[email protected]>
> 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=3D"1.0"?>
> =

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

> =A0 =A0 =A0 =A0 <target name=3D"compile">
> =

> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0
> <mkdir dir=3D"docroot/WEB-INF/classes/" />
>  =3D=3D=3D=3D>>>=A0 =A0 =A0 =A0 =A0 =A0
> =A0=A0=A0<mkdir dir=3D"docroot/WEB-INF/src/"
> />=A0 <<<<=3D=3D=3D=3D=3D=3D
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0
> <path id=3D"plugin-lib.classpath">
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0
> =A0 =A0 =A0 =A0 <pathelement
> location=3D"${app.server.classes.portal.dir}" />
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0
> =A0 =A0 =A0 =A0 <fileset
> dir=3D"${app.server.lib.portal.dir}"
> includes=3D"*.jar" />
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0
> =A0 =A0 =A0 =A0 <pathelement
> location=3D"docroot/WEB-INF/classes" />
> =

> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0
> =A0 =A0 =A0 =A0 <fileset
> dir=3D"${env.XDOCLET_HOME}">
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0
> =A0 =A0 =A0 =A0 <include
> name=3D"**/*.jar"/>
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0
> =A0 =A0 =A0 =A0 </fileset>
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0
> </path>
> =

> =A0 =A0 =A0 =A0 <taskdef name=3D"webdoclet"
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0
> classname=3D"xdoclet.modules.web.WebDocletTask"
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0
> classpathref=3D"plugin.classpath">
> =A0 =A0 =A0 =A0 </taskdef>
> =A0 =A0 <webdoclet destdir=3D"WEB-INF"
> mergedir=3D"metadata/web"
> excludedtags=3D"@version,@author" verbose=3D"true">
> =A0 =A0 =A0 =A0 <fileset
> dir=3D"docroot/WEB-INF/src">
> =A0 =A0 =A0 =A0 =A0 =A0 <include
> name=3D"**/*Form.java" />
> =A0 =A0 =A0 =A0 =A0 =A0 <include
> name=3D"**/*Action.java" />
> =A0 =A0 =A0 =A0 =A0 =A0 <include
> name=3D"**/*Servlet.java" />
> =A0 =A0 =A0 =A0 </fileset>
> =A0 =A0 =A0 =A0 <deploymentdescriptor
> validatexml=3D"true"
> =A0 =A0 =A0 =A0 =A0 servletspec=3D"2.3"
> sessiontimeout=3D"60"
> =A0 =A0 =A0 =A0 =A0 destdir=3D"WEB-INF"
> distributable=3D"false">
> =A0 =A0 =A0 =A0 </deploymentdescriptor>
> =A0 =A0 =A0 =A0 <strutsconfigxml
> validatexml=3D"true" version=3D"1.1"/>
> =A0 =A0 =A0 =A0 <strutsvalidationxml/>
> =A0 =A0 </webdoclet>
> =

> =

> =

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

> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0
> />
> =

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

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

> Thanks
> =

> =

> On Tue, Jun 16, 2009 at 7:59 AM, Justin
> Case<[email protected]>
> wrote:
> >
> > --- On Mon, 6/15/09, Sam Wun <[email protected]>
> 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
> > [email protected]
> > 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
> [email protected]
> 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