Commit d2d62d1

mo_khan <mo@mokhan.ca>
2009-05-10 17:26:30
removed dead dependencies -updated build to run bdd.doc
1 parent 49c8e94
build/tools/mage.scrub/Castle.Core.dll
Binary file
build/tools/mage.scrub/Castle.DynamicProxy2.dll
Binary file
build/tools/mage.scrub/Castle.MicroKernel.dll
Binary file
build/tools/mage.scrub/Castle.Windsor.dll
Binary file
build/tools/mage.scrub/log4net.config.xml
@@ -1,17 +0,0 @@
-<log4net>
-	<appender name='RollingFileAppender' type='log4net.Appender.RollingFileAppender'>
-		<file value='logs/log.txt' />
-		<appendToFile value='true' />
-		<rollingStyle value='Size' />
-		<maxSizeRollBackups value='10' />
-		<maximumFileSize value='100000KB' />
-		<staticLogFileName value='true' />
-		<layout type='log4net.Layout.PatternLayout'>
-			<conversionPattern value='%d [%t] %-5p %c - %m%n' />
-		</layout>
-	</appender>
-	<root>
-		<level value='DEBUG' />
-		<appender-ref ref='RollingFileAppender' />			
-	</root>
-</log4net>
build/tools/mage.scrub/log4net.dll
Binary file
build/tools/mage.scrub/mage.scrub.exe
Binary file
build/tools/mage.scrub/mage.scrub.pdb
Binary file
build/tools/psake/build_utilities.ps1
@@ -1,127 +0,0 @@
-  function combine_paths($path1,$path2)
-  {
-    return [System.IO.Path]::Combine($path1,$path2)
-  }
-
-  function touch($file_path)
-{
-  new-item -path $file_path -force -itemtype File
-}
-
-  function drop_folder($path)
-  {
-    if (test-path $path)
-    {
-      remove-item $path -force -recurse 
-    }
-  }
-
-  function make_folder($path)
-  {
-    new-item -path $path -type directory | out-null
-  }
-
-  function get_filename($full_path){
-    return [System.IO.Path]::GetFileName($full_path)
-  }
-
-  function process_sql_files($files,$sql_tool,$connection_string)
-  {
-    $files | foreach-object{ .$sql_tool $connection_string -i "$_" }
-  }
-
-  function copy_and_replace_tokens($template_file_path,$settings)
-  {
-    $contents = [System.IO.File]::ReadAllText($template_file_path)
-    $settings.keys | foreach-object{
-      $contents = $contents.Replace("@${_}@",$settings[$_])
-    }
-    $new_file = strip_template_extension $template_file_path
-    [System.IO.File]::WriteAllText($new_file,$contents)
-  }
-
-  function files_have_changed($files_to_check,[System.String]$timestamp_file_path){
-    
-    $timestamp_exists = test-path $timestamp_file_path
-    if($timestamp_exists -eq $false){return $true}
-
-    $reference_file = get-item -path $timestamp_file_path
-    $last_write_time = $reference_file.LastWriteTime
-    $reference_file = $null
-
-    foreach($file in $files_to_check)
-    {
-      $actual_file = get-item -path $file
-      if($actual_file.LastWriteTime -gt $last_write_time)
-      {
-        $actual_file = $null
-        return $true
-      }
-    }
-      return $false
-  }
-
-  function get_file_names($files)
-  {
-    $file_names = new-object -typename System.Collections.ArrayList
-    foreach ($file in $files)
-    {
-      [void]$file_names.Add($file.FullName)
-    }
-    return $file_names.ToArray()
-  }
-
-  function strip_template_extension($path){
-    if ($path.EndsWith(".template"))
-    { 
-      return $path.Replace(".template","")
-    }
-    return $path
-  }
-
-  function expand_all_template_files($files,$settings)
-  {
-    $files | foreach-object{ copy_and_replace_tokens $_ $settings}
-  }
-
-  function kill_exe($name){
-    taskkill "/f /im $name /fi 'STATUS eq RUNNING'"
-  }
-
-  function make_iis_dir($application_name,$path){
-    $directory_entry = new-object System.DirectoryServices.DirectoryEntry -argumentList "IIS://localhost/W3SVC/1/Root"
-    $child_directories = $directory_entry.psbase.Children
-    $child_directories | where {$_.psbase.path.contains($application_name)} |foreach-object {
-      $child_directories.remove($_)
-    }
-
-    $virtual_directory = $child_directories.Add($application_name,"IISWebVirtualDir")
-    $virtual_directory.psbase.CommitChanges()
-    $virtual_directory.psbase.Properties["Path"][0]= $path
-    $virtual_directory.AppFriendlyName = $application_name
-    $virtual_directory.psbase.CommitChanges()
-    $virtual_directory.psbase.Invoke("AppCreate",$false)
-  }
-
-  function add_iis_mapping($application_name,$check_file_exists,$extension,$verbs,$executable){
-    $mapping = "$extension,$executable,"
-
-    if ($check_file_exists)
-    {
-      $mapping = $mapping + "5"
-    }
-    else
-    {
-      $mapping = $mapping + "1"
-    }
-    $mapping = $mapping + ",$verbs"
-    $directory_entry = new-object System.DirectoryServices.DirectoryEntry -argumentList "IIS://localhost/W3SVC/1/Root/$application_name"
-
-    if ($directory_entry -ne $null)
-    {
-      $directory_entry.psbase.RefreshCache()
-      $directory_entry.ScriptMaps.Add($mapping)
-      $directory_entry.psbase.CommitChanges()
-      $directory_entry.psbase.Close()
-    }
-  }
build/tools/psake/psake.ps1
@@ -1,186 +0,0 @@
-# psake v0.11
-# Copyright � 2008 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
-)
-
-
-
-if($help) {
-@"
-psake [buildFile] [tasks] [-framework ver] [-debug]
-  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
-            3.5 is the default
-        debug dumps information the tasks.
-psake -help
-  Displays this message.
-"@
-  return
-}
-
-$global:tasks = @{}
-$global:properties = @()
-$script:executedTasks = New-Object System.Collections.Stack
-$script:callStack = New-Object System.Collections.Stack
-$originalEnvPath = $env:path
-$originalDirectory = Get-Location
-
-function task([string]$name, [scriptblock]$action = $null, [string[]]$depends = @()) {
-  if($name -eq 'default' -and $action -ne $null) {
-    throw "Error: default task cannot specify an action"
-  }
-  $newTask = @{
-    Name = $name
-    DependsOn = $depends
-    Action = $action
-  }
-  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 AssertNotCircular([string]$name) {
-  if($script:callStack.Contains($name)) {
-    throw "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') {
-    Write-Host "Executing task, $name..."
-    if($task.Action -ne $null) {
-      & $task.Action
-    }
-    Write-Host "`n"
-  }
-  
-  $poppedTask = $script:callStack.Pop()
-  if($poppedTask -ne $name) {
-    throw "CallStack was corrupt. Expected $name, but got $poppedTask."
-  }
-  $script:executedTasks.Push($name)
-}
-
-function DumpTasks {
-  Write-Host 'Dumping tasks:'
-  foreach($key in $global:tasks.Keys) {
-    $task = $global:tasks.$key;
-    $task.Name + " depends on " + $task.DependsOn.Length + " other tasks: " + $task.DependsOn;
-  }
-  Write-Host "`n"
-}
-
-function DumpProperties {
-  Write-Host 'Dumping properties:'
-  $global:properties
-}
-
-function ConfigureEnvForBuild {
-  $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"
-}
-
-function Cleanup {
-  $env:path = $originalEnvPath
-  $global:tasks = $null
-  Set-Location $originalDirectory
-}
-
-function RunBuild {
-  # Faking a finally block
-  trap {
-    Write-Host -foregroundcolor Red $_
-    Cleanup
-    break
-  }
-
-  # 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) {
-    DumpProperties
-    DumpTasks
-  }
-
-  ConfigureEnvForBuild
-
-
-  foreach($propertyBlock in $global:properties) {
-    . $propertyBlock
-  }
-
-
-  # 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
-  }
-
-  # Clear out any global variables
-  Cleanup
-}
-
-# Avoids printing of error dump with line numbers
-trap {
- # continue
-}
-
-RunBuild
-
build/tools/spec.dox/Castle.Core.dll
Binary file
build/tools/spec.dox/Castle.DynamicProxy2.dll
Binary file
build/tools/spec.dox/Castle.MicroKernel.dll
Binary file
build/tools/spec.dox/Castle.Windsor.dll
Binary file
build/tools/spec.dox/spec.dox.exe
Binary file
build/Gorilla.Commons.Build.csproj
@@ -45,7 +45,6 @@
     <Reference Include="System.Xml" />
   </ItemGroup>
   <ItemGroup>
