Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Structuring to meet the new repository structure

Moving build system to psake
  • Loading branch information...
commit 3f40c73e9603acbf21ccc6fd0f2343612eee78d3 1 parent bfb3058
@ayende ayende authored
Showing with 37,133 additions and 103 deletions.
  1. +11 −0 .gitignore
  2. +0 −21 Default.build
  3. +6 −6 Rhino.DSL.Tests/Rhino.DSL.Tests-v2008.csproj
  4. +0 −45 Rhino.DSL.Tests/default.build
  5. +5 −5 Rhino.DSL/Rhino.DSL-vs2008.csproj
  6. +0 −26 Rhino.DSL/default.build
  7. BIN  SharedLibs/Boo.Lang.CodeDom.dll
  8. BIN  SharedLibs/Boo.Lang.Compiler.dll
  9. BIN  SharedLibs/Boo.Lang.Extensions.dll
  10. BIN  SharedLibs/Boo.Lang.Interpreter.dll
  11. BIN  SharedLibs/Boo.Lang.Parser.dll
  12. BIN  SharedLibs/Boo.Lang.Useful.dll
  13. BIN  SharedLibs/Boo.Lang.dll
  14. BIN  SharedLibs/Boo.Microsoft.Build.Tasks.dll
  15. +229 −0 SharedLibs/Boo.Microsoft.Build.targets
  16. BIN  SharedLibs/Boo.NAnt.Tasks.dll
  17. BIN  SharedLibs/MbUnit.Framework.dll
  18. BIN  SharedLibs/Rhino.Mocks.dll
  19. +5,413 −0 SharedLibs/Rhino.Mocks.xml
  20. BIN  SharedLibs/boo.exe
  21. BIN  SharedLibs/booc.exe
  22. +6 −0 SharedLibs/booc.exe.config
  23. +20 −0 SharedLibs/booc.rsp
  24. BIN  SharedLibs/booi.exe
  25. +6 −0 SharedLibs/booi.exe.config
  26. BIN  SharedLibs/booish.exe
  27. +6 −0 SharedLibs/booish.exe.config
  28. BIN  Tools/MbUnit/Aggregate.dll
  29. BIN  Tools/MbUnit/Aggregate.pdb
  30. BIN  Tools/MbUnit/MbUnit.AddIn.dll
  31. BIN  Tools/MbUnit/MbUnit.Cons.exe
  32. +12 −0 Tools/MbUnit/MbUnit.Cons.exe.config
  33. BIN  Tools/MbUnit/MbUnit.Demo.1.1.dll
  34. +20 −0 Tools/MbUnit/MbUnit.Framework.1.1.XML
  35. BIN  Tools/MbUnit/MbUnit.Framework.1.1.dll
  36. BIN  Tools/MbUnit/MbUnit.Framework.2.0.dll
  37. +10,995 −0 Tools/MbUnit/MbUnit.Framework.XML
  38. BIN  Tools/MbUnit/MbUnit.Framework.dll
  39. BIN  Tools/MbUnit/MbUnit.GUI.exe
  40. +14 −0 Tools/MbUnit/MbUnit.GUI.exe.config
  41. BIN  Tools/MbUnit/MbUnit.MSBuild.Tasks.dll
  42. BIN  Tools/MbUnit/MbUnit.Tasks.dll
  43. BIN  Tools/MbUnit/MbUnit.Tests.1.1.dll
  44. BIN  Tools/MbUnit/NAnt.Core.dll
  45. +14,462 −0 Tools/MbUnit/NAnt.Core.xml
  46. BIN  Tools/MbUnit/NGraphviz.Helpers.dll
  47. BIN  Tools/MbUnit/NGraphviz.Layout.dll
  48. BIN  Tools/MbUnit/NGraphviz.dll
  49. BIN  Tools/MbUnit/QuickGraph.Algorithms.Graphviz.dll
  50. BIN  Tools/MbUnit/QuickGraph.Algorithms.dll
  51. BIN  Tools/MbUnit/QuickGraph.dll
  52. BIN  Tools/MbUnit/Refly.dll
  53. BIN  Tools/MbUnit/TestDriven.Framework.dll
  54. +5,483 −0 Tools/MbUnit/TestFu.XML
  55. BIN  Tools/MbUnit/TestFu.dll
  56. BIN  Tools/MbUnit/XsdTidy.exe
  57. BIN  Tools/MbUnit/log4net.dll
  58. BIN  Tools/MbUnit/uninst.exe
  59. +6 −0 Tools/MbUnit/users.txt
  60. BIN  Tools/zip.exe
  61. +2 −0  acknowledgements.txt
  62. BIN  ayende-open-source.snk
  63. +61 −0 default.ps1
  64. +25 −0 license.txt
  65. +311 −0 psake.ps1
  66. +40 −0 psake_ext.ps1
