introduce package.buildincrement prop to build script

This commit is contained in:
Steve Bohlen
2011-10-04 13:43:53 -04:00
parent 7b014c4cf5
commit cd32d76378
2 changed files with 7 additions and 3 deletions

View File

@@ -151,13 +151,16 @@ Commandline Examples:
<!-- change this to sync the sdk doc version generated -->
<property name="package.version.docs" value="${package.version}" />
<!-- make system environment variables available as NAnt properties -->
<property name="package.buildincrement" value="000" overwrite="false"/>
<sysinfo failonerror="false" />
<property name="project.company" value="SpringSource"/>
<property name="project.copyright" value="Copyright 2002-2009 Spring.NET Framework Team."/>
<property name="project.copyright" value="Copyright 2002-2011 Spring.NET Framework Team."/>
<property name="key.file" value="Spring.Net.snk"/>
<property name="project.year" value="2009"/>
<property name="project.year" value="2010"/>
<!-- Targets that are always executed -->
<call target="set-build-configuration"/>

View File

@@ -240,7 +240,8 @@
DateTime start = new DateTime(startYear, 1, 1);
TimeSpan ts = DateTime.Now - start;
int days = ts.Days;
string version = project.Properties["package.version"].ToString() + "." + frameworkRevisionNumber + days.ToString();
/* string version = project.Properties["package.version"].ToString() + "." + frameworkRevisionNumber + days.ToString(); */
string version = project.Properties["package.version"].ToString() + "." + frameworkRevisionNumber + project.Properties["package.buildincrement"].ToString();
project.Properties["project.version.numeric"] = version.ToString();
}