Permalink
Browse files

Updating psake

  • Loading branch information...
1 parent e1fd927 commit 090804150d7e671d68bdfa6c5ac7bb406f6b5229 @agross committed Jul 30, 2012
Showing with 741 additions and 371 deletions.
  1. BIN packages/psake.4.0.1.0/psake.4.0.1.0.nupkg
  2. +0 −14 packages/psake.4.0.1.0/tools/chocolateyInstall.ps1
  3. +0 −34 packages/psake.4.0.1.0/tools/examples/checkvariables.ps1
  4. +0 −9 packages/psake.4.0.1.0/tools/examples/parameters.ps1
  5. +0 −13 packages/psake.4.0.1.0/tools/examples/properties.ps1
  6. +0 −49 packages/psake.4.0.1.0/tools/psake-config.ps1
  7. +0 −7 packages/psake.4.0.1.0/tools/psake-help.ps1
  8. +0 −15 packages/psake.4.0.1.0/tools/psake.cmd
  9. +0 −30 packages/psake.4.0.1.0/tools/psake.ps1
  10. BIN packages/psake.4.2.0.1/psake.4.2.0.1.nupkg
  11. +2 −2 packages/{psake.4.0.1.0 → psake.4.2.0.1}/tools/README.markdown
  12. +19 −0 packages/psake.4.2.0.1/tools/chocolateyInstall.ps1
  13. +229 −18 packages/{psake.4.0.1.0 → psake.4.2.0.1}/tools/en-US/psake.psm1-help.xml
  14. +33 −0 packages/psake.4.2.0.1/tools/examples/checkvariables.ps1
  15. 0 packages/{psake.4.0.1.0 → psake.4.2.0.1}/tools/examples/continueonerror.ps1
  16. 0 packages/{psake.4.0.1.0 → psake.4.2.0.1}/tools/examples/default.ps1
  17. 0 packages/{psake.4.0.1.0 → psake.4.2.0.1}/tools/examples/formattaskname_scriptblock.ps1
  18. 0 packages/{psake.4.0.1.0 → psake.4.2.0.1}/tools/examples/formattaskname_string.ps1
  19. +8 −0 packages/psake.4.2.0.1/tools/examples/msbuild40.ps1
  20. 0 packages/{psake.4.0.1.0 → psake.4.2.0.1}/tools/examples/nested.ps1
  21. 0 packages/{psake.4.0.1.0 → psake.4.2.0.1}/tools/examples/nested/nested1.ps1
  22. 0 packages/{psake.4.0.1.0 → psake.4.2.0.1}/tools/examples/nested/nested2.ps1
  23. +9 −0 packages/psake.4.2.0.1/tools/examples/parameters.ps1
  24. 0 .../{psake.4.0.1.0 → psake.4.2.0.1}/tools/examples/passingParametersString/build.Release.Version.bat
  25. 0 packages/{psake.4.0.1.0 → psake.4.2.0.1}/tools/examples/passingParametersString/parameters.ps1
  26. 0 packages/{psake.4.0.1.0 → psake.4.2.0.1}/tools/examples/preandpostaction.ps1
  27. +18 −0 packages/psake.4.2.0.1/tools/examples/preandpostcondition.ps1
  28. +13 −0 packages/psake.4.2.0.1/tools/examples/properties.ps1
  29. +14 −0 packages/psake.4.2.0.1/tools/examples/requiredvariables.ps1
  30. +17 −0 packages/psake.4.2.0.1/tools/examples/tasksetupandteardown.ps1
  31. BIN packages/{psake.4.0.1.0 → psake.4.2.0.1}/tools/images/SakeBottle.jpg
  32. 0 packages/{psake.4.0.1.0 → psake.4.2.0.1}/tools/images/SakeBottleLicense.txt
  33. BIN packages/{psake.4.0.1.0 → psake.4.2.0.1}/tools/images/psake.pdn
  34. BIN packages/{psake.4.0.1.0 → psake.4.2.0.1}/tools/images/psake.png
  35. 0 packages/{psake.4.0.1.0 → psake.4.2.0.1}/tools/init.ps1
  36. +1 −2 packages/{psake.4.0.1.0 → psake.4.2.0.1}/tools/psake-buildTester.ps1
  37. +21 −0 packages/psake.4.2.0.1/tools/psake-config.ps1
  38. +11 −0 packages/psake.4.2.0.1/tools/psake.cmd
  39. +46 −0 packages/psake.4.2.0.1/tools/psake.ps1
  40. +218 −162 packages/{psake.4.0.1.0 → psake.4.2.0.1}/tools/psake.psm1
  41. +5 −0 packages/psake.4.2.0.1/tools/specs/Modules/ModuleA.psm1
  42. +4 −0 packages/psake.4.2.0.1/tools/specs/Modules/ModuleB.psm1
  43. 0 packages/{psake.4.0.1.0 → psake.4.2.0.1}/tools/specs/bad_PreAndPostActions_should_fail.ps1
  44. 0 packages/{psake.4.0.1.0 → psake.4.2.0.1}/tools/specs/calling_invoke-task_should_pass.ps1
  45. 0 packages/{psake.4.0.1.0 → psake.4.2.0.1}/tools/specs/circular_dependency_in_tasks_should_fail.ps1
  46. 0 packages/{psake.4.0.1.0 → psake.4.2.0.1}/tools/specs/default_task_with_action_should_fail.ps1
  47. 0 packages/{psake.4.0.1.0 → psake.4.2.0.1}/tools/specs/dotNet4_should_pass.ps1
  48. +4 −0 packages/psake.4.2.0.1/tools/specs/duplicate_alias_should_fail.ps1
  49. 0 packages/{psake.4.0.1.0 → psake.4.2.0.1}/tools/specs/duplicate_tasks_should_fail.ps1
  50. +5 −0 ...sake.4.2.0.1/tools/specs/executing_module_function_that_depends_on_another_module_should_work.ps1
  51. 0 ...ages/{psake.4.0.1.0 → psake.4.2.0.1}/tools/specs/explicitly_specified_32bit_build_should_pass.ps1
  52. 0 packages/{psake.4.0.1.0 → psake.4.2.0.1}/tools/specs/failing_postcondition_should_fail.ps1
  53. 0 packages/{psake.4.0.1.0 → psake.4.2.0.1}/tools/specs/missing_task_should_fail.ps1
  54. 0 packages/{psake.4.0.1.0 → psake.4.2.0.1}/tools/specs/multiline_blocks_should_pass.ps1
  55. 0 packages/{psake.4.0.1.0 → psake.4.2.0.1}/tools/specs/nested/nested1.ps1
  56. 0 packages/{psake.4.0.1.0 → psake.4.2.0.1}/tools/specs/nested/nested2.ps1
  57. 0 packages/{psake.4.0.1.0 → psake.4.2.0.1}/tools/specs/nested_builds_should_pass.ps1
  58. 0 ...psake.4.0.1.0 → psake.4.2.0.1}/tools/specs/running_aspnet_compiler_under_dotNet35_should_pass.ps1
  59. 0 packages/{psake.4.0.1.0 → psake.4.2.0.1}/tools/specs/simple_properties_and_tasks_should_pass.ps1
  60. +5 −0 packages/psake.4.2.0.1/tools/specs/task_with_alias_and_dependencies_should_pass.ps1
  61. +3 −0 packages/psake.4.2.0.1/tools/specs/task_with_alias_should_pass.ps1
  62. 0 packages/{psake.4.0.1.0 → psake.4.2.0.1}/tools/specs/tasksetup_should_pass.ps1
  63. 0 packages/{psake.4.0.1.0 → psake.4.2.0.1}/tools/specs/using_PreAndPostActions_should_pass.ps1
  64. +23 −0 packages/psake.4.2.0.1/tools/specs/using_initialization_block_should_pass.ps1
  65. 0 packages/{psake.4.0.1.0 → psake.4.2.0.1}/tools/specs/using_msbuild_should_pass.ps1
  66. 0 packages/{psake.4.0.1.0 → psake.4.2.0.1}/tools/specs/using_parameters_should_pass.ps1
  67. 0 packages/{psake.4.0.1.0 → psake.4.2.0.1}/tools/specs/using_postcondition_should_pass.ps1
  68. 0 packages/{psake.4.0.1.0 → psake.4.2.0.1}/tools/specs/using_precondition_should_pass.ps1
  69. 0 packages/{psake.4.0.1.0 → psake.4.2.0.1}/tools/specs/using_properties_should_pass.ps1
  70. +10 −0 packages/psake.4.2.0.1/tools/specs/using_required_when_not_set_should_fail.ps1
  71. +9 −0 packages/psake.4.2.0.1/tools/specs/using_required_when_set_should_pass.ps1
  72. +13 −15 packages/{psake.4.0.1.0 → psake.4.2.0.1}/tools/specs/writing_psake_variables_should_pass.ps1
  73. 0 packages/{psake.4.0.1.0 → psake.4.2.0.1}/tools/tabexpansion/PsakeTabExpansion.ps1
  74. 0 packages/{psake.4.0.1.0 → psake.4.2.0.1}/tools/tabexpansion/Readme.PsakeTab.txt
  75. +1 −1 psake.cmd
