File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 22
33@file:DependsOn(" com.offbytwo:docopt:0.6.0.20150202" )
44
5- import Deep_clean.CommandLineArguments
65import org.docopt.Docopt
76import java.io.File
87import java.nio.file.Files
98import java.nio.file.Paths
109import java.util.concurrent.TimeUnit
10+ import kotlin.system.exitProcess
1111
1212typealias CommandLineArguments = Map <String , Any >
1313
@@ -76,6 +76,11 @@ if (dryRun) println("\nℹ️ This is a dry-run. No files will be moved/deleted
7676val wetRun = dryRun.not ()
7777val gradlew = " ./gradlew" + if (isOsWindows()) " .bat" else " "
7878
79+ if (! File (gradlew.removePrefix(" ./" )).exists()) {
80+ printInBold(" ❌ Could not find Gradle wrapper in the work directory: $gradlew " )
81+ exitProcess(- 1 )
82+ }
83+
7984Runtime .getRuntime().apply {
8085 printInBold(" ⏳ Executing Gradle clean..." )
8186 doWithGradleWrapper {
You can’t perform that action at this time.
0 commit comments