Permalink
Browse files

Updated build scripts. Updated and moved NAnt to Tools.

  • Loading branch information...
1 parent 1bff43b commit 5a8d4e726619940973a066d4bb083653d2ad2217 @kristofferahl committed Feb 1, 2011
Showing with 34,120 additions and 31,291 deletions.
  1. +2 −0 Build.bat
  2. +227 −0 Build/Scripts/Build.build
  3. +0 −26 Build/Scripts/Build.msbuild
  4. +0 −46 Build/Scripts/PostBuild.build
  5. +0 −50 Build/Scripts/PreBuild.build
  6. +0 −2 Click to build.bat
  7. +0 −1 Dependencies/NAnt/License.txt
  8. BIN Dependencies/NAnt/NAnt.CompressionTasks.dll
  9. BIN Dependencies/NAnt/NAnt.Core.dll
  10. BIN Dependencies/NAnt/NAnt.DotNetTasks.dll
  11. BIN Dependencies/NAnt/NAnt.NUnit2Tasks.dll
  12. BIN Dependencies/NAnt/NAnt.VSNetTasks.dll
  13. BIN Dependencies/NAnt/NAnt.VisualCppTasks.dll
  14. BIN Dependencies/NAnt/NAnt.Win32Tasks.dll
  15. BIN Dependencies/NAnt/NAnt.exe
  16. +0 −1,716 Dependencies/NAnt/NAnt.exe.config
  17. BIN Dependencies/NAnt/NDoc.Documenter.NAnt.dll
  18. BIN Dependencies/NAnt/lib/ICSharpCode.SharpZipLib.dll
  19. BIN Dependencies/NAnt/lib/mono/1.0/NDoc.Core.dll
  20. BIN Dependencies/NAnt/lib/mono/1.0/NDoc.Documenter.Msdn.dll
  21. BIN Dependencies/NAnt/lib/mono/1.0/NDoc.ExtendedUI.dll
  22. BIN Dependencies/NAnt/lib/mono/2.0/NDoc.Core.dll
  23. BIN Dependencies/NAnt/lib/mono/2.0/NDoc.Documenter.Msdn.dll
  24. BIN Dependencies/NAnt/lib/mono/2.0/NDoc.ExtendedUI.dll
  25. BIN Dependencies/NAnt/lib/net/1.0/NDoc.Core.dll
  26. BIN Dependencies/NAnt/lib/net/1.0/NDoc.ExtendedUI.dll
  27. BIN Dependencies/NAnt/lib/net/1.1/NDoc.Core.dll
  28. BIN Dependencies/NAnt/lib/net/1.1/NDoc.Documenter.Msdn.dll
  29. BIN Dependencies/NAnt/lib/net/1.1/nunit.core.dll
  30. BIN Dependencies/NAnt/lib/net/1.1/nunit.framework.dll
  31. BIN Dependencies/NAnt/lib/net/1.1/nunit.util.dll
  32. BIN Dependencies/NAnt/lib/net/2.0/NDoc.Core.dll
  33. BIN Dependencies/NAnt/lib/net/2.0/NDoc.Documenter.Msdn.dll
  34. BIN Dependencies/NAnt/lib/net/2.0/NDoc.ExtendedUI.dll
  35. BIN Dependencies/NAnt/lib/net/2.0/nunit.core.dll
  36. BIN Dependencies/NAnt/lib/net/2.0/nunit.framework.dll
  37. BIN Dependencies/NAnt/lib/net/2.0/nunit.util.dll
  38. +2 −0 Release.bat
  39. BIN Tools/NAnt/NAnt.CompressionTasks.dll
  40. +711 −609 {Dependencies → Tools}/NAnt/NAnt.CompressionTasks.xml
  41. BIN Tools/NAnt/NAnt.Core.dll
  42. +16,149 −14,868 {Dependencies → Tools}/NAnt/NAnt.Core.xml
  43. BIN Tools/NAnt/NAnt.DotNetTasks.dll
  44. +5,334 −4,825 {Dependencies → Tools}/NAnt/NAnt.DotNetTasks.xml
  45. BIN {Dependencies → Tools}/NAnt/NAnt.MSNetTasks.dll
  46. +579 −580 {Dependencies → Tools}/NAnt/NAnt.MSNetTasks.xml
  47. BIN {Dependencies → Tools}/NAnt/NAnt.NUnit.dll
  48. +353 −353 {Dependencies → Tools}/NAnt/NAnt.NUnit.xml
  49. BIN {Dependencies → Tools}/NAnt/NAnt.NUnit1Tasks.dll
  50. +538 −538 {Dependencies → Tools}/NAnt/NAnt.NUnit1Tasks.xml
  51. BIN Tools/NAnt/NAnt.NUnit2Tasks.dll
  52. +584 −568 {Dependencies → Tools}/NAnt/NAnt.NUnit2Tasks.xml
  53. BIN {Dependencies → Tools}/NAnt/NAnt.SourceControlTasks.dll
  54. +1,279 −1,285 {Dependencies → Tools}/NAnt/NAnt.SourceControlTasks.xml
  55. BIN Tools/NAnt/NAnt.VSNetTasks.dll
  56. +3,961 −3,881 {Dependencies → Tools}/NAnt/NAnt.VSNetTasks.xml
  57. BIN Tools/NAnt/NAnt.VisualCppTasks.dll
  58. +1,211 −1,205 {Dependencies → Tools}/NAnt/NAnt.VisualCppTasks.xml
  59. BIN Tools/NAnt/NAnt.Win32Tasks.dll
  60. +753 −690 {Dependencies → Tools}/NAnt/NAnt.Win32Tasks.xml
  61. BIN Tools/NAnt/NAnt.exe
  62. +2,323 −0 Tools/NAnt/NAnt.exe.config
  63. +78 −48 {Dependencies → Tools}/NAnt/NAnt.xml
  64. BIN Tools/NAnt/NDoc.Documenter.NAnt.dll
  65. BIN Tools/NAnt/extensions/common/2.0/NAnt.MSBuild.dll
  66. +36 −0 Tools/NAnt/extensions/common/2.0/NAnt.MSBuild.xml
  67. BIN Tools/NAnt/lib/common/1.1/nunit-console-runner.dll
  68. BIN Tools/NAnt/lib/common/1.1/nunit-console.exe
  69. BIN {Dependencies/NAnt/lib/mono/1.0 → Tools/NAnt/lib/common/1.1}/nunit.core.dll
  70. BIN {Dependencies/NAnt/lib/mono/1.0 → Tools/NAnt/lib/common/1.1}/nunit.framework.dll
  71. BIN {Dependencies/NAnt/lib/mono/1.0 → Tools/NAnt/lib/common/1.1}/nunit.util.dll
  72. BIN Tools/NAnt/lib/common/2.0/nunit-console-runner.dll
  73. BIN Tools/NAnt/lib/common/2.0/nunit-console.exe
  74. BIN {Dependencies/NAnt/lib/mono → Tools/NAnt/lib/common}/2.0/nunit.core.dll
  75. BIN {Dependencies/NAnt/lib/mono → Tools/NAnt/lib/common}/2.0/nunit.framework.dll
  76. BIN {Dependencies/NAnt/lib/mono → Tools/NAnt/lib/common}/2.0/nunit.util.dll
  77. BIN {Dependencies/NAnt/lib → Tools/NAnt/lib/common/neutral}/ICSharpCode.SharpCvsLib.Console.dll
  78. BIN {Dependencies/NAnt/lib → Tools/NAnt/lib/common/neutral}/ICSharpCode.SharpCvsLib.dll
  79. BIN Tools/NAnt/lib/common/neutral/ICSharpCode.SharpZipLib.dll
  80. BIN Tools/NAnt/lib/common/neutral/NDoc.Core.dll
  81. BIN {Dependencies/NAnt/lib/net/1.0 → Tools/NAnt/lib/common/neutral}/NDoc.Documenter.Msdn.dll
  82. BIN {Dependencies/NAnt/lib/net/1.1 → Tools/NAnt/lib/common/neutral}/NDoc.ExtendedUI.dll
  83. BIN {Dependencies/NAnt/lib → Tools/NAnt/lib/common/neutral}/NUnitCore.dll
  84. BIN Tools/NAnt/lib/net/1.0/nunit-console-runner.dll
  85. BIN Tools/NAnt/lib/net/1.0/nunit-console.exe
  86. BIN {Dependencies → Tools}/NAnt/lib/net/1.0/nunit.core.dll
  87. BIN {Dependencies → Tools}/NAnt/lib/net/1.0/nunit.framework.dll
  88. BIN {Dependencies → Tools}/NAnt/lib/net/1.0/nunit.util.dll
  89. BIN {Dependencies → Tools}/NAnt/log4net.dll
  90. BIN {Dependencies → Tools}/NAnt/scvs.exe
