Updated psake

20 views
Skip to first unread message

Jorge Matos

unread,
Feb 9, 2010, 10:46:21 PM2/9/10
to psak...@googlegroups.com, psake...@googlegroups.com
Now psake has support for passing parameters to build scripts.
 
Please get the latest version and let me know what you all think.
 
Example:
 
Invoke-psake .\parameters.ps1 -parameters @{"p1"="v1";"p2"="v2"}
 
parameters.ps1
--------------------
properties {
 $p1 = $null
 $p2 = $null
}
 
task default -depends TestParams
 
task TestParams {
  Assert ($p1 -ne $null) "p1 should not be null"
  Assert ($p2 -ne $null) "p2 should not be null"
}

Joshua Poehls

unread,
Feb 9, 2010, 10:49:42 PM2/9/10
to psake-dev
Awesome! Thanks Jorge!

- Joshua Poehls


--
You received this message because you are subscribed to the Google Groups "psake-dev" group.
To post to this group, send email to psak...@googlegroups.com.
To unsubscribe from this group, send email to psake-dev+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/psake-dev?hl=en.

Reply all
Reply to author
Forward
0 new messages