mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Gradle: gradle distribution pattern updated
This commit is contained in:
+3
-3
@@ -65,14 +65,14 @@ import java.util.regex.Pattern;
|
||||
* @since 9/13/13
|
||||
*/
|
||||
public class UseDistributionWithSourcesNotificationProvider extends EditorNotifications.Provider<EditorNotificationPanel> {
|
||||
public static final Pattern GRADLE_SRC_DISTIBUTION_PATTERN;
|
||||
public static final Pattern GRADLE_SRC_DISTRIBUTION_PATTERN;
|
||||
private static final Logger LOG = Logger.getInstance("#" + UseDistributionWithSourcesNotificationProvider.class.getName());
|
||||
private static final Key<EditorNotificationPanel> KEY = Key.create("gradle.notifications.use.distribution.with.sources");
|
||||
private static final String ALL_ZIP_DISTRIBUTION_URI_SUFFIX = "-all.zip";
|
||||
private final Project myProject;
|
||||
|
||||
static {
|
||||
GRADLE_SRC_DISTIBUTION_PATTERN = Pattern.compile("http\\\\?://services\\.gradle\\.org.*" + ALL_ZIP_DISTRIBUTION_URI_SUFFIX);
|
||||
GRADLE_SRC_DISTRIBUTION_PATTERN = Pattern.compile("https?\\\\?://services\\.gradle\\.org.*" + ALL_ZIP_DISTRIBUTION_URI_SUFFIX);
|
||||
}
|
||||
|
||||
public UseDistributionWithSourcesNotificationProvider(Project project, final EditorNotifications notifications) {
|
||||
@@ -190,7 +190,7 @@ public class UseDistributionWithSourcesNotificationProvider extends EditorNotifi
|
||||
// currently only wrapped distribution takes into account
|
||||
if (wrapperConfiguration == null) return true;
|
||||
String distributionUri = wrapperConfiguration.getDistribution().toString();
|
||||
return GRADLE_SRC_DISTIBUTION_PATTERN.matcher(distributionUri).matches();
|
||||
return GRADLE_SRC_DISTRIBUTION_PATTERN.matcher(distributionUri).matches();
|
||||
}
|
||||
|
||||
@Nullable
|
||||
|
||||
Reference in New Issue
Block a user