[jboss-cvs] jboss-seam/seam-gen/build-scripts ...

Gavin King gavin.king at jboss.com
Tue Jan 9 01:19:39 EST 2007


  User: gavin   
  Date: 07/01/09 01:19:39

  Modified:    seam-gen/build-scripts  build.xml
  Log:
  test, dev, prod databases JBSEAM-644
  
  Revision  Changes    Path
  1.16      +11 -5     jboss-seam/seam-gen/build-scripts/build.xml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: build.xml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/seam-gen/build-scripts/build.xml,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -b -r1.15 -r1.16
  --- build.xml	5 Dec 2006 17:05:54 -0000	1.15
  +++ build.xml	9 Jan 2007 06:19:39 -0000	1.16
  @@ -22,6 +22,7 @@
   	<property name="testng.jar" value="${basedir}/lib/testng-4.5.1-jdk15.jar" />
   	<property name="javac.debug" value="true" />
   	<property name="javac.deprecation" value="false" />
  +	<property name="profile" value="dev" />
   
   	<fileset id="lib" dir="${lib.dir}">
   		<include name="*.jar" />
  @@ -55,15 +56,19 @@
   		<copy todir="${jar.dir}">
   			<fileset dir="${basedir}/resources">
   				<include name="seam.properties" />
  -				<include name="import.sql" />
   			</fileset>
   		</copy>
   		<copy todir="${jar.dir}/META-INF">
   			<fileset dir="${basedir}/resources/META-INF">
   				<include name="ejb-jar.xml" />
  -				<include name="persistence.xml" />
   			</fileset>
   		</copy>
  +		<copy tofile="${jar.dir}/META-INF/persistence.xml" 
  +			    file="${basedir}/resources/META-INF/persistence-${profile}.xml"
  +		   overwrite="true"/>
  +		<copy tofile="${jar.dir}/import.sql" 
  +			    file="${basedir}/resources/import-${profile}.sql"
  +		   overwrite="true"/>
   	</target>
   
   	<target name="war" depends="compile" 
  @@ -140,7 +145,7 @@
   		<fail unless="jboss.home">jboss.home not set</fail>
   		<copy todir="${deploy.dir}">
   			<fileset dir="${basedir}/resources">
  -				<include name="${project.name}-ds.xml" />
  +				<include name="${project.name}-${profile}-ds.xml" />
   			</fileset>
   		</copy>
   	</target>
  @@ -184,7 +189,8 @@
   
   	<target name="undeploy" description="Undeploy the example from JBoss">
   		<delete file="${deploy.dir}/${project.name}.ear" />
  -		<delete file="${deploy.dir}/${project.name}-ds.xml" />
  +		<delete file="${deploy.dir}/${project.name}-dev-ds.xml" />
  +		<delete file="${deploy.dir}/${project.name}-prod-ds.xml" />
   	</target>
   
   	<target name="clean" description="Cleans up the build directory">
  
  
  



More information about the jboss-cvs-commits mailing list