From 1e0419a5024a38b37fa002c76c8a560bd02c270c Mon Sep 17 00:00:00 2001 From: paulirish Date: Thu, 9 Sep 2010 05:53:24 -0700 Subject: [PATCH] Added best practices of build version incrementing Referencing http://www.ibmpressbooks.com/articles/article.aspx?p=519946 default.properties was added as well as build.properties (now used for overiding values in default.properties). Using the new buildinfo.properties file which is created dynamically to track the build number and build date. Also added a few comments and spaces between tasks to make the file easier to read. Changed .gitignore to ignore the buildinfo file not the build file. Originally committed at http://github.com/Garowetz/html5-boilerplate/commit/ff3d10eaff956f8c16525d2e01ae31790476da0a --- .gitignore | 2 +- build/build.properties | 3 +++ build/build.xml | 55 +++++++++++++++++++++++++++------------- build/default.properties | 3 +++ 4 files changed, 44 insertions(+), 19 deletions(-) create mode 100644 build/build.properties create mode 100644 build/default.properties diff --git a/.gitignore b/.gitignore index 0ebd3dd0..51181e53 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ publish/ -build/build.properties +build/buildinfo.properties diff --git a/build/build.properties b/build/build.properties new file mode 100644 index 00000000..1c8d3c0a --- /dev/null +++ b/build/build.properties @@ -0,0 +1,3 @@ +# build.properties file defines overrides for default.properties +# Explaination: This file should be created by each user as and when he or she needs to override particular values. +# Consequently, it should not be placed under version control. \ No newline at end of file diff --git a/build/build.xml b/build/build.xml index 826a23bf..80904f42 100644 --- a/build/build.xml +++ b/build/build.xml @@ -1,21 +1,28 @@ - - - - + + + + + Current build number:${build.number} + + + - - + + + + + @@ -29,13 +36,17 @@ + + + + @@ -54,6 +65,7 @@ + @@ -71,6 +83,7 @@ + @@ -92,6 +105,7 @@ + @@ -124,15 +138,17 @@ - + + + @@ -144,22 +160,25 @@ + - - - - - - - - - - - + + + + + + + + + + + + + diff --git a/build/default.properties b/build/default.properties new file mode 100644 index 00000000..89eacf93 --- /dev/null +++ b/build/default.properties @@ -0,0 +1,3 @@ + +# Build Versioning +html5boilerplate.build.info = buildinfo.properties \ No newline at end of file