View
@@ -0,0 +1,2 @@
+"Tools\NAnt\NAnt.exe" -buildfile:Build\Scripts\Build.build Default
+PAUSE
View
@@ -0,0 +1,227 @@
+<?xml version="1.0"?>
+<project name="Build" default="Default">
+
+<!-- *******************************************************************************
+ START PROJECT CONFIGURATION
+******************************************************************************** -->
+
+ <!-- PUBLIC TARGETS
+ These targets do not contain any markup. They should only act as an entry point and
+ depend on other tasks. These are the targets you intend to get called from any
+ command line or build server. Feel free to add, remove and customize to fit your needs.
+ -->
+ <target name="Minimal" description="Compiles" depends="Clean, AssemblyInfo, Compile" />
+ <target name="Default" description="Compiles and runs tests" depends="Clean, AssemblyInfo, Compile, Run-Unit-Tests" />
+ <target name="Full" description="Compiles, runs tests and publishes" depends="Clean, AssemblyInfo, Compile, Run-Unit-Tests, Run-Acceptance-Tests, Package, Publish" />
+
+ <!-- ROOT DIRECTORY
+ Must be relative to this file
+ -->
+ <property name="dir.root" value="..\..\"/>
+
+ <!-- COMMON DIRECTORIES
+ Directories used in the build process.
+ -->
+ <property name="dir.source" value="${dir.root}\"/>
+ <property name="dir.dependencies" value="${dir.root}Dependencies\"/>
+ <property name="dir.tools" value="${dir.root}Tools\"/>
+
+ <property name="dir.build" value="${dir.root}Build\"/>
+ <property name="dir.output" value="${dir.build}Output\"/>
+ <property name="dir.reports" value="${dir.build}Reports\"/>
+ <property name="dir.artifacts" value="${dir.build}Artifacts\"/>
+
+ <!-- COMMON ASSEMBLY INFO
+ Properties used when creating the common assembly info file
+ -->
+ <property name="project.version" value="0.5.1" />
+ <property name="project.config" value="release" />
+
+ <!-- PROJECTS TO BUILD
+ Declares the projects to build. You can also specify a solution file (.sln) if you want.
+ -->
+ <fileset id="projects">
+ <include name="${dir.source}FluentSecurity.sln" />
+ </fileset>
+
+ <!-- TEST AND ACCEPTANCE TEST ASSEMBLIES
+ Patterns for unit and acceptance -test assemblies.
+ -->
+ <fileset id="unit-test-assemblies" basedir="${dir.output}">
+ <include name="*.Specification.dll" />
+ </fileset>
+ <fileset id="acceptance-test-assemblies" basedir="${dir.output}">
+ </fileset>
+
+ <!-- TEST RUNNER
+ Path to the NUnit console.
+ -->
+ <property name="nunit.console" value="${dir.dependencies}NUnit.2.5.9\nunit-console.exe"/>
+
+ <!-- VERBOSE
+ Set to true if you want the build process to be verbose.
+ Most commonly used when debugging the build process.
+ -->
+ <property name="verbose" value="False"/>
+
+<!-- *******************************************************************************
+ END PROJECT CONFIGURATION
+******************************************************************************** -->
+
+ <!-- INTERNAL PROPERTIES
+ These properties should not be modified unless you really know what you are doing.
+ -->
+ <property name="nant.settings.currentframework" value="net-4.0"/>
+ <property name="msbuild.exe" value="${framework::get-framework-directory(framework::get-target-framework())}\msbuild.exe" />
+ <property name="msbuild.verbosity" value="Quiet"/>
+ <property name="msbuild.verbosity" value="Normal" if="${verbose}" />
+ <property name="nunit.failure" value="0" />
+
+ <!-- INTERNAL TARGETS
+ These properties should not be modified unless you really know what you are doing.
+ -->
+ <target name="Clean" description="Clean up">
+
+ <delete verbose="${verbose}">
+ <fileset>
+ <include name="${dir.output}\**.*" />
+ <include name="${dir.reports}\**.*" />
+ <include name="${dir.artifacts}\**.*" />
+ </fileset>
+ </delete>
+
+ </target>
+
+ <target name="AssemblyInfo" description="Create CommonAssemblyInfo">
+
+ <property name="assembly-version" value="${project.version}.0000" />
+ <property name="file-version" value="${project.version}.0000" />
+
+ <asminfo output="..\..\CommonAssemblyInfo.cs" language="CSharp" verbose="${verbose}">
+ <imports>
+ <import namespace="System" />
+ <import namespace="System.Reflection" />
+ <import namespace="System.Runtime.InteropServices" />
+ </imports>
+ <attributes>
+ <attribute type="ComVisibleAttribute" value="false" />
+ <attribute type="AssemblyVersionAttribute" value="${assembly-version}" />
+ <attribute type="AssemblyCopyrightAttribute" value="Copyright (c) 2009-2011, Kristoffer Ahl" />
+ <attribute type="AssemblyProductAttribute" value="FluentSecurity" />
+ <attribute type="AssemblyTitleAttribute" value="FluentSecurity" />
+ <attribute type="AssemblyCompanyAttribute" value="" />
+ <attribute type="AssemblyConfigurationAttribute" value="${project.config}" />
+ <attribute type="AssemblyInformationalVersionAttribute" value="${file-version}" />
+ <attribute type="AssemblyFileVersionAttribute" value="${file-version}" />
+ </attributes>
+ <references>
+ <include name="System.dll" />
+ </references>
+ </asminfo>
+
+ </target>
+
+ <target name="Compile" description="Compile">
+
+ <foreach item="File" property="project">
+ <in>
+ <items refid="projects" />
+ </in>
+ <do>
+ <echo message="*************************************************" if="${verbose}" />
+ <echo message="Compiling ${path::get-file-name(project)}" />
+ <echo message="*************************************************" if="${verbose}" />
+
+ <exec program="${msbuild.exe}">
+ <arg value="${project}" />
+ <arg value="/nologo" unless="${verbose}" />
+ <arg value="/p:Configuration=Release" />
+ <arg value="/v:${msbuild.verbosity}" />
+ </exec>
+
+ <echo if="${verbose}" />
+ </do>
+ </foreach>
+
+ </target>
+
+ <target name="Run-Unit-Tests" description="Run unit tests">
+
+ <mkdir dir="${dir.reports}" failonerror="false" verbose="${verbose}" />
+
+ <foreach item="File" property="filename">
+ <in>
+ <items refid="unit-test-assemblies" />
+ </in>
+ <do>
+ <echo message="*************************************************" if="${verbose}" />
+ <echo message="Running unit tests in ${path::get-file-name(filename)}" if="${verbose}" />
+ <echo message="*************************************************" if="${verbose}" />
+
+ <exec program="${nunit.console}" failonerror="false" resultproperty="testresult">
+ <arg value="${filename}" />
+ <arg value="/nologo" unless="${verbose}" />
+ <arg value="/xml=${dir.reports}\${path::get-file-name-without-extension(filename)}-Results.xml" />
+ </exec>
+
+ <property name="nunit.failure" value="${testresult}" unless="${int::parse(nunit.failure) != 0}" />
+
+ <echo message="" if="${verbose}" />
+ <echo message="" if="${verbose}" />
+ </do>
+ </foreach>
+
+ <fail message="Failures reported in unit tests." unless="${int::parse(nunit.failure) == 0}" />
+
+ </target>
+
+ <target name="Run-Acceptance-Tests" description="Run acceptance tests">
+
+ <mkdir dir="${dir.reports}" failonerror="false" verbose="${verbose}" />
+
+ <foreach item="File" property="filename">
+ <in>
+ <items refid="acceptance-test-assemblies" />
+ </in>
+ <do>
+ <echo message="*************************************************" if="${verbose}" />
+ <echo message="Running acceptance tests in ${path::get-file-name(filename)}" if="${verbose}" />
+ <echo message="*************************************************" if="${verbose}" />
+
+ <exec program="${nunit.console}" failonerror="false" resultproperty="testresult">
+ <arg value="${filename}" />
+ <arg value="/nologo" unless="${verbose}" />
+ <arg value="/xml=${dir.reports}\${path::get-file-name-without-extension(filename)}-Results.xml" />
+ </exec>
+
+ <property name="nunit.failure" value="${testresult}" unless="${int::parse(nunit.failure) != 0}" />
+
+ <echo message="" if="${verbose}" />
+ <echo message="" if="${verbose}" />
+ </do>
+ </foreach>
+
+ <fail message="Failures reported in acceptance tests." unless="${int::parse(nunit.failure) == 0}" />
+
+ </target>
+
+ <target name="Package" description="Creates build artifacts">
+
+ <zip zipfile="${dir.artifacts}FluentSecurity-${project.version}.zip" verbose="${verbose}">
+ <fileset basedir="${dir.output}">
+ <include name="FluentSecurity.dll" />
+ <include name="FluentSecurity.TestHelper.dll" />
+ <include name="..\..\License.txt" />
+ <include name="..\..\Readme.txt" />
+ </fileset>
+ </zip>
+
+ </target>
+
+ <target name="Publish" description="Publishes build artifacts">
+
+ <echo message="No publishing tasks have been defined" if="${verbose}" />
+
+ </target>
+
+</project>
@@ -1,26 +0,0 @@
-<Project DefaultTargets="PreBuild;Build;PostBuild;" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <Platform>AnyCPU</Platform>
- <SchemaVersion>2.0</SchemaVersion>
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
- <DebugSymbols>false</DebugSymbols>
- <NAntExecutable>..\..\Dependencies\NAnt\NAnt.exe</NAntExecutable>
- <SolutionDir>..\..\</SolutionDir>
- </PropertyGroup>
- <ItemGroup>
- <ProjectToBuild Include="$(SolutionDir)FluentSecurity.Specification\FluentSecurity.Specification.csproj"/>
- <ProjectToBuild Include="$(SolutionDir)FluentSecurity.TestHelper.Specification\FluentSecurity.TestHelper.Specification.csproj"/>
- </ItemGroup>
-
- <Target Name="PreBuild">
- <Exec Command="$(NAntExecutable) -buildfile:PreBuild.build"/>
- </Target>
-
- <Target Name="Build" DependsOnTargets="PreBuild">
- <MSBuild Projects="@(ProjectToBuild)" Targets="Rebuild;" Properties="Configuration=Release;" />
- </Target>
-
- <Target Name="PostBuild" DependsOnTargets="Build">
- <Exec Command="$(NAntExecutable) -buildfile:PostBuild.build"/>
- </Target>
-</Project>
@@ -1,46 +0,0 @@
-<?xml version="1.0"?>
-<project name="PostBuild" default="PostBuild">
- <target name="PostBuild" description="Performing postbuild tasks (NAnt)">
- <echo message="Performing postbuild asks (NAnt)" />
-
- <property name="nunit.console" value="NUnit.2.5.9\nunit-console.exe"/>
- <property name="nunit.build.dependenciesdir" value="..\..\Dependencies\"/>
- <property name="nunit.build.outputdir" value="..\Output\"/>
- <property name="nunit.build.reportsdir" value="..\Reports\"/>
-
- <echo message="Running all tests in ${nunit.build.outputdir}" />
- <echo message="Output reports to ${nunit.build.reportsdir}" />
-
- <foreach item="File" property="filename">
- <in>
- <items>
- <include name="${nunit.build.outputdir}*.Specification.dll" />
- </items>
- </in>
- <do>
- <echo message="*************************************************" />
- <echo message="Running tests in ${path::get-file-name(filename)}" />
- <echo message="*************************************************" />
-
- <exec program="${nunit.console}" basedir="${nunit.build.dependenciesdir}">
- <arg value="/nologo" />
- <arg value="${filename}" />
- <arg value="/xml=${nunit.build.reportsdir}${path::get-file-name-without-extension(filename)}-Results.xml" />
- </exec>
-
- <echo message="" />
- <echo message="" />
- </do>
- </foreach>
-
- <zip zipfile="${nunit.build.outputdir}..\FluentSecurity.zip">
- <fileset basedir="${nunit.build.outputdir}">
- <include name="FluentSecurity.dll" />
- <include name="FluentSecurity.TestHelper.dll" />
- <include name="..\..\License.txt" />
- <include name="..\..\Readme.txt" />
- </fileset>
- </zip>
-
- </target>
-</project>
@@ -1,50 +0,0 @@
-<?xml version="1.0"?>
-<project name="PreBuild" default="Version">
- <property name="project.version" value="0.5.1" />
- <property name="project.config" value="release" />
-
- <target name="PreBuild" description="Performing prebuild tasks (NAnt)">
- <echo message="Performing prebuild tasks (NAnt)" />
-
- <echo message="Cleaning up output directory" />
- <delete>
- <fileset>
- <include name="..\..\Build\Output\**.*" />
- </fileset>
- </delete>
-
- <echo message="Cleaning up reports directory" />
- <delete>
- <fileset>
- <include name="..\..\Build\Reports\**.*" />
- </fileset>
- </delete>
- </target>
-
- <target name="Version" description="Set AssemblyInfo with the build number" depends="PreBuild">
- <property name="assembly-version" value="${project.version}.0000" />
- <property name="file-version" value="${project.version}.0000" />
-
- <asminfo output="..\..\CommonAssemblyInfo.cs" language="CSharp">
- <imports>
- <import namespace="System" />
- <import namespace="System.Reflection" />
- <import namespace="System.Runtime.InteropServices" />
- </imports>
- <attributes>
- <attribute type="ComVisibleAttribute" value="false" />
- <attribute type="AssemblyVersionAttribute" value="${assembly-version}" />
- <attribute type="AssemblyCopyrightAttribute" value="Copyright (c) 2009-2010, Kristoffer Ahl" />
- <attribute type="AssemblyProductAttribute" value="FluentSecurity" />
- <attribute type="AssemblyTitleAttribute" value="FluentSecurity" />
- <attribute type="AssemblyCompanyAttribute" value="" />
- <attribute type="AssemblyConfigurationAttribute" value="${project.config}" />
- <attribute type="AssemblyInformationalVersionAttribute" value="${file-version}" />
- <attribute type="AssemblyFileVersionAttribute" value="${file-version}" />
- </attributes>
- <references>
- <include name="System.dll" />
- </references>
- </asminfo>
- </target>
-</project>
View
@@ -1,2 +0,0 @@
-"C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" "Build\Scripts\Build.msbuild" /property:Configuration=Build
-PAUSE
@@ -1 +0,0 @@
-http://nant.sourceforge.net/release/0.85/license.html
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
View
Binary file not shown.
Oops, something went wrong.

0 comments on commit 5a8d4e7

Please sign in to comment.