Thanks for the quick response Eric,
I am using
ANT-1.6.0 (problem also exhibited on 1.5.4 and 1.5.3)
XDoclet-1.2 (problem also exhibited on xdoclet-1.2 betas)
SUN JAVA-1.4.2_03 (problem also exhibited on java versions from 1.3.8+)
OS Cygwin and Red Hat 7.2 (problem exists on both platforms)
The ejbdoclet task in every ejb module is identical:
<target name="ejbdoclet">
<taskdef name="ejbdoclet"
classname="xdoclet.modules.ejb.EjbDocletTask"
classpathref="project.class.path"/>
<ejbdoclet destdir="${build.src.dir}"
excludedtags="@version,@author,@todo"
ejbspec="2.0"
force="${xdoclet.force}"
verbose="true">
<!--mergedir="${etc.dir}/merge"-->
<fileset dir="${src.dir}">
<include name="**/impl/*.java" />
</fileset>
<packageSubstitution packages="impl"
substituteWith="interfaces"/> <remoteinterface/>
<localinterface/>
<homeinterface />
<valueobject/>
<localhomeinterface/>
<entitypk/>
<entitybmp/>
<utilobject cacheHomes="true" includeGUID="true"/>
<deploymentdescriptor destdir="${build.dd.dir}"
validatexml="false"/>
<jboss
version="3.2"
unauthenticatedPrincipal="nobody"
xmlencoding="UTF-8"
destdir="${build.dd.dir}"
validatexml="false"
preferredrelationmapping="relation-table"/>
</ejbdoclet>
</target>
N.B xdoclet.force = false
The I checked the master build file to ensure it was not changing the
destdir, and I also searched for java files in erroneous places but this
all looks correct.
The master build file calls the module builds using the ant task e.g:
<!--
dependants
-->
<target name="dependants"
description=" - calls dependant modules build scripts">
<antcall target="modules">
<param name="target" value="export"/>
</antcall>
</target>
<target name="modules"
description="-executes the supplied task for all the modules."> <ant
antfile="build.xml" target="${target}"
dir="../common" inheritAll="false">
<property name="platform" value="${platform}"/>
</ant>
<ant antfile="build.xml" target="${target}"
dir="../securitystatus" inheritAll="false">
<property name="platform" value="${platform}"/>
</ant>
</target>
Hoos
>My guess is that you are not generating in the directory you expect,
> and thus incurring a full generation. If you provided some (succinct)
examples >of what you have in as your <ejbdoclet> and how you are
calling the build >using <ant> from the master build it would shed some
light on the issue.
>Erik
On Dec 27, 2003, at 8:21 AM, Hussein Badakhchani wrote:
>>Hello,
>>My I am building an EAR with multiple ejbs and my build tree is split
>> into modules for ejbs, webapps and sepearte modules for the top level
>> ear. When running ant inside a specific module xdoclet behaves in a
>> the expect way, i.e the code is generated on the first build and not
>> on subsiquent builds unless the source file changes. The problem is
>> when I run the master build which calls the module build scripts using
>> ANTs ant tast xdoclet insists on generating the code, even when I set
>> the xdoclet.force property in every modules build file.
>>This increases my build times from what should be around 20 secs to 3
>> minutes.
>>Has anyone experienced this or similar problems.
>.Cheers, Hoos
Hussein Badakhchani <hussein(at)xensia.com> t:+44 (0) 7801 816 143
Xensia LLP, London UK www.xensia.com
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user