Here's how I do it.
<!-- XDoclet class path to pull in XDoclet for ejbdoclet target -->
<path id="xdoclet.class.path.id">
<pathelement
location="${lib.dir}/xdoclet/commons-collections-2.0.jar"/>
<pathelement location="${lib.dir}/xdoclet/commons-logging.jar"/>
<pathelement location="${lib.dir}/xdoclet/xdoclet-1.2b2.jar"/>
<pathelement
location="${lib.dir}/xdoclet/xdoclet-bea-module-1.2b2.jar"/>
<pathelement
location="${lib.dir}/xdoclet/xdoclet-ejb-module-1.2b2.jar"/>
<pathelement
location="${lib.dir}/xdoclet/xdoclet-web-module-1.2b2.jar"/>
<pathelement
location="${lib.dir}/xdoclet/xdoclet-xjavadoc-uc-1.2b2.jar"/>
<pathelement location="${lib.dir}/utility/j2ee131min.jar"/>
</path>
<!-- EJBDoclet task -->
<taskdef name="ejbdoclet"
classname="xdoclet.modules.ejb.EjbDocletTask"
classpathref="xdoclet.class.path.id"
/>
One thing I haven't been able to figure out is how to do the same thing
for the <junit> and <junitreport> tasks. Since those tasks are already
defined, I can't give them a new classpath to include junit.jar,
crimson.jar, and xalan-j.jar. Thus, all those have to go either in my
ant/lib or on the CLASSPATH. Has anyone else found a way around this?
David Harkness
Sony Pictures Digital Networks
(310) 482-4756
-----Original Message-----
From: Thys de Wet [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 06, 2003 1:23 AM
To: [EMAIL PROTECTED]
Subject: Re: [Xdoclet-user] Newbie : J2EE classes error
Thys De Wet (ZA) wrote:
> Hi All
>
> I am trying to trun the samples.
> Using Ant 1.5.3
> And Xdoclet 1.2 b3
>
> I get the following :
> [EMAIL PROTECTED] samples]$ export
> ANT_HOME=/usr/java/apache-ant-1.5.3-1
> [EMAIL PROTECTED] samples]$ export PATH=$PATH:$ANT_HOME/bin
> [EMAIL PROTECTED] samples]$ ant
> Buildfile: build.xml
>
>
SNIP
Okay. so I changed my CLASSPATH env. variable to contain jboss-j2ee.jar
and now it works.
How can I do this via the build file ??
This email and all contents are subject to the following disclaimer:
"http://www.didata.com/disclaimer.asp"
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01
/01
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user