mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 12:09:16 +00:00
Merge branch '4.1.x'
This commit is contained in:
+4
-3
@@ -210,14 +210,15 @@ public class GradleBuild {
|
||||
}
|
||||
|
||||
private File getTestKitDir() {
|
||||
File testKitRoot = getTestKitRoot();
|
||||
String gradleVersion = (this.gradleVersion != null) ? this.gradleVersion : "default";
|
||||
File testKitRoot = getTestKitRoot(gradleVersion);
|
||||
return new File(testKitRoot, gradleVersion).getAbsoluteFile();
|
||||
}
|
||||
|
||||
private File getTestKitRoot() {
|
||||
private File getTestKitRoot(String gradleVersion) {
|
||||
File build = this.buildOutput.getRootLocation();
|
||||
if (isWindows() && build.getAbsolutePath().length() >= 80) {
|
||||
int length = build.getAbsolutePath().length() + gradleVersion.length();
|
||||
if (isWindows() && length >= 85) {
|
||||
return new File(System.getProperty("java.io.tmpdir"), "gradle-test-kit");
|
||||
}
|
||||
return new File(build, "gradle-test-kit");
|
||||
|
||||
Reference in New Issue
Block a user