Skip to content

Commit

Permalink
misc build fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
markpollack committed Oct 15, 2008
1 parent 284ca98 commit 36cfd3d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 20 deletions.
5 changes: 4 additions & 1 deletion Spring.build
Expand Up @@ -647,13 +647,15 @@

<target name="package" depends="set-package-configuration" description="Build and Package distribution">

<property name="project.build.sign" value="true"/>
<property name="project.build.package" value="true"/>

<call target="clean-current-package-dir"/>

<property name="nant.target.root.name" value="build"/>

<call target="set-build-namespaces-release"/>
<property name="project.build.sign" value="true"/>
<property name="project.build.package" value="true"/>

<call target="build-all-function"/>
Expand Down Expand Up @@ -787,8 +789,9 @@
<!-- copy third-party tools -->
<mkdir dir="${current.package.dir}/build-support/tools"/>
<copy todir="${current.package.dir}/build-support/tools">
<fileset basedir="tools">
<fileset basedir="build-support/tools">
<include name="antlr-2.7.6/*"/>
<include name="HttpRequestRecorder/*"/>
<include name="NAnt.NUnit2OutProc.Task/*"/>
<include name="nunit/*"/>
</fileset>
Expand Down
32 changes: 13 additions & 19 deletions Spring.include
Expand Up @@ -203,22 +203,16 @@
XXX is the number of days from the year the project 'started', property project.year. -->
<![CDATA[
public static void ScriptMain(Project project) {
int frameworkRevision = Convert.ToInt32(project.Properties["nant.settings.currentframework.revisionnumber"]);
Version version = new Version(project.Properties["package.version"]);
int major = version.Major;
int minor = version.Minor;
int build = version.Build;
int revision = version.Revision;
int startYear = Convert.ToInt32(project.Properties["project.year"]);
DateTime start = new DateTime(startYear, 1, 1);
TimeSpan ts = DateTime.Now - start;
revision = ts.Days;
revision = revision + (frameworkRevision*10000);
version = new Version(major, minor, build, revision);
project.Properties["project.version.numeric"] = version.ToString();
string frameworkRevisionNumber = project.Properties["nant.settings.currentframework.revisionnumber"];
int startYear = Convert.ToInt32(project.Properties["project.year"]);
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();
project.Properties["project.version.numeric"] = version.ToString();
}
]]>
</code>
Expand Down Expand Up @@ -326,7 +320,7 @@
depends="check-bin-dir, check-sdkdoc-dir, check-sdkdoc-debug, check-current-build-config, check-build-debug, check-build-defines">
<property name="nant.settings.currentframework" value="net-1.0"/>
<property name="nant.settings.currentframework.number" value="1.0"/>
<property name="nant.settings.currentframework.revisionnumber" value="0"/>
<property name="nant.settings.currentframework.revisionnumber" value="10"/>
<property name="current.build.debug" value="${build.debug}" dynamic="true"/>
<property name="current.build.defines.csc" value="${build.defines.csc},NET,NET_1_0" dynamic="true"/>
<property name="current.build.defines.jsc" value="${build.defines.jsc},NET,NET_1_0" dynamic="true"/>
Expand All @@ -346,7 +340,7 @@
depends="check-bin-dir, check-sdkdoc-dir, check-sdkdoc-debug, check-current-build-config, check-build-debug, check-build-defines">
<property name="nant.settings.currentframework" value="net-1.1"/>
<property name="nant.settings.currentframework.number" value="1.1"/>
<property name="nant.settings.currentframework.revisionnumber" value="1"/>
<property name="nant.settings.currentframework.revisionnumber" value="11"/>
<property name="current.build.debug" value="${build.debug}" dynamic="true"/>
<property name="current.build.defines.csc" value="${build.defines.csc},NET,NET_1_1" dynamic="true"/>
<property name="current.build.defines.jsc" value="${build.defines.jsc},NET,NET_1_1" dynamic="true"/>
Expand All @@ -365,7 +359,7 @@
depends="check-bin-dir, check-sdkdoc-dir, check-sdkdoc-debug, check-current-build-config, check-build-debug, check-build-defines">
<property name="nant.settings.currentframework" value="net-2.0"/>
<property name="nant.settings.currentframework.number" value="2.0"/>
<property name="nant.settings.currentframework.revisionnumber" value="2"/>
<property name="nant.settings.currentframework.revisionnumber" value="20"/>
<property name="net-2.0" value="true"/>
<property name="current.build.debug" value="${build.debug}" dynamic="true"/>
<property name="current.build.defines.csc" value="${build.defines.csc},NET,NET_2_0" dynamic="true"/>
Expand All @@ -385,7 +379,7 @@
<property name="nant.settings.currentframework" value="net-2.0"/>
<property name="nant.settings.currentframework.number" value="2.0"/>
<!-- revision number used when generating assembly info -->
<property name="nant.settings.currentframework.revisionnumber" value="3"/>
<property name="nant.settings.currentframework.revisionnumber" value="30"/>
<property name="net-2.0" value="true"/>
<property name="net-3.0" value="true"/>
<property name="current.build.debug" value="${build.debug}" dynamic="true"/>
Expand Down

0 comments on commit 36cfd3d

Please sign in to comment.