mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-53476 Gradle integration (Maven's level - dependencies, modules, repositories)
Gradle distribution discovery from PATH is corrected
This commit is contained in:
@@ -36,7 +36,7 @@ public class GradleLibraryManager {
|
||||
// Init static data with ability to redefine it locally.
|
||||
GRADLE_JAR_FILE_PATTERN = Pattern.compile(System.getProperty("gradle.pattern.core.jar", "gradle-(core-)?(\\d.*)\\.jar"));
|
||||
ANY_GRADLE_JAR_FILE_PATTERN = Pattern.compile(System.getProperty("gradle.pattern.core.jar", "gradle-(.*)\\.jar"));
|
||||
GRADLE_START_FILE_NAMES = System.getProperty("gradle.start.file.names", "gradle|gradle.cmd|gradle.sh").split("|");
|
||||
GRADLE_START_FILE_NAMES = System.getProperty("gradle.start.file.names", "gradle:gradle.cmd:gradle.sh").split(":");
|
||||
GRADLE_ENV_PROPERTY_NAME = System.getProperty("gradle.home.env.key", "GRADLE_HOME");
|
||||
}
|
||||
|
||||
@@ -118,7 +118,7 @@ public class GradleLibraryManager {
|
||||
if (path == null) {
|
||||
return null;
|
||||
}
|
||||
for (String pathEntry : path.split(File.separator)) {
|
||||
for (String pathEntry : path.split(File.pathSeparator)) {
|
||||
File dir = new File(pathEntry);
|
||||
if (!dir.isDirectory()) {
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user