Binary file not shown.
@@ -1,14 +0,0 @@
-$nugetPath = 'C:\NuGet'
-$nugetExePath = Join-Path $nuGetPath 'bin'
-$packageBatchFileName = Join-Path $nugetExePath "psake.bat"
-
-$psakeDir = (Split-Path -parent $MyInvocation.MyCommand.Definition)
-#$path = ($psakeDir | Split-Path | Join-Path -ChildPath 'psake.cmd')
-$path = Join-Path $psakeDir 'psake.cmd'
-Write-Host "Adding $packageBatchFileName and pointing to $path"
-"@echo off
-""$path"" %*" | Out-File $packageBatchFileName -encoding ASCII
-
-
-write-host "PSake is now ready. You can type 'psake' from any command line at any path. Get started by typing 'psake /?'"
-Start-Sleep 6
@@ -1,34 +0,0 @@
-Properties {
- $x = 1
- $y = 2
-}
-
-FormatTaskName "[{0}]"
-
-Task default -Depends Verify
-
-Task Verify -Description "This task verifies psake's variables" {
-
- $assertions = @(
- ((Test-Path 'variable:\psake'), "'psake' variable was not exported from module"),
- (($variable:psake.ContainsKey("build_success")), "psake variable does not contain 'build_success'"),
- (($variable:psake.ContainsKey("version")), "psake variable does not contain 'version'"),
- (($variable:psake.ContainsKey("build_script_file")), "psake variable does not contain 'build_script_file'"),
- (($variable:psake.ContainsKey("framework_version")), "psake variable does not contain 'framework_version'"),
- ((!$variable:psake.build_success), 'psake.build_success should be $false'),
- ((![string]::IsNullOrEmpty($variable:psake.version)), 'psake.version was null or empty'),
- (($variable:psake.build_script_file -ne $null), '$psake.build_script_file was null'),
- (($variable:psake.build_script_file.Name -eq "checkvariables.ps1"), ("psake variable: {0} was not equal to 'VerifyVariables.ps1'" -f $psake.build_script_file.Name)),
- ((![string]::IsNullOrEmpty($variable:psake.framework_version)), 'psake variable: $psake.framework_version was null or empty'),
- (($variable:psake.context.Peek().tasks.Count -ne 0), 'psake variable: $tasks had length zero'),
- (($variable:psake.context.Peek().properties.Count -ne 0), 'psake variable: $properties had length zero'),
- (($variable:psake.context.Peek().includes.Count -eq 0), 'psake variable: $includes should have had length zero'),
- (($variable:psake.context.Peek().formatTaskNameString -ne ""), 'psake variable: $formatTaskNameString was not set correctly'),
- (($variable:psake.context.Peek().currentTaskName -eq "Verify"), 'psake variable: $currentTaskName was not set correctly')
- )
-
- foreach ($assertion in $assertions)
- {
- Assert ( $assertion[0] ) $assertion[1]
- }
-}
@@ -1,9 +0,0 @@
-properties {
- $my_property = $p1 + $p2
-}
-
-task default -depends TestParams
-
-task TestParams {
- Assert ($my_property -ne $null) '$my_property should not be null'
-}
@@ -1,13 +0,0 @@
-properties {
- $x = $null
- $y = $null
- $z = $null
-}
-
-task default -depends TestProperties
-
-task TestProperties {
- Assert ($x -ne $null) "x should not be null"
- Assert ($y -ne $null) "y should not be null"
- Assert ($z -eq $null) "z should be null"
-}
@@ -1,49 +0,0 @@
-#-------------------------------------------------------------------
-#Specify defaults and do not auto-load modules
-#-------------------------------------------------------------------
-$psake.config = new-object psobject -property @{
- defaultBuildFileName="default.ps1";
- taskNameFormat="Executing {0}";
- exitCode="1";
- verboseError=$false;
- modules=(new-object psobject -property @{ autoload=$false })
-}
-
-<#
--------------------------------------------------------------------
-Specify defaults and auto-load modules from .\modules folder
--------------------------------------------------------------------
-$psake.config = new-object psobject -property @{
- defaultBuildFileName="default.ps1";
- taskNameFormat="Executing {0}";
- exitCode="1";
- verboseError=$false;
- modules=(new-object psobject -property @{ autoload=$true})
-}
-
--------------------------------------------------------------------
-Specify defaults and auto-load modules from .\my_modules folder
--------------------------------------------------------------------
-$psake.config = new-object psobject -property @{
- defaultBuildFileName="default.ps1";
- taskNameFormat="Executing {0}";
- exitCode="1";
- verboseError=$false;
- modules=(new-object psobject -property @{ autoload=$true; directory=".\my_modules" })
-}
-
--------------------------------------------------------------------
-Specify defaults and explicitly load module(s)
--------------------------------------------------------------------
-$psake.config = new-object psobject -property @{
- defaultBuildFileName="default.ps1";
- taskNameFormat="Executing {0}";
- exitCode="1";
- verboseError=$false;
- modules=(new-object psobject -property @{
- autoload=$false;
- module=(new-object psobject -property @{path="c:\module1dir\module1.ps1"}),
- (new-object psobject -property @{path="c:\module1dir\module2.ps1"})
- })
-}
-#>
@@ -1,7 +0,0 @@
-# Helper script to return help text.
-
-remove-module psake -ea 'SilentlyContinue'
-$scriptPath = Split-Path -parent $MyInvocation.MyCommand.path
-import-module (join-path $scriptPath psake.psm1)
-Get-Help Invoke-psake -full
-exit $lastexitcode
@@ -1,15 +0,0 @@
-@echo off
-
-SET DIR=%~dp0%
-
-if '%1'=='/?' goto usage
-if '%1'=='-?' goto usage
-if '%1'=='?' goto usage
-if '%1'=='/help' goto usage
-if '%1'=='help' goto usage
-
-powershell -NoProfile -ExecutionPolicy unrestricted -Command "& '%DIR%psake.ps1' %*"
-
-goto :eof
-:usage
-powershell -NoProfile -ExecutionPolicy unrestricted -Command "& '%DIR%psake-help.ps1'"
@@ -1,30 +0,0 @@
-# Helper script for those who want to run psake without importing the module.
-# Example:
-# .\psake.ps1 "default.ps1" "BuildHelloWord" "4.0"
-
-# Must match parameter definitions for psake.psm1/invoke-psake
-# otherwise named parameter binding fails
-param(
- [Parameter(Position=0,Mandatory=0)]
- [string]$buildFile = 'default.ps1',
- [Parameter(Position=1,Mandatory=0)]
- [string[]]$taskList = @(),
- [Parameter(Position=2,Mandatory=0)]
- [string]$framework = '3.5',
- [Parameter(Position=3,Mandatory=0)]
- [switch]$docs = $false,
- [Parameter(Position=4,Mandatory=0)]
- [System.Collections.Hashtable]$parameters = @{},
- [Parameter(Position=5, Mandatory=0)]
- [System.Collections.Hashtable]$properties = @{}
-)
-
-remove-module psake -ea 'SilentlyContinue'
-$scriptPath = Split-Path -parent $MyInvocation.MyCommand.path
-import-module (join-path $scriptPath psake.psm1)
-if (-not(test-path $buildFile))
-{
- $buildFile = (join-path $scriptPath $buildFile)
-}
-invoke-psake $buildFile $taskList $framework $docs $parameters $properties
-exit $lastexitcode
Binary file not shown.
@@ -39,9 +39,9 @@ If you encounter the following error "Import-Module : ...psake.psm1 cannot be lo
If you'd like to get involved with psake, we have discussion groups over at google: **[psake-dev](http://groups.google.com/group/psake-dev)** **[psake-users](http://groups.google.com/group/psake-users)**
-Anyone can fork the main repository and submit patches, as well. And lastly, the [wiki](http://wiki.github.com/JamesKovacs/psake/) and [issues list](http://github.com/JamesKovacs/psake/issues) are also open for additions, edits, and discussion.
+Anyone can fork the main repository and submit patches, as well. And lastly, the [wiki](http://wiki.github.com/psake/psake/) and [issues list](http://github.com/psake/psake/issues) are also open for additions, edits, and discussion.
-Also check out the **[psake-contrib](http://github.com/JamesKovacs/psake-contrib)** project for scripts,modules and functions to help you with a build
+Also check out the **[psake-contrib](http://github.com/psake/psake-contrib)** project for scripts,modules and functions to help you with a build
## Contributors
@@ -0,0 +1,19 @@
+try {
+ $nugetPath = $env:ChocolateyInstall
+ $nugetExePath = Join-Path $nuGetPath 'bin'
+ $packageBatchFileName = Join-Path $nugetExePath "psake.bat"
+
+ $psakeDir = (Split-Path -parent $MyInvocation.MyCommand.Definition)
+ #$path = ($psakeDir | Split-Path | Join-Path -ChildPath 'psake.cmd')
+ $path = Join-Path $psakeDir 'psake.cmd'
+ Write-Host "Adding $packageBatchFileName and pointing to $path"
+ "@echo off
+ ""$path"" %*" | Out-File $packageBatchFileName -encoding ASCII
+
+ write-host "PSake is now ready. You can type 'psake' from any command line at any path. Get started by typing 'psake /?'"
+
+ Write-ChocolateySuccess 'psake'
+} catch {
+ Write-ChocolateyFailure 'psake' "$($_.Exception.Message)"
+ throw
+}
Oops, something went wrong.

0 comments on commit 0908041

Please sign in to comment.