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

Peter Muir peter at bleepbleep.org.uk
Sat Sep 22 16:57:10 EDT 2007


  User: pmuir   
  Date: 07/09/22 16:57:10

  Modified:    build    common.build.xml
  Log:
  Move properties file manipulation and versioning to common build file
  
  Revision  Changes    Path
  1.4       +45 -15    jboss-seam/build/common.build.xml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: common.build.xml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/build/common.build.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -b -r1.3 -r1.4
  --- common.build.xml	22 Sep 2007 13:41:43 -0000	1.3
  +++ common.build.xml	22 Sep 2007 20:57:10 -0000	1.4
  @@ -10,8 +10,38 @@
   -->
   <project basedir="." xmlns:artifact="urn:maven-artifact-ant">
   
  +	<!-- If build.properties doesn't exist, create it by copying build.properties.sample -->
  +	<condition property="copy.default.properties">
  +		<and>
  +			<available file="${seam.dir}/build.properties.sample" />
  +			<not>
  +				<available file="${seam.dir}/build.properties" />
  +			</not>
  +		</and>
  +	</condition>
  +
  +	<copy todir="${seam.dir}">
  +		<fileset dir="${seam.dir}">
  +			<include name="build.properties.sample" if="copy.default.properties" />
  +		</fileset>
  +		<mapper type="glob" from="build.properties.sample" to="build.properties" />
  +	</copy>
  +
  +	<!-- Give user a chance to override without editing this file or typing -D -->
   	<property file="${seam.dir}/build.properties" />
   	
  +	<!-- Set the version if not set in build.properties -->
  +	<condition property="version" value="${DSTAMP}">
  +		<not>
  +			<isset property="version" />
  +		</not>
  +	</condition>
  +	<condition property="patchlevel" value="${TSTAMP}">
  +		<not>
  +			<isset property="patchelevel" />
  +		</not>
  +	</condition>
  +
   	<condition property="mavenized.property">
   		<not>
   			<equals arg1="${mavenized}" arg2="false" />
  
  
  



More information about the jboss-cvs-commits mailing list