[jboss-cvs] jboss-seam/examples/spring ...

Michael Youngstrom youngm at gmail.com
Tue Jul 17 14:43:55 EDT 2007


  User: myoungstrom
  Date: 07/07/17 14:43:55

  Modified:    examples/spring   build.xml
  Added:       examples/spring   build-tomcat6.xml
  Log:
  JBSEAM-1568
  
  Revision  Changes    Path
  1.14      +8 -96     jboss-seam/examples/spring/build.xml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: build.xml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/spring/build.xml,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -b -r1.13 -r1.14
  --- build.xml	11 Jul 2007 17:22:50 -0000	1.13
  +++ build.xml	17 Jul 2007 18:43:55 -0000	1.14
  @@ -1,104 +1,16 @@
   <?xml version="1.0"?>
   
  -<project name="spring" default="deploy" basedir=".">
  +<project name="Spring Example" default="tomcat6" basedir=".">
       
  -  <description>A Spring+Seam+JPA Example</description>
  -  <property name="projname" value="seam-spring" />
  -
  -  <property file="../../build.properties"/>
  -
  -  <property name="lib" location="../../lib" />
  -  <property name="applib" location="lib" />
  -  <property name="seamlib" location="../../" />
  -  <property name="hibernatelib" location="../../hibernate/lib" />
  -  <path id="lib.classpath">
  -    <fileset dir="${lib}" includes="*.jar"/>
  -    <fileset dir="${applib}" includes="*.jar"/>
  -    <fileset dir="${seamlib}" includes="*.jar"/>
  -  </path>
  -  
  -  <property name="resources" location="resources" />
  -  
  -  <property name="src" location="src" />
  -  <property name="view" location="view" />
  -  
  -  <property name="build.classes" location="build/classes" />
  -  <property name="build.jars" location="build/" />
  -
  -  <target name="clean">
  -    <delete dir="build"/>
  +   <target name="tomcat6" description="Build the Spring example artifacts, suitable for deployment to Tomcat 6">
  +     	<ant antfile="build-tomcat6.xml"/>
     </target>
   
  -  <target name="main" depends="deploy"/>
  -
  -  <target name="compile">
  -    <mkdir dir="${build.classes}"/>
  -    <javac destdir="${build.classes}"
  -           classpathref="lib.classpath"
  -           debug="true">
  -      <src path="${src}"/>
  -    </javac>
  +   <target name="clean" description="Clean up the example">
  +     	<ant antfile="build-tomcat6.xml" target="clean" />
     </target>
     
  -  <target name="build" depends="compile">
  -    
  -    <mkdir dir="${build.jars}"/>
  -    
  -    <jar destfile="${build.jars}/${projname}.jar">
  -      <fileset dir="${build.classes}">
  -        <include name="**/*.class"/>
  -      </fileset>
  -      <fileset dir="${resources}">
  -        <include name="seam.properties" />
  -        <include name="import.sql" />
  -      </fileset>
  -      <metainf dir="${resources}">
  -        <include name="persistence.xml" />
  -      </metainf>
  -    </jar>
  -      
  -    <war destfile="${build.jars}/${projname}.war"
  -         webxml="${resources}/web.xml">
  -      <webinf dir="${resources}">
  -        <include name="faces-config.xml" />
  -      	<include name="navigation.xml" />
  -        <include name="pages.xml" />
  -        <include name="components.xml" />
  -      	<include name="applicationContext.xml" />
  -      </webinf>
  -      <lib dir="${seamlib}">
  -        <include name="jboss-seam.jar" />
  -        <include name="jboss-seam-ui.jar" />
  -        <include name="jboss-seam-ioc.jar" />
  -        <include name="jboss-seam-debug.jar" />
  -      </lib>
  -      <lib dir="${lib}">
  -        <include name="jsf-facelets.jar" />
  -        <include name="spring.jar" />
  -        <include name="jboss-el.jar" />
  -        <include name="lucene-core-2.1.0.jar" />
  -      	<include name="hibernate-search.jar" />
  -      </lib>
  -      <lib dir="${build.jars}">
  -        <include name="${projname}.jar" />
  -      </lib>
  -      <classes dir="${resources}">
  -        <include name="log4j.xml" />
  -      	<include name="seam.properties" />
  -      </classes>
  -      <fileset dir="${view}"/>
  -    </war>
  -  </target>
  -
  -  <target name="deploy" depends="build">
  -    <copy file="${build.jars}/${projname}.war"
  -      todir="${jboss.home}/server/default/deploy"/>
  -  </target>
  -  
  -  <target name="undeploy">
  -    <delete
  -        file="${jboss.home}/server/default/deploy/${projname}.war"/>
  -  </target>
  +   <target name="all" depends="tomcat6" description="Build Spring Booking example, for deployment to all supported application servers"/>
     
   </project>
   
  
  
  
  1.1      date: 2007/07/17 18:43:55;  author: myoungstrom;  state: Exp;jboss-seam/examples/spring/build-tomcat6.xml
  
  Index: build-tomcat6.xml
  ===================================================================
  <?xml version="1.0"?>
  
  <project name="Spring" default="noejb.archive" basedir=".">
  
      <!-- Naming -->
      <property name="Name"                   value="The Spring Example for plain Tomcat 6.0"/>
      <property name="example.name"           value="jboss-seam-spring"/>
  
      <!-- resources -->
      <property name="resources.dir" value="resources" />
  	<property name="dist.dir" value="dist-tomcat6" />
  	<property name="exploded-archives.dir" value="exploded-archives-tomcat6" />
         
      <!-- Libraries to include -->
      <property name="seam.ui.lib"    value="true"/>
      <property name="seam.debug.lib" value="true"/>
      <property name="facelets.lib"   value="true"/>
      <property name="seam.ioc.war.lib"   value="true"/>
  	<property name="spring.lib"   value="true"/>
  
      <import file="../build.xml"/>
  
      <fileset id="noejb.war.extras" dir="${seam.dir}">
          <include name="lib/common*.jar"/>
          <include name="lib/jsf-*.jar"/>
          <include name="lib/jstl-*.jar"/>
          <include name="lib/hibernate-all.jar"/>
      	<include name="hibernate/lib/jboss-archive-browsing.jar"/>
          <include name="lib/thirdparty-all.jar"/>
          <!-- Needed for Spring -->
          <include name="examples/hibernate2/lib/cglib.jar"/>
      	<!--Only needed for jta-->
      	<include name="examples/hibernate2/lib/mc/jboss-j2ee.jar"/>
      </fileset>
         
  </project>
  
  
  
  



More information about the jboss-cvs-commits mailing list