I've not picked up PS yet; hope this helps:
PS C:\ayende\rhino-esb\ayende-rhino-esb-7ce580b> Set-PSDebug -Trace 1
PS C:\ayende\rhino-esb\ayende-rhino-esb-7ce580b> C:\ayende\rhino-esb
\ayende-rhino-esb-7ce580b\psake.ps1
DEBUG: 1+ C:\ayende\rhino-esb\ayende-rhino-esb-7ce580b\psake.ps1
DEBUG: 31+ if($help) {
DEBUG: 47+ $global:tasks = @{}
DEBUG: 48+ $global:properties = @()
DEBUG: 49+ $global:includes = New-Object System.Collections.Queue
DEBUG: 50+ $global:psake_version = "0.22"
DEBUG: 51+ $global:psake_buildScript = $buildFile
DEBUG: 52+ $global:psake_frameworkVersion = $framework
DEBUG: 54+ $script:executedTasks = New-Object
System.Collections.Stack
DEBUG: 55+ $script:callStack = New-Object System.Collections.Stack
DEBUG: 56+ $script:originalEnvPath = $env:path
DEBUG: 57+ $script:originalDirectory = Get-Location
DEBUG: 58+ $originalErrorActionPreference =
$Global:ErrorActionPreference
DEBUG: 60+ function task([string]$name=$null, [scriptblock]$action =
$null, [scriptblock]$precondition = $null,
[scriptblock]$postcondition = $null, [switch]$continueOnError =
$false, [string[]]$depends = @(), [string]$description
= $null) {
DEBUG: 80+ function properties([scriptblock]$propertyBlock) {
DEBUG: 84+ function include([string]$include){
DEBUG: 89+ function AssertNotCircular([string]$name) {
DEBUG: 95+ function ExecuteTask([string]$name) {
DEBUG: 146+ function Dump-Tasks {
DEBUG: 155+ function Dump-Properties {
DEBUG: 160+ function Dump-Includes {
DEBUG: 165+ function Configure-BuildEnvironment {
DEBUG: 183+ function Cleanup-Environment {
DEBUG: 194+ function Resolve-Error($ErrorRecord=$Error[0]) {
DEBUG: 204+ function Write-Documentation {
DEBUG: 220+ function exec([string]$command, [string]$parameters) {
DEBUG: 227+ function Run-Psake {
DEBUG: 311+ Run-Psake
DEBUG: 241+ $stopwatch = [System.Diagnostics.Stopwatch]::StartNew()
DEBUG: 244+ if(test-path $buildFile) {
DEBUG: 245+ $buildFile = resolve-path $buildFile
DEBUG: 246+ set-location (split-path $buildFile)
DEBUG: 247+ & $buildFile
DEBUG: 1+ properties {
DEBUG: 81+ $global:properties += $propertyBlock
DEBUG: 12+ include .\psake_ext.ps1
DEBUG: 85+ if (!(test-path $include)) { throw "Error: $include not
found."}
DEBUG: 86+ $global:includes.Enqueue((Resolve-Path $include));
DEBUG: 14+ task default -depends Release
DEBUG: 61+ if (($name -eq $null) -or ($name.Trim() -eq "")) {
DEBUG: 64+ if($name.ToLower() -eq 'default' -and $action -ne
$null) {
DEBUG: 67+ $newTask = @{
DEBUG: 76+ if($global:tasks.$name -ne $null) { throw "Error: Task,
$name, has already been defined." }
DEBUG: 77+ $global:tasks.$name = $newTask
DEBUG: 16+ task Clean {
DEBUG: 61+ if (($name -eq $null) -or ($name.Trim() -eq "")) {
DEBUG: 64+ if($name.ToLower() -eq 'default' -and $action -ne
$null) {
DEBUG: 67+ $newTask = @{
DEBUG: 76+ if($global:tasks.$name -ne $null) { throw "Error: Task,
$name, has already been defined." }
DEBUG: 77+ $global:tasks.$name = $newTask
DEBUG: 21+ task Init -depends Clean {
DEBUG: 61+ if (($name -eq $null) -or ($name.Trim() -eq "")) {
DEBUG: 64+ if($name.ToLower() -eq 'default' -and $action -ne
$null) {
DEBUG: 67+ $newTask = @{
DEBUG: 76+ if($global:tasks.$name -ne $null) { throw "Error: Task,
$name, has already been defined." }
DEBUG: 77+ $global:tasks.$name = $newTask
DEBUG: 62+ task Compile -depends Init {
DEBUG: 61+ if (($name -eq $null) -or ($name.Trim() -eq "")) {
DEBUG: 64+ if($name.ToLower() -eq 'default' -and $action -ne
$null) {
DEBUG: 67+ $newTask = @{
DEBUG: 76+ if($global:tasks.$name -ne $null) { throw "Error: Task,
$name, has already been defined." }
DEBUG: 77+ $global:tasks.$name = $newTask
DEBUG: 66+ task Test -depends Compile {
DEBUG: 61+ if (($name -eq $null) -or ($name.Trim() -eq "")) {
DEBUG: 64+ if($name.ToLower() -eq 'default' -and $action -ne
$null) {
DEBUG: 67+ $newTask = @{
DEBUG: 76+ if($global:tasks.$name -ne $null) { throw "Error: Task,
$name, has already been defined." }
DEBUG: 77+ $global:tasks.$name = $newTask
DEBUG: 74+ task Release -depends Test{
DEBUG: 61+ if (($name -eq $null) -or ($name.Trim() -eq "")) {
DEBUG: 64+ if($name.ToLower() -eq 'default' -and $action -ne
$null) {
DEBUG: 67+ $newTask = @{
DEBUG: 76+ if($global:tasks.$name -ne $null) { throw "Error: Task,
$name, has already been defined." }
DEBUG: 77+ $global:tasks.$name = $newTask
DEBUG: 252+ if($debug) {
DEBUG: 258+ Configure-BuildEnvironment
DEBUG: 166+ $version = $null
DEBUG: 167+ switch ($framework) {
DEBUG: 172+ '3.5' { $version = 'v3.5' }
DEBUG: 175+ $frameworkDir = "$env:windir\Microsoft.NET\Framework\
$version\"
DEBUG: 176+ if(!(test-path $frameworkDir)) {
DEBUG: 179+ $env:path = "$frameworkDir;$env:path"
DEBUG: 180+ $global:ErrorActionPreference = "Stop"
DEBUG: 262+ while ($global:includes.Count -gt 0) {
DEBUG: 263+ $includeBlock = $global:includes.Dequeue();
DEBUG: 264+ . $includeBlock;
DEBUG: 1+ function Get-Git-Commit
DEBUG: 7+ function Generate-Assembly-Info
DEBUG: 266+ foreach($propertyBlock in $global:properties) {
DEBUG: 267+ . $propertyBlock
DEBUG: 2+ $base_dir = resolve-path .
DEBUG: 3+ $lib_dir = "$base_dir\SharedLibs"
DEBUG: 4+ $build_dir = "$base_dir\build"
DEBUG: 5+ $buildartifacts_dir = "$build_dir\"
DEBUG: 6+ $sln_file = "$base_dir\Rhino.ServiceBus.sln"
DEBUG: 7+ $version = "1.8.0.0"
DEBUG: 8+ $tools_dir = "$base_dir\Tools"
DEBUG: 9+ $release_dir = "$base_dir\Release"
DEBUG: 270+ if($docs) {
DEBUG: 277+ if($taskList.Length -ne 0) {
DEBUG: 282+ ExecuteTask default
DEBUG: 96+ if($script:executedTasks.Contains($name)) { return }
DEBUG: 97+ AssertNotCircular $name
DEBUG: 90+ if($script:callStack.Contains($name)) {
DEBUG: 98+ $script:callStack.Push($name)
DEBUG: 100+ $task = $global:tasks.$name
DEBUG: 101+ foreach($childTask in $task.DependsOn) {
DEBUG: 102+ ExecuteTask $childTask
DEBUG: 96+ if($script:executedTasks.Contains($name)) { return }
DEBUG: 97+ AssertNotCircular $name
DEBUG: 90+ if($script:callStack.Contains($name)) {
DEBUG: 98+ $script:callStack.Push($name)
DEBUG: 100+ $task = $global:tasks.$name
DEBUG: 101+ foreach($childTask in $task.DependsOn) {
DEBUG: 102+ ExecuteTask $childTask
DEBUG: 96+ if($script:executedTasks.Contains($name)) { return }
DEBUG: 97+ AssertNotCircular $name
DEBUG: 90+ if($script:callStack.Contains($name)) {
DEBUG: 98+ $script:callStack.Push($name)
DEBUG: 100+ $task = $global:tasks.$name
DEBUG: 101+ foreach($childTask in $task.DependsOn) {
DEBUG: 102+ ExecuteTask $childTask
DEBUG: 96+ if($script:executedTasks.Contains($name)) { return }
DEBUG: 97+ AssertNotCircular $name
DEBUG: 90+ if($script:callStack.Contains($name)) {
DEBUG: 98+ $script:callStack.Push($name)
DEBUG: 100+ $task = $global:tasks.$name
DEBUG: 101+ foreach($childTask in $task.DependsOn) {
DEBUG: 102+ ExecuteTask $childTask
DEBUG: 96+ if($script:executedTasks.Contains($name)) { return }
DEBUG: 97+ AssertNotCircular $name
DEBUG: 90+ if($script:callStack.Contains($name)) {
DEBUG: 98+ $script:callStack.Push($name)
DEBUG: 100+ $task = $global:tasks.$name
DEBUG: 101+ foreach($childTask in $task.DependsOn) {
DEBUG: 102+ ExecuteTask $childTask
DEBUG: 96+ if($script:executedTasks.Contains($name)) { return }
DEBUG: 97+ AssertNotCircular $name
DEBUG: 90+ if($script:callStack.Contains($name)) {
DEBUG: 98+ $script:callStack.Push($name)
DEBUG: 100+ $task = $global:tasks.$name
DEBUG: 101+ foreach($childTask in $task.DependsOn) {
DEBUG: 104+ if($name -ne 'default') {
DEBUG: 105+ $stopwatch = [System.Diagnostics.Stopwatch]::StartNew
()
DEBUG: 106+ $precondition = $true
DEBUG: 107+ if($task.Precondition -ne $null) {
DEBUG: 110+ "Executing task, $name..."
Executing task, Clean...
DEBUG: 111+ if($task.Action -ne $null) {
DEBUG: 112+ if($precondition) {
DEBUG: 123+ & $task.Action
DEBUG: 17+ remove-item -force -recurse $buildartifacts_dir -
ErrorAction SilentlyContinue
DEBUG: 18+ remove-item -force -recurse $release_dir -ErrorAction
SilentlyContinue
DEBUG: 124+ $postcondition = $true
DEBUG: 125+ if($task.Postcondition -ne $null) {
DEBUG: 128+ if (!$postcondition) {
DEBUG: 135+ $stopwatch.stop()
DEBUG: 136+ $task.Duration = $stopwatch.Elapsed
DEBUG: 139+ $poppedTask = $script:callStack.Pop()
DEBUG: 140+ if($poppedTask -ne $name) {
DEBUG: 143+ $script:executedTasks.Push($name)
DEBUG: 104+ if($name -ne 'default') {
DEBUG: 105+ $stopwatch = [System.Diagnostics.Stopwatch]::StartNew
()
DEBUG: 106+ $precondition = $true
DEBUG: 107+ if($task.Precondition -ne $null) {
DEBUG: 110+ "Executing task, $name..."
Executing task, Init...
DEBUG: 111+ if($task.Action -ne $null) {
DEBUG: 112+ if($precondition) {
DEBUG: 123+ & $task.Action
DEBUG: 22+ Generate-Assembly-Info `
DEBUG: 19+ $commit = Get-Git-Commit
DEBUG: 3+ $gitLog = git log --oneline -1
DEBUG: 4+ return $gitLog.Split(' ')[0]
DEBUG: 114+ if ($task.ContinueOnError) {
DEBUG: 120+ throw $_
DEBUG: 229+ Cleanup-Environment
DEBUG: 184+ $env:path = $script:originalEnvPath
DEBUG: 185+ Set-Location $script:originalDirectory
DEBUG: 186+ $global:ErrorActionPreference =
$originalErrorActionPreference
DEBUG: 187+ remove-variable tasks -scope "global"
DEBUG: 188+ remove-variable properties -scope "global"
DEBUG: 189+ remove-variable includes -scope "global"
DEBUG: 190+ remove-variable psake_* -scope "global"
DEBUG: 230+ Write-Host -foregroundcolor Red $_
You cannot call a method on a null-valued expression.
DEBUG: 231+ if($debug) {
DEBUG: 238+ exit(1)
PS C:\ayende\rhino-esb\ayende-rhino-esb-7ce580b>
> > > - Show quoted text -- Hide quoted text -