User: jules_gosnell
  Date: 02/01/03 12:51:04

  Modified:    jetty    build.xml
  Log:
  Infrastructure for the first cut of distributed HttpSessions - including
  changes to Jetty. NB - implementation to follow....
  
  Revision  Changes    Path
  1.17      +82 -14    contrib/jetty/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /cvsroot/jboss/contrib/jetty/build.xml,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- build.xml 2001/12/06 02:16:09     1.16
  +++ build.xml 2002/01/03 20:51:04     1.17
  @@ -37,7 +37,7 @@
     <!-- ================================================================== -->
   
     <!--
  -     | Initialize the build system.  Must depend on '_buildmagic:init'.  
  +     | Initialize the build system.  Must depend on '_buildmagic:init'.
        | Other targets should depend on 'init' or things will mysteriously fail.
      -->
   
  @@ -50,9 +50,9 @@
     <!-- ================================================================== -->
   
     <!--
  -     | Configure the build system.  
  +     | Configure the build system.
        |
  -     | This target is invoked by the Buildmagic initialization logic and 
  +     | This target is invoked by the Buildmagic initialization logic and
        | should contain module specific configuration elements.
      -->
   
  @@ -150,6 +150,13 @@
       <!-- Modules -->
       <!-- ======= -->
   
  +    <!-- J2EE -->
  +    <property name="jboss.j2ee.root" value="${project.root}/j2ee/output"/>
  +    <property name="jboss.j2ee.lib" value="${jboss.j2ee.root}/lib"/>
  +    <path id="jboss.j2ee.classpath">
  +      <pathelement path="${jboss.j2ee.lib}/jboss-j2ee.jar"/>
  +    </path>
  +
       <!-- Server -->
       <property name="jboss.server.root" value="${project.root}/server/output"/>
       <property name="jboss.server.lib" value="${jboss.server.root}/lib"/>
  @@ -159,6 +166,7 @@
   
       <!-- The combined dependent module classpath -->
       <path id="dependentmodule.classpath">
  +      <path refid="jboss.j2ee.classpath"/>
         <path refid="jboss.server.classpath"/>
       </path>
   
  @@ -176,6 +184,8 @@
       <property name="build.lib" value="${module.output}/lib"/>
       <property name="build.api" value="${module.output}/api"/>
       <property name="build.etc" value="${module.output}/etc"/>
  +    <property name="build.ejb" value="${module.output}/ejb"/>
  +    <property name="build.metadata" value="${module.output}/META-INF"/>
       <property name="build.reports" value="${module.output}/reports"/>
       <property name="build.resources" value="${module.output}/resources"/>
   
  @@ -216,6 +226,15 @@
       <property name="junit.timeout" value="240000"/> <!-- 4 minutes -->
       <property name="junit.batchtest.todir" value="${build.reports}"/>
       <property name="junit.jvm.options" value="-Ddummy"/>
  +
  +    <!-- xdoclet -->
  +    <path id="xdoclet.task.classpath">
  +      <path refid="javac.classpath"/>
  +      <pathelement location="${project.tools}/lib/xdoclet.jar"/>
  +      <pathelement location="${project.tools}/lib/ant.jar"/>
  +    </path>
  +    <property name="xdoclet.task.classpath"
  +           refid="xdoclet.task.classpath"/>
     </target>
   
   
  @@ -231,9 +250,40 @@
        |  documentation compiles.
       -->
     <target name="compile"
  -       depends="compile-classes, compile-etc, compile-resources"
  +       depends="compile-bean-sources, compile-classes, compile-etc, 
