User: vharcq  
  Date: 02/04/13 07:27:08

  Modified:    core/samples/script build.xml
  Log:
  The previous commit omit ejb.jar etc on xdoclet classpath which just ignores the 
generation of some files.
  Anyway the goal was to not put xdoclet/xjavadoc JAR files on classpath on xdoclet.  
Else it fucked up the classloading and kills performance.  We come back here with 
"normal" performance numbers, a bit slower (10%) than using forked ant though.
  
  Revision  Changes    Path
  1.79      +35 -27    xdoclet/core/samples/script/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /cvsroot/xdoclet/xdoclet/core/samples/script/build.xml,v
  retrieving revision 1.78
  retrieving revision 1.79
  diff -u -w -r1.78 -r1.79
  --- build.xml 13 Apr 2002 12:25:31 -0000      1.78
  +++ build.xml 13 Apr 2002 14:27:08 -0000      1.79
  @@ -99,33 +99,29 @@
      <!-- Run EJBDoclet -->
      <target name="ejbdoclet" depends="prepare">
   
  -      <!--taskdef name="ejbdoclet"
  -               classname="xdoclet.ejb.EjbDocletTask" 
classpath="${xdoclet.jar.path};${xjavadoc.jar.path};${log4j.jar.path};${ant.jar.path}"
  -      /-->
         <taskdef
            name="xdoclet-bootstrapper"
            classname="xdoclet.loader.Bootstrapper"
            
classpath="${xdoclet.jar.path};${xjavadoc.jar.path};${log4j.jar.path};${ant.jar.path};${bcel.jar.path};lib/weblogic-module.jar"
         />
  +      
         <xdoclet-bootstrapper/>
   
  +      <path id="ejbdoclet.class.path">
  +         <fileset dir="lib">
  +            <include name="ejb.jar" />
  +            <include name="jms.jar" />
  +            <include name="servlet.jar" />
  +         </fileset>
  +      </path>
  +      
         <ejbdoclet
  -         sourcepath="${java.dir};${log4j.path}"
  +         classpathref="ejbdoclet.class.path"
            destdir="${generated.java.dir}"
            mergedir="parent-fake-to-debug"
  -         classpath="${java.class.path}"
            excludedtags="@version,@author,@todo"
            ejbspec="2.0"
  -         force="${xdoclet.force}"
  -      >
  -         <!--
  -            It's good practice to put interfaces in a separate "interfaces"
  -            package than in EJB bean implementations, but if you don't like it
  -            or want to apply another package naming convention, just remove the
  -            following like add as many <packageSubstitution/> as you want to
  -            configure it.
  -         -->
  -         <packageSubstitution packages="ejb" substituteWith="interfaces"/>
  +         force="${xdoclet.force}">
   
            <fileset dir="${java.dir}">
               <include name="test/ejb/*Bean.java" />
  @@ -135,23 +131,36 @@
               <exclude name="test/ejb/SecurityOfficerBean.java" />
            </fileset>
   
  -         <dataobject/>
  -         <valueobject/>
  +         <!--
  +            It's good practice to put interfaces in a separate "interfaces"
  +            package than in EJB bean implementations, but if you don't like it
  +            or want to apply another package naming convention, just remove the
  +            following like add as many <packageSubstitution/> as you want to
  +            configure it.
  +         -->
  +         <packageSubstitution packages="ejb" substituteWith="interfaces"/>
  +
            <remoteinterface/>
            <localinterface/>
            <homeinterface />
  -         <utilobject/>
            <localhomeinterface/>
  +
            <entitypk/>
            <entitycmp>
                <!-- packageSubstitution packages="ejb" substituteWith="ejb.impl"/>
                <packageSubstitution packages="ejb.cmr" substituteWith="ejb.cmr.impl"/ 
-->
            </entitycmp>
            <entitybmp/>
  +         <session/>
  +
  +         <dataobject/>
  +         <valueobject/>
  +         
  +         <utilobject/>
  +         
            <dao>
               <packageSubstitution packages="ejb" substituteWith="dao"/>
            </dao>
  -         <session/>
   
            <jboss
               version="3.0"
  @@ -177,30 +186,29 @@
               validatexml="false"
            />
   
  +         <!--
  +         <webSphere destdir="${build.dir}/ejb/META-INF" />
  +         <orion/>
  +         -->
  +
            <deploymentdescriptor 
               destdir="${ejb.dd.dir}" 
               validatexml="true"
               MergeDir="fake-to-debug"
            />
   
  -         <!--
  -         <webSphere destdir="${build.dir}/ejb/META-INF" />
  -         <orion/>
  -         -->
  -
            <apachesoap destdir="${build.dir}/web" />
   
            <!--
            Have struts form objects generated based on entity beans'
  -         data objects.  Will require struts.jar to compile. -->
  +         data objects.  Will require struts.jar to compile. 
  +         -->
            <strutsform />
   
  -
            <!--
            Have a mapping.xml file generated for castor classes.
            -->
            <castormapping destdir="${build.dir}/ejb/classes" validatexml="false" />
  -         <!-- -->
   
         </ejbdoclet>
   
  
  
  

_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to