Hi Rakesh,
In your ejbdoclet task you specify a fileset. Perhaps you meant to
search subdirectories?
<fileset dir="${dir.tmp}">
<include name="**/*Bean.java"/>
</fileset>
"**/*Bean.java" instead of "*Bean.java". What you have would work only
if you aren't using packages.
David Harkness
Sony Pictures Digital Networks
-----Original Message-----
From: Patel, Rakesh [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23, 2003 3:04 AM
To: Xdoclet-User (E-mail)
Subject: [Xdoclet-user] Problem getting started
Hi All,
new to XDoclet and trying to get a test environment working so then I
can customise to my needs.
I used the StatefulBean.java in the samples directory.
Here's my build file:
<?xml version="1.0" encoding="UTF-8"?>
<project name="XDoclet Buildfile" default="usage" basedir=".">
<property file="local.properties"/>
<property name="dir.tmp" value="${dev.home}/tmp"/>
<property name="dir.gen" value="${dev.home}/generated"/>
<!-- default target -->
<target name="usage">
<echo message="Add some comments about how to call the script"/>
</target>
<!-- Creates the output directories -->
<target name="prepare">
<mkdir dir="${dir.tmp}"/>
<mkdir dir="${dir.gen}"/>
</target>
<target name="clean"
description="Remove all generated files.">
<delete dir="${dir.tmp}/"/>
<delete dir="${dir.gen}"/>
</target>
<path id="project.class.path">
<fileset dir="C:\Temp\xdoclet\lib">
<include name="*.jar"/>
</fileset>
<fileset dir="C:\Java\jdk1.4\lib">
<include name="*.jar"/>
</fileset>
<fileset dir="C:\Java\j2ee1.3\lib">
<include name="*.jar"/>
</fileset>
</path>
<target name="ejbdoclet" depends="prepare">
<pathconvert targetos="windows" property="windowsPath"
refid="project.class.path"/>
<!-- now echo the path to the console -->
<echo>Windows path = ${windowsPath}</echo>
<taskdef
name="ejbdoclet"
classname="xdoclet.modules.ejb.EjbDocletTask"
classpathref="project.class.path"/>
<tstamp>
<format property="TODAY" pattern="d-MM-yy"/>
</tstamp>
<ejbdoclet
destdir="${dir.gen}"
excludedtags="@version,@author"
addedtags="@xdoclet-generated at ${TODAY}"
ejbspec="2.0" force="true" verbose="true">
<fileset dir="${dir.tmp}">
<include name="*Bean.java"/>
</fileset>
<remoteinterface/>
<localinterface/>
<homeinterface />
<localhomeinterface/>
<session/>
</ejbdoclet>
</target>
</project>
This is the output from Eclipse:
Buildfile: C:\Projects\DMS GUI\xdoc.xml
prepare:
ejbdoclet:
[echo] Windows path = <cut out to save space!>
[ejbdoclet] (XDocletMain.start 47 ) Running
<remoteinterface/>
[ejbdoclet] (XDocletMain.start 47 ) Running
<localinterface/>
[ejbdoclet] (XDocletMain.start 47 ) Running
<homeinterface/>
[ejbdoclet] (XDocletMain.start 47 ) Running
<localhomeinterface/>
[ejbdoclet] (XDocletMain.start 47 ) Running
<session/>
BUILD SUCCESSFUL
Total time: 7 seconds
However, there is nothing generated! Please help!
Thanks
Rakesh
-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user
-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user