There is an part of build.xml that's work for entity facade

        <target name="xdoclet">
                <echo>+
===================================================== +</echo>
                <echo>+
+</echo>
                <echo>+  Running xDoclet
+</echo>
                <echo>+
+</echo>
                <echo>+
===================================================== +</echo>
                
          <antcall target="xdoclet.ejb.facade" />
                <antcall target="xdoclet.ejb" />
                <!-- <antcall target="xdoclet.web" /> -->
        </target>

        <target name="xdoclet.ejb.facade" depends="init">
        <taskdef name="ejbdoclet" 
                 classname="xdoclet.modules.ejb.EjbDocletTask"
                 classpathref="xdoclet.class.path" />

        <ejbdoclet destdir="${java.dir}">
            <fileset dir="${java.dir}" includes="**/*EJB.java" />
                        <fileset dir="${java.dir}" includes="**/*Bean.java"
/>
            <fileset dir="${java.dir}" includes="**/*MDB.java" />

            <packageSubstitution packages="ejb"
substituteWith="interfaces"/>

            <entityfacade/>
        </ejbdoclet>
        </target>
  
        <target name="xdoclet.ejb" depends="init">
        <taskdef name="ejbdoclet" 
                 classname="xdoclet.modules.ejb.EjbDocletTask"
                 classpathref="xdoclet.class.path" />

        <ejbdoclet destdir="${build.java.dir}">
            <fileset dir="${java.dir}" includes="**/*EJB.java" />
                        <fileset dir="${java.dir}" includes="**/*Bean.java"
/>
            <fileset dir="${java.dir}" includes="**/*MDB.java" />

            <packageSubstitution packages="ejb"
substituteWith="interfaces"/>
                        
            <remoteinterface pattern="{0}Remote"/>
            
            <homeinterface  pattern="{0}RemoteHome"/>
            
            <localinterface />
            
            <localhomeinterface />
            
            <entitypk/>
            
            <entitycmp/>
            
            <session /> 
            
            <utilobject cacheHomes="yes">
                <packageSubstitution packages="ejb" substituteWith="util"/>
            </utilobject>
            
            <valueobject pattern="{0}Value">
                <packageSubstitution packages="ejb" substituteWith="model"/>
            </valueobject>
            
            <dataobject>
                <packageSubstitution packages="ejb"
substituteWith="interfaces"/>
            </dataobject>
            
            <deploymentdescriptor destdir="${build.dir}/META-INF"
mergedir="${merge.dir}"/>

            <orion destdir="${build.dir}/META-INF" mergedir="${merge.dir}"/>
            
            <!-- JBoss -->
            <jboss destdir="${build.dir}/META-INF"
                version="${jboss.version}" 
                typemapping="${jboss.typemapping}" 
                datasource="${jboss.datasource}"
                xmlencoding="UTF-8"
            />
            
            <!-- WebLogic 
            <weblogic destdir="${build.dir}/META-INF"
                datasource="${weblogic.datasource}"
                createtables="${weblogic.create.table}" 
            /> -->
        </ejbdoclet>
        </target>

-----Message d'origine-----
De : Ben Litchfield [mailto:[EMAIL PROTECTED] 
Envoy� : jeudi 20 mars 2003 17:30
� : [EMAIL PROTECTED]
Objet : Re: [Xdoclet-user] entityfacade question


hmmm, I tried running it twice from ant like this

   <target name="ejbdoclet" description="run ejbdoclet to generate source
and descriptor files">
        <antcall target="_ejbdoclet" />
        <antcall target="_ejbdoclet" />
   </target>

ejbdoclet does get run twice but it does not do anything the second time. I
have to run ant from the command line twice to get this to work.  Has
anybody gotten this to work?

-Ben Litchfield





-- 

On Thu, 20 Mar 2003, Konstantin Priblouda wrote:

>
> --- Ben Litchfield <[EMAIL PROTECTED]> wrote:
> >
> > It appears that I need to run ejbdoclet twice to get
> > the entity facade
> > functionality to work correctly.
> >
> > Once to generate code for the entity beans and the XXXFacadeEJB and 
> > a second time to generate the code for the
> > XXXFacadeEJB.  This kinda sucks,
> > is this the intended way it should work?
>
> This iexactly the way it intendet to work.
> First pass generates abstract session bean with logic
> needed for the facading entity ( stripping down
> data objects for example ). But to generate all
> the stuff necessary to deploy this bean would be
> too much inside single subtask.
>
> So it's easier to generate marked up abstract bean,
> and then process it together with other source beans
> ( and also generate remote facade from this session
> bean )
>
> In current xdoclet architecture it's too difficult to
> feed generated source into xjavadoc again while
> running.
>
> regards,
>
> =====
> Konstantin Priblouda ( ko5tik )    Freelance Software developer
> < http://www.pribluda.de > < play java games -> http://www.yook.de > < 
> render charts online -> http://www.pribluda.de/povray/ >
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! 
> http://platinum.yahoo.com
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Tablet PC.
> Does your code think in ink? You could win a Tablet PC.
> Get a free Tablet PC hat just for playing. What are you waiting for? 
> http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
> _______________________________________________
> xdoclet-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user
>



-------------------------------------------------------
This SF.net email is sponsored by: Tablet PC.  
Does your code think in ink? You could win a Tablet PC. 
Get a free Tablet PC hat just for playing. What are you waiting for? 
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user


-------------------------------------------------------
This SF.net email is sponsored by: Tablet PC.
Does your code think in ink? You could win a Tablet PC.
Get a free Tablet PC hat just for playing. What are you waiting for?
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to