Add stop task for vagrant which wraps all halt tasks, instead of using clean

This commit is contained in:
Ryan Ernst 2016-04-06 14:14:46 -07:00
parent 6e44ddaf0e
commit 19567fb794
1 changed files with 6 additions and 1 deletions

View File

@ -90,6 +90,11 @@ task clean(type: Delete) {
delete buildDir
}
task stop {
group 'Verification'
description 'Stop any tasks from tests that still may be running'
}
File testRoot = new File("$buildDir/testroot")
task createTestRoot {
outputs.dir testRoot
@ -153,7 +158,7 @@ for (String box : availableBoxes) {
boxName box
commandLine 'halt', box
}
clean.dependsOn(halt)
stop.dependsOn(halt)
if (boxes.contains(box) == false) {
// we only need a halt task if this box was not specified
continue;