compile-resources"
          description="Compile all source files."/>
   
  +  <!-- Compile EJB with XDoclet -->
  +  <target name="compile-bean-sources" depends="init">
  +    <taskdef name="xdoclet" classname="xdoclet.ejb.EjbDocletTask"/>
  +
  +    <mkdir dir="${build.ejb}"/>
  +    <mkdir dir="${build.metadata}"/>
  +    <xdoclet sourcepath="${source.java}"
  +          destdir="${build.ejb}"
  +          classpath="${xdoclet.task.classpath}"
  +          ejbspec="2.0"
  +          excludedtags="@version,@author">
  +      <fileset dir="${source.java}">
  +        <include name="**/ejb/*Bean.java" />
  +      </fileset>
  +      <dataobject/>
  +      <remoteinterface/>
  +      <localinterface/>
  +      <homeinterface/>
  +      <localhomeinterface/>
  +      <entitypk/>
  +      <entitycmp/>
  +      <session/>
  +      <deploymentdescriptor xmlencoding ="UTF-8"
  +                         destdir="${build.metadata}"/>
  +      <jboss xmlencoding="UTF-8"
  +          typemapping="Hypersonic SQL"
  +          datasource="java:/DefaultDS"
  +          destdir="${build.metadata}"/>
  +    </xdoclet>
  +  </target>
  +
     <!-- Compile all class files -->
     <target name="compile-classes" depends="init">
       <mkdir dir="${build.classes}"/>
  @@ -248,6 +298,7 @@
           includeJavaRuntime="${javac.include.java.runtime}"
           failonerror="${javac.fail.onerror}">
          <src path="${source.java}"/>
  +       <src path="${build.ejb}"/>
          <classpath refid="javac.classpath"/>
          <include name="${javac.includes}"/>
          <exclude name="${javac.excludes}"/>
  @@ -284,7 +335,7 @@
        | Build all jar files.
      -->
   
  -  <target name="jars" 
  +  <target name="jars"
          description="Build the Service Archive"
          depends="compile">
       <mkdir dir="${build.lib}"/>
  @@ -298,6 +349,7 @@
         </fileset>
         <fileset dir="${build.classes}">
           <include name="**"/>
  +        <exclude name="**/ejb/**"/>
         </fileset>
         <!-- jboss-service.xml for jetty plugin -->
         <fileset dir="${build.resources}/jetty-plugin">
  @@ -318,8 +370,19 @@
           <include name="org.mortbay.tools.jar"/>
           <include name="cryptix-sasl-jetty.jar"/>
         </fileset>
  +    </jar>
   
  +    <!-- Build jetty-ejb.jar -->
  +    <jar jarfile="${build.lib}/jetty-ejb.jar">
  +      <fileset dir="${build.classes}">
  +        <include name="org/jboss/jetty/interfaces/*.class"/>
  +        <include name="org/jboss/jetty/ejb/*.class"/>
  +      </fileset>
  +      <fileset dir="${module.output}">
  +        <include name="META-INF/*.xml"/>
  +      </fileset>
       </jar>
  +
     </target>
   
   <target name="devel" depends="jars"
  @@ -331,9 +394,14 @@
   
       <echo>Undeploying old Jetty plugin...</echo>
       <delete 
file="../../build/output/jboss-3.0.0alpha/deploy/lib/${module.name}.sar"/>
  +    <delete file="../../build/output/jboss-3.0.0alpha/deploy/jetty-ejb.jar"/>
       <sleep seconds="5"/>
   
       <echo>Deploying new Jetty plugin...</echo>
  +    <copy file="${build.lib}/jetty-ejb.jar"
  +       filtering="no"
  +       todir="../../build/output/jboss-3.0.0alpha/deploy"
  +       />
       <copy file="${build.lib}/${module.name}.sar"
          filtering="no"
          todir="../../build/output/jboss-3.0.0alpha/deploy/lib"
  @@ -424,21 +492,21 @@
     <!-- Install & Release                                                  -->
     <!-- ================================================================== -->
   
  -  <target name="install" 
  +  <target name="install"
          description="Install the structure for a release."
          depends="all, _buildmagic:install:default"/>
   
     <target name="release" depends="install"/>
   
  -  <target name="release-zip" 
  +  <target name="release-zip"
          description="Builds a ZIP distribution."
          depends="release, _buildmagic:release:zip"/>
   
  -  <target name="release-tar" 
  +  <target name="release-tar"
          description="Builds a TAR distribution."
          depends="release, _buildmagic:release:tar"/>
   
  -  <target name="release-tgz" 
  +  <target name="release-tgz"
          description="Builds a TAR-GZ distribution."
          depends="release, _buildmagic:release:tgz"/>
   
  @@ -452,13 +520,13 @@
     <!-- ================================================================== -->
   
     <!-- Clean up all build output -->
  -  <target name="clean" 
  +  <target name="clean"
          description="Cleans up most generated files."
          depends="_buildmagic:clean">
     </target>
   
     <!-- Clean up all generated files -->
  -  <target name="clobber" 
  +  <target name="clobber"
          description="Cleans up all generated files."
          depends="_buildmagic:clobber, clean">
     </target>
  @@ -471,16 +539,16 @@
     <target name="main"
          description="Executes the default target (most)."
          depends="most"/>
  -    
  +
     <target name="all"
          description="Builds everything."
          depends="jars, docs"/>
   
  -  <target name="most" 
  +  <target name="most"
          description="Builds almost everything."
          depends="jars"/>
   
  -  <target name="help" 
  +  <target name="help"
             description="Show this help message."
          depends="_buildmagic:help:standard"/>
   
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to