View
11 .gitignore
@@ -0,0 +1,11 @@
+*resharper.user
+[Dd]ebug/
+[Rr]elease/
+build/
+[Bb]in/
+[Oo]bj/
+*.suo
+*.sln.cache
+_ReSharper.*/
+AssemblyInfo.cs
+*.user
View
21 Default.build
@@ -1,21 +0,0 @@
-<?xml version="1.0" encoding='iso-8859-1' ?>
-<project
- name="rhino-dsl"
- default="build"
- xmlns="http://nant.sf.net/release/0.85/nant.xsd"
- >
-
- <property name="root.dir" value=".." />
- <include buildfile="${root.dir}/common-project.xml" />
-
- <fileset id="buildfiles.all">
- <!-- Files have to be in dependency order -->
- <include name="Rhino.Dsl/default.build" />
- <include name="Rhino.Dsl.Tests/default.build" if="${common.testrunner.enabled}"/>
- </fileset>
-
- <target name="build" depends="common.build" />
-
- <target name="generate-assemblyinfo" depends="common.assemblyinfo" />
-
-</project>
View
12 Rhino.DSL.Tests/Rhino.DSL.Tests-v2008.csproj
@@ -2,7 +2,7 @@
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>9.0.21022</ProductVersion>
+ <ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{9BCD2185-4653-45D7-99B2-3043E55A6746}</ProjectGuid>
<OutputType>Library</OutputType>
@@ -35,19 +35,19 @@
<ItemGroup>
<Reference Include="Boo.Lang, Version=2.0.0.0, Culture=neutral, PublicKeyToken=32c39770e9a21a67, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\SharedLibs\Boo\Boo.Lang.dll</HintPath>
+ <HintPath>..\SharedLibs\Boo.Lang.dll</HintPath>
</Reference>
<Reference Include="Boo.Lang.Compiler, Version=2.0.0.0, Culture=neutral, PublicKeyToken=32c39770e9a21a67, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\SharedLibs\Boo\Boo.Lang.Compiler.dll</HintPath>
+ <HintPath>..\SharedLibs\Boo.Lang.Compiler.dll</HintPath>
</Reference>
<Reference Include="MbUnit.Framework, Version=1.0.2700.29885, Culture=neutral, PublicKeyToken=5e72ecd30bc408d5">
<SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\SharedLibs\Tools\MbUnit\MbUnit.Framework.dll</HintPath>
+ <HintPath>..\SharedLibs\MbUnit.Framework.dll</HintPath>
</Reference>
- <Reference Include="Rhino.Mocks, Version=3.3.0.986, Culture=neutral, PublicKeyToken=0b3305902db7183f, processorArchitecture=MSIL">
+ <Reference Include="Rhino.Mocks, Version=3.6.0.0, Culture=neutral, PublicKeyToken=0b3305902db7183f, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\build\net-3.5\debug\Rhino.Mocks.dll</HintPath>
+ <HintPath>..\SharedLibs\Rhino.Mocks.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
View
45 Rhino.DSL.Tests/default.build
@@ -1,45 +0,0 @@
-<?xml version="1.0" ?>
-
-<project
- name="Rhino.DSL.Tests"
- default="test"
- xmlns="http://nant.sf.net/release/0.85/nant.xsd"
->
- <property overwrite="false" name="assembly.is-cls-compliant" value="false" />
- <property name="root.dir" value="../.." />
- <include buildfile="${root.dir}/common-project.xml" />
-
- <target name="init" depends="common.init">
- <assemblyfileset id="project.references" basedir="${build.dir}">
- <include name="MbUnit.Framework.dll"/>
- <include name="Rhino.DSL.dll" />
- <include name="Rhino.Mocks.dll" />
- <include name="Boo.Lang.dll" />
- <include name="Boo.Lang.Compiler.dll" />
- <include name="Boo.Lang.Parser.dll" />
-
- </assemblyfileset>
-
- <resourcefileset id="project.resources" prefix="Resources" dynamicprefix="false" basedir="${src.dir}">
- <include name="**/*.txt" />
- <include name="**/*.resx" />
- <exclude name="obj/**" />
- </resourcefileset>
-
- <!-- copy the dsl files -->
- <copy todir="${build.dir}">
- <fileset basedir="${src.dir}">
- <include name="OrderDSL/*.boo"/>
- <include name="SchedulingDSL/*.boo"/>
- <include name="FeaturesDSL/*.boo"/>
- <include name="DslFactoryFixture/*.boo"/>
- <include name="*.boo"/>
- </fileset>
- </copy>
- </target>
-
- <target name="generate-assemblyinfo" depends="init common.generate-assemblyinfo" />
-
- <target name="test" depends="init generate-assemblyinfo common.compile-tests common.run-tests" description="Runs the tests" />
-
-</project>
View
10 Rhino.DSL/Rhino.DSL-vs2008.csproj
@@ -10,7 +10,7 @@
<RootNamespace>Rhino.DSL</RootNamespace>
<AssemblyName>Rhino.DSL</AssemblyName>
<SignAssembly>true</SignAssembly>
- <AssemblyOriginatorKeyFile>..\..\ayende-open-source.snk</AssemblyOriginatorKeyFile>
+ <AssemblyOriginatorKeyFile>..\ayende-open-source.snk</AssemblyOriginatorKeyFile>
<FileUpgradeFlags>
</FileUpgradeFlags>
<UpgradeBackupLocation>
@@ -39,15 +39,15 @@
<ItemGroup>
<Reference Include="Boo.Lang, Version=2.0.0.0, Culture=neutral, PublicKeyToken=32c39770e9a21a67, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\SharedLibs\Boo\Boo.Lang.dll</HintPath>
+ <HintPath>..\SharedLibs\Boo.Lang.dll</HintPath>
</Reference>
<Reference Include="Boo.Lang.Compiler, Version=2.0.0.0, Culture=neutral, PublicKeyToken=32c39770e9a21a67, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\SharedLibs\Boo\Boo.Lang.Compiler.dll</HintPath>
+ <HintPath>..\SharedLibs\Boo.Lang.Compiler.dll</HintPath>
</Reference>
<Reference Include="Boo.Lang.Parser, Version=2.0.0.0, Culture=neutral, PublicKeyToken=32c39770e9a21a67, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\SharedLibs\Boo\Boo.Lang.Parser.dll</HintPath>
+ <HintPath>..\SharedLibs\Boo.Lang.Parser.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
@@ -75,7 +75,7 @@
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
- <None Include="..\..\ayende-open-source.snk">
+ <None Include="..\ayende-open-source.snk">
<Link>ayende-open-source.snk</Link>
</None>
<None Include="ClassDiagram1.cd" />
View
26 Rhino.DSL/default.build
@@ -1,26 +0,0 @@
-<?xml version="1.0" encoding='iso-8859-1' ?>
-<project
- name="Rhino.DSL"
- default="build"
- xmlns="http://nant.sf.net/release/0.85/nant.xsd"
->
- <property overwrite="false" name="assembly.is-cls-compliant" value="false" />
- <property name="root.dir" value="../.." />
- <include buildfile="${root.dir}/common-project.xml" />
-
- <target name="init" depends="common.init">
- <property name="assembly.version" value="1.0.0.0" />
- <property name="assembly.description" value="Rhino DSL - Helper classes for building Domain Specific Languages" />
-
- <assemblyfileset id="project.references" basedir="${build.dir}">
- <include name="Boo.Lang.dll" />
- <include name="Boo.Lang.Compiler.dll" />
- <include name="Boo.Lang.Parser.dll" />
- </assemblyfileset>
- </target>
-
- <target name="generate-assemblyinfo" depends="init common.generate-assemblyinfo" />
-
- <target name="build" description="Build ${project::get-name()}" depends="generate-assemblyinfo common.compile-dll" />
-
-</project>
View
BIN  SharedLibs/Boo.Lang.CodeDom.dll
Binary file not shown
View
BIN  SharedLibs/Boo.Lang.Compiler.dll
Binary file not shown
View
BIN  SharedLibs/Boo.Lang.Extensions.dll
Binary file not shown
View
BIN  SharedLibs/Boo.Lang.Interpreter.dll
Binary file not shown
View
BIN  SharedLibs/Boo.Lang.Parser.dll
Binary file not shown
View
BIN  SharedLibs/Boo.Lang.Useful.dll
Binary file not shown
View
BIN  SharedLibs/Boo.Lang.dll
Binary file not shown
View
BIN  SharedLibs/Boo.Microsoft.Build.Tasks.dll
Binary file not shown
View
229 SharedLibs/Boo.Microsoft.Build.targets
@@ -0,0 +1,229 @@
+<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+
+ <UsingTask
+ TaskName="Microsoft.Build.Tasks.CreateBooManifestResourceName"
+ AssemblyFile="Boo.Microsoft.Build.Tasks.dll" />
+
+ <UsingTask
+ TaskName="Boo.Microsoft.Build.Tasks.Booc"
+ AssemblyFile="Boo.Microsoft.Build.Tasks.dll"/>
+
+ <UsingTask
+ TaskName="Boo.Microsoft.Build.Tasks.ExecBoo"
+ AssemblyFile="Boo.Microsoft.Build.Tasks.dll"/>
+
+ <PropertyGroup>
+ <MSBuildAllProjects Condition="'$(BooBinPath)' != ''">
+ $(MSBuildAllProjects);$(BooBinPath)\Boo.Microsoft.Build.targets
+ </MSBuildAllProjects>
+ <MSBuildAllProjects Condition="'$(BooBinPath)' == ''">
+ $(MSBuildAllProjects);$(MSBuildBinPath)\Boo.Microsoft.Build.targets
+ </MSBuildAllProjects>
+ <DefaultLanguageSourceExtension>.boo</DefaultLanguageSourceExtension>
+ <Language>Boo</Language>
+ </PropertyGroup>
+
+ <!--
+ The CreateManifestResourceNames target create the manifest resource names
+ from the .RESX files.
+
+ [IN]
+ @(ResxWithNoCulture) - The names the non-culture .RESX files.
+ @(ResxWithCulture) - The names the culture .RESX files.
+ @(NonResxWithNoCulture) - The names of the non-culture non-RESX
+ files (like bitmaps, etc).
+
+ @(NonResxWithCulture) - The names of the culture non-RESX
+ files (like bitmaps, etc).
+
+ [OUT]
+ @(ManifestResourceWithNoCultureName) - The corresponding manifest
+ resource name (.RESOURCE)
+
+ @(ManifestResourceWithCultureName) - The corresponding manifest
+ resource name (.RESOURCE)
+
+ @(ManifestNonResxWithNoCulture) - The corresponding manifest
+ resource name.
+
+ @(ManifestNonResxWithCulture) - The corresponding manifest
+ resource name.
+
+ For Boo applications the transformation is like:
+
+ Resources1.resx => RootNamespace.Resources1 => Build into main assembly
+
+ SubFolder\Resources1.resx =>
+ RootNamespace.SubFolder.Resources1 =>
+ Build into main assembly
+
+ Resources1.fr.resx =>
+ RootNamespace.Resources1.fr =>
+ Build into satellite assembly
+
+ Resources1.notaculture.resx =>
+ RootNamespace.Resources1.notaculture =>
+ Build into main assembly
+
+ For other project systems, this transformation may be different.
+ -->
+
+ <PropertyGroup>
+ <CreateManifestResourceNamesDependsOn>
+ </CreateManifestResourceNamesDependsOn>
+ </PropertyGroup>
+
+ <Target
+ Name="CreateManifestResourceNames"
+ Condition="'
+ @(ResxWithNoCulture)
+ @(ResxWithCulture)
+ @(NonResxWithNoCulture)
+ @(NonResxWithCulture)'!=''"
+
+ DependsOnTargets="$(CreateManifestResourceNamesDependsOn)"
+ >
+
+ <!-- Create the target resource names for non-culture resx files -->
+ <CreateBooManifestResourceName
+ Condition="'@(ResxWithNoCulture)'!=''"
+ ResourceFiles="@(ResxWithNoCulture)"
+ RootNamespace="$(RootNamespace)">
+
+ <Output
+ TaskParameter="ManifestResourceNames"
+ ItemName="ManifestResourceWithNoCultureName"/>
+
+ </CreateBooManifestResourceName>
+
+ <!-- Create the target resource names for culture resx files. -->
+ <CreateBooManifestResourceName
+ Condition="'@(ResxWithCulture)'!=''"
+ ResourceFiles="@(ResxWithCulture)"
+ RootNamespace="$(RootNamespace)">
+
+ <Output
+ TaskParameter="ManifestResourceNames"
+ ItemName="ManifestResourceWithCultureName"/>
+
+ </CreateBooManifestResourceName>
+
+ <!-- Create the target resource names for non-culture non-resx files. -->
+ <CreateBooManifestResourceName
+ Condition="'@(NonResxWithNoCulture)'!=''"
+ ResourceFiles="@(NonResxWithNoCulture)"
+ RootNamespace="$(RootNamespace)">
+
+ <Output
+ TaskParameter="ManifestResourceNames"
+ ItemName="ManifestNonResxWithNoCulture"/>
+
+ </CreateBooManifestResourceName>
+
+ <!-- Create the target resource names for culture non-resx files. -->
+ <CreateBooManifestResourceName
+ Condition="'@(NonResxWithCulture)'!=''"
+ ResourceFiles="@(NonResxWithCulture)"
+ RootNamespace="$(RootNamespace)">
+
+ <Output
+ TaskParameter="ManifestResourceNames"
+ ItemName="ManifestNonResxWithCulture"/>
+
+ </CreateBooManifestResourceName>
+ </Target>
+
+ <PropertyGroup>
+
+ <!--
+ "None" is not technically a valid DebugType, so we can't pass it
+ in as such to the compiler. So here, we modify the properties so
+ they make sense.
+ -->
+ <DebugSymbols Condition="'$(DebugType)' == 'none'">false</DebugSymbols>
+ <DebugType Condition="'$(DebugType)' == 'none'"></DebugType>
+
+ <!-- Provide a facility to override UseHostCompilerIfAvailable-->
+ <UseHostCompilerIfAvailable
+ Condition="'$(UseHostCompilerIfAvailable)' == ''">
+ true
+ </UseHostCompilerIfAvailable>
+
+ </PropertyGroup>
+
+ <ItemGroup>
+ <DocFileItem
+ Include="$(DocumentationFile)"
+ Condition="'$(DocumentationFile)'!=''">
+
+ <InProject>false</InProject>
+ </DocFileItem>
+ </ItemGroup>
+
+ <PropertyGroup>
+ <CoreCompileDependsOn>
+ _ComputeNonExistentFileProperty
+ </CoreCompileDependsOn>
+ </PropertyGroup>
+
+ <PropertyGroup Condition=" '$(BoocToolPath)' != '' ">
+ <ReferencePath>$(ReferencePath);$(BoocToolPath)</ReferencePath>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(BoocToolPath)' == '' ">
+ <ReferencePath>$(ReferencePath);$(BooBinPath)</ReferencePath>
+ </PropertyGroup>
+
+ <Target
+ Name="CoreCompile"
+ Inputs="$(MSBuildAllProjects);
+ @(Compile);
+ @(ManifestResourceWithNoCulture);
+ $(ApplicationIcon);
+ $(AssemblyOriginatorKeyFile);
+ @(ManifestNonResxWithNoCultureOnDisk);
+ @(ReferencePath);
+ @(CompiledLicenseFile)"
+ Outputs="@(IntermediateAssembly)"
+ DependsOnTargets="$(CoreCompileDependsOn)"
+ >
+
+ <Booc
+ OutputAssembly="@(IntermediateAssembly)"
+ References="@(ReferencePath)"
+ Resources= "@(ManifestResourceWithNoCulture);
+ @(ManifestNonResxWithNoCultureOnDisk);
+ @(CompiledLicenseFile)"
+ ResponseFiles="$(CompilerResponseFile)"
+ Sources="@(Compile)"
+ TargetType="$(OutputType)"
+ ToolPath="$(BoocToolPath)"
+ Pipeline="$(Pipeline)"
+ WhiteSpaceAgnostic="$(WhiteSpaceAgnostic)"
+ Ducky="$(Ducky)"
+ Verbosity="$(BoocVerbosity)"
+ Culture="$(AssemblyCulture)"
+ SourceDirectory="$(SourceDirectory)"
+ KeyFile="$(AssemblyOriginatorKeyFile)"
+ KeyContainer="$(AssemblyKeyContainerName)"
+ EmitDebugInformation="$(DebugSymbols)"
+ DelaySign="$(DelaySign)"
+ NoStandardLib="$(NoStdLib)"
+ DefineSymbols="$(DefineConstants)"
+ GenerateFullPaths="$(GenerateFullPaths)"
+ />
+
+ <Copy
+ Condition=" '$(BoocToolPath)' == '' "
+ SkipUnchangedFiles="true"
+ SourceFiles="$(BooBinPath)\Boo.Lang.dll"
+ DestinationFolder="$(OutputPath)"/>
+
+ <Copy
+ Condition=" '$(BoocToolPath)' != '' "
+ SkipUnchangedFiles="true"
+ SourceFiles="$(BoocToolPath)\Boo.Lang.dll"
+ DestinationFolder="$(OutputPath)"/>
+ </Target>
+
+ <Import Project="$(MSBuildBinPath)\Microsoft.Common.targets" />
+</Project>
View
BIN  SharedLibs/Boo.NAnt.Tasks.dll
Binary file not shown
View
BIN  SharedLibs/MbUnit.Framework.dll
Binary file not shown
View
BIN  SharedLibs/Rhino.Mocks.dll
Binary file not shown
View
5,413 SharedLibs/Rhino.Mocks.xml
5,413 additions, 0 deletions not shown
View
BIN  SharedLibs/boo.exe
Binary file not shown
View
BIN  SharedLibs/booc.exe
Binary file not shown
View
6 SharedLibs/booc.exe.config
@@ -0,0 +1,6 @@
+<configuration>
+<startup>
+<supportedRuntime version="v2.0.50727"/>
+<supportedRuntime version="v1.1.4322"/>
+</startup>
+</configuration>
View
20 SharedLibs/booc.rsp
@@ -0,0 +1,20 @@
+# This file contains command-line options that the Boo
+# command-line compiler (booc) will process as part
+# of every compilation, unless the "-noconfig" option
+# is specified.
+
+# Reference the common Framework libraries
+#-r:System (already included by boo)
+#-r:System.Data
+-r:System.Drawing
+#-r:System.Management
+#-r:System.Messaging
+#-r:System.Runtime.Remoting
+#-r:System.Runtime.Serialization.Formatters.Soap
+# does not work nicely on mono
+-r:System.Security
+#-r:System.ServiceProcess
+#-r:System.Web
+#-r:System.Web.Services
+#-r:System.Windows.Forms
+-r:System.Xml
View
BIN  SharedLibs/booi.exe
Binary file not shown
View
6 SharedLibs/booi.exe.config
@@ -0,0 +1,6 @@
+<configuration>
+<startup>
+<supportedRuntime version="v2.0.50727"/>
+<supportedRuntime version="v1.1.4322"/>
+</startup>
+</configuration>
View
BIN  SharedLibs/booish.exe
Binary file not shown
View
6 SharedLibs/booish.exe.config
@@ -0,0 +1,6 @@
+<configuration>
+<startup>
+<supportedRuntime version="v2.0.50727"/>
+<supportedRuntime version="v1.1.4322"/>
+</startup>
+</configuration>
View
BIN  Tools/MbUnit/Aggregate.dll
Binary file not shown
View
BIN  Tools/MbUnit/Aggregate.pdb
Binary file not shown
View
BIN  Tools/MbUnit/MbUnit.AddIn.dll
Binary file not shown
View
BIN  Tools/MbUnit/MbUnit.Cons.exe
Binary file not shown
View
12 Tools/MbUnit/MbUnit.Cons.exe.config
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<configuration>
+ <runtime>
+ <!-- Don't kill application on first uncaught exception. -->
+ <legacyUnhandledExceptionPolicy enabled="1" />
+ </runtime>
+
+ <startup>
+ <supportedRuntime version="v2.0.50727" />
+ <supportedRuntime version="v1.1.4322"/>
+ </startup>
+</configuration>
View
BIN  Tools/MbUnit/MbUnit.Demo.1.1.dll
Binary file not shown
View
20 Tools/MbUnit/MbUnit.Framework.1.1.XML
@@ -0,0 +1,20 @@
+<?xml version="1.0"?>
+<doc>
+ <assembly>
+ <name>MbUnit.Framework.1.1</name>
+ </assembly>
+ <members>
+ <member name="T:MbUnit.Framework.RollBackAttribute">
+ <summary>
+ Tags methods to execute database operation in its own database
+ transaction.
+ </summary>
+ <remarks>
+ <para>
+ This attribute was invented by <b>Roy Osherove</b> (
+ http://weblogs.asp.net/rosherove/).
+ </para>
+ </remarks>
+ </member>
+ </members>
+</doc>
View
BIN  Tools/MbUnit/MbUnit.Framework.1.1.dll
Binary file not shown
View
BIN  Tools/MbUnit/MbUnit.Framework.2.0.dll
Binary file not shown
View
10,995 Tools/MbUnit/MbUnit.Framework.XML
10,995 additions, 0 deletions not shown
View
BIN  Tools/MbUnit/MbUnit.Framework.dll
Binary file not shown
View
BIN  Tools/MbUnit/MbUnit.GUI.exe
Binary file not shown
View
14 Tools/MbUnit/MbUnit.GUI.exe.config
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<configuration>
+ <runtime>
+ <!-- Don't kill application on first uncaught exception. -->
+ <legacyUnhandledExceptionPolicy enabled="1" />
+ </runtime>
+ <startup>
+ <supportedRuntime version="v2.0.50727" />
+ <supportedRuntime version="v1.1.4322"/>
+ </startup>
+ <appSettings>
+ <add key="restorePreviousState" value="true" />
+ </appSettings>
+</configuration>
View
BIN  Tools/MbUnit/MbUnit.MSBuild.Tasks.dll
Binary file not shown
View
BIN  Tools/MbUnit/MbUnit.Tasks.dll
Binary file not shown
View
BIN  Tools/MbUnit/MbUnit.Tests.1.1.dll
Binary file not shown
View
BIN  Tools/MbUnit/NAnt.Core.dll
Binary file not shown
View
14,462 Tools/MbUnit/NAnt.Core.xml
14,462 additions, 0 deletions not shown
View
BIN  Tools/MbUnit/NGraphviz.Helpers.dll
Binary file not shown
View
BIN  Tools/MbUnit/NGraphviz.Layout.dll
Binary file not shown
View
BIN  Tools/MbUnit/NGraphviz.dll
Binary file not shown
View
BIN  Tools/MbUnit/QuickGraph.Algorithms.Graphviz.dll
Binary file not shown
View
BIN  Tools/MbUnit/QuickGraph.Algorithms.dll
Binary file not shown
View
BIN  Tools/MbUnit/QuickGraph.dll
Binary file not shown
View
BIN  Tools/MbUnit/Refly.dll
Binary file not shown
View
BIN  Tools/MbUnit/TestDriven.Framework.dll
Binary file not shown
View
5,483 Tools/MbUnit/TestFu.XML
5,483 additions, 0 deletions not shown
View
BIN  Tools/MbUnit/TestFu.dll
Binary file not shown
View
BIN  Tools/MbUnit/XsdTidy.exe
Binary file not shown
View
BIN  Tools/MbUnit/log4net.dll
Binary file not shown
View
BIN  Tools/MbUnit/uninst.exe
Binary file not shown
View
6 Tools/MbUnit/users.txt
@@ -0,0 +1,6 @@
+Id Name Email
+1 ayende ayende@example.org
+2 foo foo@example.org
+3 bar bar@example.org
+4 brak brak@example.org
+5 snar snar@example.org
View
BIN  Tools/zip.exe
Binary file not shown
View
2  acknowledgements.txt
@@ -0,0 +1,2 @@
+Rhino DSL wouldn't have been possible without the tremendous support of the Boo language community (http://boo.codehaus.org)
+Thank you guys, you have been invaluable
View
BIN  ayende-open-source.snk
Binary file not shown
View
61 default.ps1
@@ -0,0 +1,61 @@
+properties {
+ $base_dir = resolve-path .
+ $lib_dir = "$base_dir\SharedLibs"
+ $build_dir = "$base_dir\build"
+ $buildartifacts_dir = "$build_dir\"
+ $sln_file = "$base_dir\Rhino.DSL-vs2008.sln"
+ $version = "1.0.0.0"
+ $tools_dir = "$base_dir\Tools"
+ $release_dir = "$base_dir\Release"
+}
+
+task default -depends Release
+
+task Clean {
+ remove-item -force -recurse $buildartifacts_dir -ErrorAction SilentlyContinue
+ remove-item -force -recurse $release_dir -ErrorAction SilentlyContinue
+}
+
+task Init -depends Clean {
+ . .\psake_ext.ps1
+ Generate-Assembly-Info `
+ -file "$base_dir\Rhino.DSL\Properties\AssemblyInfo.cs" `
+ -title "Rhino DSL $version" `
+ -description "DSL Library for Boo" `
+ -company "Hibernating Rhinos" `
+ -product "DSL Library for Boo $version" `
+ -version $version `
+ -clsCompliant "false" `
+ -copyright "Hibernating Rhinos & Ayende Rahien 2007 - 2009"
+
+ Generate-Assembly-Info `
+ -file "$base_dir\Rhino.DSL.Tests\Properties\AssemblyInfo.cs" `
+ -title "Rhino DSL Tests $version" `
+ -description "DSL Library for Boo" `
+ -company "Hibernating Rhinos" `
+ -product "DSL Library for Boo $version" `
+ -version $version `
+ -copyright "Hibernating Rhinos & Ayende Rahien 2007 - 2009"
+
+ new-item $release_dir -itemType directory
+ new-item $buildartifacts_dir -itemType directory
+ cp $tools_dir\MbUnit\*.* $build_dir
+}
+
+task Compile -depends Init {
+ exec msbuild "/p:OutDir=""$buildartifacts_dir "" $sln_file"
+}
+
+task Test -depends Compile {
+ $old = pwd
+ cd $build_dir
+ exec ".\MbUnit.Cons.exe" "$build_dir\Rhino.DSL.Tests.dll"
+ cd $old
+}
+
+task Release -depends Test {
+ & $tools_dir\zip.exe -9 -A -j $release_dir\Rhino.DSL.zip $build_dir\Rhino.DSL.dll $build_dir\Rhino.DSL.xml license.txt acknowledgements.txt
+ if ($lastExitCode -ne 0) {
+ throw "Error: Failed to execute ZIP command"
+ }
+}
View
25 license.txt
@@ -0,0 +1,25 @@
+Copyright (c) 2005 - 2009 Ayende Rahien (ayende@ayende.com)
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+ * Neither the name of Ayende Rahien nor the names of its
+ contributors may be used to endorse or promote products derived from this
+ software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
View
311 psake.ps1
@@ -0,0 +1,311 @@
+# psake v0.22
+# Copyright © 2009 James Kovacs
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
+param(
+ [string]$buildFile = 'default.ps1',
+ [string[]]$taskList = @(),
+ [string]$framework = '3.5',
+ [switch]$debug = $false,
+ [switch]$help = $false,
+ [switch]$timing = $false,
+ [switch]$docs = $false
+)
+
+if($help) {
+@"
+psake [buildFile] [tasks] [-framework ver] [-debug] [-timing] [-docs]
+ where buildFile is the name of the build file, (default: default.ps1)
+ tasks is a list of tasks to execute from the build file,
+ ver is the .NET Framework version to target - 1.0, 1.1, 2.0, 3.0, or 3.5 (default)
+ debug dumps information on the properties, includes, and tasks, as well as more detailed error information.
+ timing prints a report showing how long each task took to execute
+ docs prints a list of available tasks
+
+psake -help
+ Displays this message.
+"@
+ return
+}
+
+$global:tasks = @{}
+$global:properties = @()
+$global:includes = New-Object System.Collections.Queue
+$global:psake_version = "0.22"
+$global:psake_buildScript = $buildFile
+$global:psake_frameworkVersion = $framework
+
+$script:executedTasks = New-Object System.Collections.Stack
+$script:callStack = New-Object System.Collections.Stack
+$script:originalEnvPath = $env:path
+$script:originalDirectory = Get-Location
+$originalErrorActionPreference = $Global:ErrorActionPreference
+
+function task([string]$name=$null, [scriptblock]$action = $null, [scriptblock]$precondition = $null, [scriptblock]$postcondition = $null, [switch]$continueOnError = $false, [string[]]$depends = @(), [string]$description = $null) {
+ if (($name -eq $null) -or ($name.Trim() -eq "")) {
+ throw "Error: Task must have a name"
+ }
+ if($name.ToLower() -eq 'default' -and $action -ne $null) {
+ throw "Error: Default task cannot specify an action"
+ }
+ $newTask = @{
+ Name = $name
+ DependsOn = $depends
+ Action = $action
+ Precondition = $precondition
+ Postcondition = $postcondition
+ ContinueOnError = $continueOnError
+ Description = $description
+ }
+ if($global:tasks.$name -ne $null) { throw "Error: Task, $name, has already been defined." }
+ $global:tasks.$name = $newTask
+}
+
+function properties([scriptblock]$propertyBlock) {
+ $global:properties += $propertyBlock
+}
+
+function include([string]$include){
+ if (!(test-path $include)) { throw "Error: $include not found."}
+ $global:includes.Enqueue((Resolve-Path $include));
+}
+
+function AssertNotCircular([string]$name) {
+ if($script:callStack.Contains($name)) {
+ throw "Error: Circular reference found for task, $name"
+ }
+}
+
+function ExecuteTask([string]$name) {
+ if($script:executedTasks.Contains($name)) { return }
+ AssertNotCircular $name
+ $script:callStack.Push($name)
+
+ $task = $global:tasks.$name
+ foreach($childTask in $task.DependsOn) {
+ ExecuteTask $childTask
+ }
+ if($name -ne 'default') {
+ $stopwatch = [System.Diagnostics.Stopwatch]::StartNew()
+ $precondition = $true
+ if($task.Precondition -ne $null) {
+ $precondition = (& $task.Precondition)
+ }
+ "Executing task, $name..."
+ if($task.Action -ne $null) {
+ if($precondition) {
+ trap {
+ if ($task.ContinueOnError) {
+ "-"*70
+ "Error in Task [$name] $_"
+ "-"*70
+ continue
+ } else {
+ throw $_
+ }
+ }
+ & $task.Action
+ $postcondition = $true
+ if($task.Postcondition -ne $null) {
+ $postcondition = (& $task.Postcondition)
+ }
+ if (!$postcondition) {
+ throw "Error: Postcondition failed for $name"
+ }
+ } else {
+ "Precondition was false not executing $name"
+ }
+ }
+ $stopwatch.stop()
+ $task.Duration = $stopwatch.Elapsed
+ }
+
+ $poppedTask = $script:callStack.Pop()
+ if($poppedTask -ne $name) {
+ throw "Error: CallStack was corrupt. Expected $name, but got $poppedTask."
+ }
+ $script:executedTasks.Push($name)
+}
+
+function Dump-Tasks {
+ 'Dumping tasks:'
+ foreach($key in $global:tasks.Keys) {
+ $task = $global:tasks.$key;
+ $task.Name + " depends on " + $task.DependsOn.Length + " other tasks: " + $task.DependsOn;
+ }
+ "`n"
+}
+
+function Dump-Properties {
+ 'Dumping properties:'
+ $global:properties
+}
+
+function Dump-Includes {
+ 'Dumping includes:'
+ $global:includes
+}
+
+function Configure-BuildEnvironment {
+ $version = $null
+ switch ($framework) {
+ '1.0' { $version = 'v1.0.3705' }
+ '1.1' { $version = 'v1.1.4322' }
+ '2.0' { $version = 'v2.0.50727' }
+ '3.0' { $version = 'v2.0.50727' } # .NET 3.0 uses the .NET 2.0 compilers
+ '3.5' { $version = 'v3.5' }
+ default { throw "Error: Unknown .NET Framework version, $framework" }
+ }
+ $frameworkDir = "$env:windir\Microsoft.NET\Framework\$version\"
+ if(!(test-path $frameworkDir)) {
+ throw "Error: No .NET Framework installation directory found at $frameworkDir"
+ }
+ $env:path = "$frameworkDir;$env:path"
+ $global:ErrorActionPreference = "Stop"
+}
+
+function Cleanup-Environment {
+ $env:path = $script:originalEnvPath
+ Set-Location $script:originalDirectory
+ $global:ErrorActionPreference = $originalErrorActionPreference
+ remove-variable tasks -scope "global"
+ remove-variable properties -scope "global"
+ remove-variable includes -scope "global"
+ remove-variable psake_* -scope "global"
+}
+
+#borrowed from Jeffrey Snover http://blogs.msdn.com/powershell/archive/2006/12/07/resolve-error.aspx
+function Resolve-Error($ErrorRecord=$Error[0]) {
+ $ErrorRecord | Format-List * -Force
+ $ErrorRecord.InvocationInfo | Format-List *
+ $Exception = $ErrorRecord.Exception
+ for ($i = 0; $Exception; $i++, ($Exception = $Exception.InnerException)) {
+ "$i" * 70
+ $Exception | Format-List * -Force
+ }
+}
+
+function Write-Documentation {
+ $list = New-Object System.Collections.ArrayList
+ foreach($key in $global:tasks.Keys) {
+ if($key -eq "default") {
+ continue;
+ }
+ $task = $global:tasks.$key;
+ $content = "" | Select-Object Name, Description
+ $content.Name = $task.Name
+ $content.Description = $task.Description
+ $index = $list.Add($content);
+ }
+
+ $list | Sort 'Name' | Format-Table -Auto
+}
+
+function exec([string]$command, [string]$parameters) {
+ & $command $parameters
+ if ($lastExitCode -ne 0) {
+ throw "Error: Failed to execute ""$command"" with parameters ""$parameters"""
+ }
+}
+
+function Run-Psake {
+ trap {
+ Cleanup-Environment
+ Write-Host -foregroundcolor Red $_
+ if($debug) {
+ "-" * 80
+ "An Error Occurred. See Error Details Below:"
+ "-" * 80
+ Resolve-Error
+ "-" * 80
+ }
+ exit(1)
+ }
+
+ $stopwatch = [System.Diagnostics.Stopwatch]::StartNew()
+
+ # Execute the build file to set up the tasks and defaults
+ if(test-path $buildFile) {
+ $buildFile = resolve-path $buildFile
+ set-location (split-path $buildFile)
+ & $buildFile
+ } else {
+ throw "Error: Could not find the build file, $buildFile."
+ }
+
+ if($debug) {
+ Dump-Includes
+ Dump-Properties
+ Dump-Tasks
+ }
+
+ Configure-BuildEnvironment
+
+ # N.B. The initial dot (.) indicates that variables initialized/modified
+ # in the propertyBlock are available in the parent scope.
+ while ($global:includes.Count -gt 0) {
+ $includeBlock = $global:includes.Dequeue();
+ . $includeBlock;
+ }
+ foreach($propertyBlock in $global:properties) {
+ . $propertyBlock
+ }
+
+ if($docs) {
+ Write-Documentation
+ Cleanup-Environment
+ exit(0)
+ }
+
+ # Execute the list of tasks or the default task
+ if($taskList.Length -ne 0) {
+ foreach($task in $taskList) {
+ ExecuteTask $task
+ }
+ } elseif ($global:tasks.default -ne $null) {
+ ExecuteTask default
+ } else {
+ throw 'Error: default task required'
+ }
+
+ $stopwatch.Stop()
+
+ if ($timing) {
+ "-"*70
+ "Build Time Report"
+ "-"*70
+ $list = @()
+ while ($script:executedTasks.Count -gt 0) {
+ $name = $script:executedTasks.Pop()
+ $task = $global:tasks.$name
+ if($name -eq "default") {
+ continue;
+ }
+ $list += "" | Select-Object @{Name="Name";Expression={$name}}, @{Name="Duration";Expression={$task.Duration}}
+ }
+ [Array]::Reverse($list)
+ $list += "" | Select-Object @{Name="Name";Expression={"Total:"}}, @{Name="Duration";Expression={$stopwatch.Elapsed}}
+ $list | Format-Table -Auto | Out-String -Stream | ? {$_} # using "Out-String -Stream" to filter out the blank line that Format-Table prepends
+ }
+
+ # Clear out any global variables
+ Cleanup-Environment
+}
+
+Run-Psake
View
40 psake_ext.ps1
@@ -0,0 +1,40 @@
+function Generate-Assembly-Info
+{
+param(
+ [string]$clsCompliant = "true",
+ [string]$title,
+ [string]$description,
+ [string]$company,
+ [string]$product,
+ [string]$copyright,
+ [string]$version,
+ [string]$file = $(throw "file is a required parameter.")
+)
+
+ $asmInfo = "using System;
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+[assembly: CLSCompliantAttribute($clsCompliant )]
+[assembly: ComVisibleAttribute(false)]
+[assembly: AssemblyTitleAttribute(""$title"")]
+[assembly: AssemblyDescriptionAttribute(""$description"")]
+[assembly: AssemblyCompanyAttribute(""$company"")]
+[assembly: AssemblyProductAttribute(""$product"")]
+[assembly: AssemblyCopyrightAttribute(""$copyright"")]
+[assembly: AssemblyVersionAttribute(""$version"")]
+[assembly: AssemblyInformationalVersionAttribute(""$version"")]
+[assembly: AssemblyFileVersionAttribute(""$version"")]
+[assembly: AssemblyDelaySignAttribute(false)]
+"
+
+ $dir = [System.IO.Path]::GetDirectoryName($file)
+ if ([System.IO.Directory]::Exists($dir) -eq $false)
+ {
+ Write-Host "Creating directory $dir"
+ [System.IO.Directory]::CreateDirectory($dir)
+ }
+ Write-Host "Generating assembly info file: $file"
+ Write-Output $asmInfo > $file
+}
Please sign in to comment.
Something went wrong with that request. Please try again.