IDEA-53476 Gradle integration (Maven's level - dependencies, modules, repositories)

Gradle distribution discovery from PATH is corrected
This commit is contained in:
Denis.Zhdanov
2011-08-09 17:56:29 +04:00
parent 404a20c8cc
commit 33d56c5d2a
@@ -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;