Please get the latest version and let me know what you all think or if
you can break it - please let me know!
Example:
======================== nested.ps1 ===============================
Properties {
$x = 1
}
Task default -Depends RunNested1, RunNested2, CheckX
Task RunNested1 {
Invoke-psake .\nested\nested1.ps1
}
Task RunNested2 {
Invoke-psake .\nested\nested2.ps1
}
Task CheckX{
Assert ($x -eq 1) '$x was not 1'
}
======================== nested.ps1 ===============================
======================== nested1.ps1 ===============================
Properties {
$x = 100
}
Task default -Depends Nested1CheckX
Task Nested1CheckX{
Assert ($x -eq 100) '$x was not 100'
}
======================== nested1.ps1 ===============================
======================== nested2.ps1 ===============================
Properties {
$x = 200
}
Task default -Depends Nested2CheckX
Task Nested2CheckX{
Assert ($x -eq 200) '$x was not 200'
}
======================== nested2.ps1 ===============================
Here is the call to the main psake build script:
Invoke-psake .\examples\nested.ps1
======================== output ===============================
I've only just got a chance to try this out and my first tests worked!
I'll go and try this on my full build system at home (which will be
later today). I'm guessing that will be a bit more of a full on test
given that I've got about 6 different nested build scripts running :)
Out of curiosity (I haven't looked at the source yet) have you done
anything special with include files?
Thanks heaps for adding this!
Regards
Patrick
> --
> 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.
>
>