--- Jesper Linvald <[EMAIL PROTECTED]> wrote:
> Hello,
> 
>  
> 
> I have been tumbeling with the facade subtask for
> quite some time and I
> keep getting errors for some reason.
> 
> If I understand it correctly you first have to run
> 
>  
> 
> 1. <entityfacade> on the marked up beans and then in
> the second run call
> 
> 
> 2. <remotefacade> on the resulting beans. After this
> I run the remaining
> subtasks. 
> 
> 
> Is this the correct way to do it ?

Yes. But in your invocation you are doing some
mistakes with directories. 

I'm assuming your original sources live below .
directory. You are doing follwowing:


> <antcall target="entityfacade"/>

Generate abstract session beans for facades in
directory ./ejb/ from original sources. That's correct

> <antcall target="remotefacade"/>

generate  remote facades for abstract beans found in
directory ./ejb ( correct place for those sources 
you geberated on previous step ) and write them in the
same directory tree - that's really scary...

 
>       <copy
>
todir="ejb/dk/itu/next/rea/transform/velocity/model/silkshop/">
> 
>             <fileset
>
dir="dk/itu/next/rea/transform/velocity/model/silkshop/"/>
> 
>      </copy>
> 

Then you copy your original sources there ( into ./ejb
 )
> 
> <ejbdoclet
> 
>             destDir="./ejb"
> 
>             excludedtags="@version, @author"
> 
>             ejbspec="2.0"
> 
>             verbose="true"
> 
>             force="true">
> 
>  
> 
>       <fileset dir=".">
> 
>             <include name="**/*.java"/>
> 
>       </fileset>
And finally you take your original sources which do
not contain any generated code for the facades and 
generate from them into ./ejb

No wonder if you do not find util objects for
facades...


Better approach would be:

1. XDoclet Invocation : 
 - generate facades into some intermediate directory
2. Copy original files into same directory so
everything lives together
3. XDoclet invocation to process everything together
including <remotefacade/> and all the subtasks you
need.

regards,

=====
----[ Konstantin Pribluda ( ko5tik ) ]----------------
Zu Verst�rkung meines Teams suche ich ab Sofort einen
Softwareentwickler[In] f�r die Festanstellung. 
Arbeitsort: Mainz 
Skills:  Programieren, Kentnisse in OpenSource-Bereich
----[ http://www.pribluda.de ]------------------------

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com


-------------------------------------------------------
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/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to