User: gropi   
  Date: 01/10/02 01:57:04

  Modified:    src/examples/org/jboss/docs/interest build.xml
  Log:
  Separate compilation of EJB classes and Servlet class. Thus servlet.jar is
  only needed if you want to use the servlet.
  
  Revision  Changes    Path
  1.5       +19 -2     manual/src/examples/org/jboss/docs/interest/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /cvsroot/jboss/manual/src/examples/org/jboss/docs/interest/build.xml,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- build.xml 2001/07/30 18:03:17     1.4
  +++ build.xml 2001/10/02 08:57:04     1.5
  @@ -16,10 +16,26 @@
              optimize="off"
         >
          <classpath path="${classpath}" />
  -       <include name="org/jboss/docs/interest/*.java" />
  +       <include name="org/jboss/docs/interest/Interest.java" />
  +       <include name="org/jboss/docs/interest/InterestBean.java" />
  +       <include name="org/jboss/docs/interest/InterestHome.java" />
  +       <include name="org/jboss/docs/interest/InterestClient.java" />
         </javac>
       </target>
   
  +    <target name="compile-servlet">
  +      <mkdir dir="${build.classes.dir}"/>
  +      <javac srcdir="${src.dir}"
  +           destdir="${build.classes.dir}"
  +           debug="on"
  +           deprecation="on"
  +           optimize="off"
  +      >
  +       <classpath path="${classpath}" />
  +       <include name="org/jboss/docs/interest/InterestServlet.java" />
  +      </javac>
  +    </target>
  +
       <!-- Tutorial ejb jar -->
       <target name="ejb-jar" depends="compile">
           <delete dir="${build.interest.dir}/META-INF"/>
  @@ -38,8 +54,9 @@
               </fileset>
           </jar>
       </target>
  +
       <!-- Tutorial web app war -->
  -    <target name="war" depends="compile">
  +    <target name="war" depends="compile-servlet">
           <delete dir="${build.interest.dir}/WEB-INF"/>
           <mkdir dir="${build.interest.dir}/WEB-INF/classes/org/jboss/docs/interest"/>
           <copy file="${src.dir}/org/jboss/docs/interest/web.xml" 
todir="${build.interest.dir}/WEB-INF" />
  
  
  

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

Reply via email to