-    <None Include="build.bat" />
     <None Include="config\AssemblyInfo.cs.template" />
     <None Include="config\bootStrap.xml.template" />
     <None Include="config\log4net.config.xml.template" />
@@ -76,4 +75,4 @@
   <Target Name="AfterBuild">
   </Target>
   -->
-</Project>
+</Project>
\ No newline at end of file
build/project.build
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8" ?>
-<project name="gorilla.commons">	
+  <project name="gorilla.commons">	
 	<property name="project.name" value="${project::get-name()}" />
 
 	<property name="base.dir" value="${directory::get-parent-directory(project::get-base-directory())}" />
build/project.install.build
@@ -6,8 +6,7 @@
 	<target name="load_local_properties">
 	    <property name="application.manifest" value="${installation.dir}\${assembly.version}\${app.output}.manifest" />
 	    <property name="deployment.manifest" value="${installation.dir}\${app.output}.application" />
-		<property name="mage.exe" value="${dot.net.sdk.dir}\mage.exe" />
-		<property name="mage.scrub.exe" value="${build.tools.dir}\mage.scrub\mage.scrub.exe" />
+  		<property name="mage.exe" value="${dot.net.sdk.dir}\mage.exe" />
 	</target>
 	
 	<target name="create.installation.dir" depends="deploy">
@@ -49,7 +48,6 @@
 		<property name="args.sign.deployment" value="-s ${deployment.manifest} -cf ${certificate.filename} -Password ${certificate.password}" />
 		
 		<exec program="${mage.exe}" commandline="${args.new.application}" />
-		<!--<exec program="${mage.scrub.exe}" commandline="${application.manifest}" />-->
 		<exec program="${mage.exe}" commandline="${args.sign.application}" />
 		<exec program="${mage.exe}" commandline="${args.new.deployment}" />
 		<exec program="${mage.exe}" commandline="${args.update.deployment}" />
build/project.test.reports.build
@@ -1,7 +1,6 @@
 <?xml version="1.0" encoding="utf-8" ?>
 <project name="project.test.reports">
-  <!--<property name="bdd.doc.exe" value="${build.tools.dir}\bdd.doc\bdddoc.console.exe" />-->
-  <property name="bdd.doc.exe" value="${build.tools.dir}\spec.dox\spec.dox.exe" />
+  <property name="bdd.doc.exe" value="${build.tools.dir}\bdd.doc\bdddoc.console.exe" />
   <property name="report.output.file" value="${build.compile.dir}\test.report.html" />
 
 	<target name="bdd.doc" depends="test.compile">